brainstorming
Structured design dialogue that validates ideas before implementation begins.
doc-consistency-checker
Detects when high-level project documentation is stale based on code/config changes and generates update suggestions
Full skill instructions
Purpose: Detect when high-level project documentation (CLAUDE.md, README.md, etc.) is stale based on recent code changes and generate update suggestions.
Architecture: Operation-specific skill (Layer 3) - analyzes git diff and compares against documentation content.
Created: 2025-12-02 - Addresses documentation maintenance gap in FABER workflows. </CONTEXT>
<CRITICAL_RULES>
Non-Destructive Analysis
Change Detection Focus
Target Documents
Script Usage
🎯 STARTING: Documentation Consistency Check
Targets: {target_list}
Base: {base_ref} → Head: {head_ref}
───────────────────────────────────────
Check required parameters:
targets: Array of target document paths (optional, uses defaults)base_ref: Git reference for comparison base (optional, default: main)head_ref: Git reference for comparison head (optional, default: HEAD)mode: Operation mode (optional, default: confirm)Default targets:
DEFAULT_TARGETS=("CLAUDE.md" "README.md" "docs/README.md" "CONTRIBUTING.md")
Invoke check-consistency.sh:
./skills/doc-consistency-checker/scripts/check-consistency.sh \
--base "$BASE_REF" \
--head "$HEAD_REF" \
--output-format json
The script analyzes the git diff and categorizes changes:
API Changes (High Priority):
Feature Changes (High Priority):
Architecture Changes (High Priority):
Configuration Changes (Medium Priority):
Documentation Changes (Low Priority):
{
"changes": {
"api": [
{"file": "src/routes/auth.ts", "type": "added", "summary": "New /auth/login endpoint"}
],
"features": [
{"file": "src/commands/new-cmd.md", "type": "added", "summary": "New slash command"}
],
"architecture": [],
"configuration": [
{"file": ".env.example", "type": "modified", "summary": "New API_KEY variable"}
],
"documentation": []
},
"files_changed": 15,
"lines_added": 342,
"lines_removed": 45
}
For each target document that exists:
for target in "${TARGETS[@]}"; do
if [[ -f "$target" ]]; then
echo "📄 Checking $target..."
# Read current content
content=$(cat "$target")
# Identify sections that may need updates
check_sections "$target" "$CHANGES_JSON"
fi
done
For CLAUDE.md, check:
For README.md, check:
For CONTRIBUTING.md, check:
{
"status": "stale | current",
"targets_checked": 4,
"targets_stale": 2,
"stale_documents": [
{
"path": "CLAUDE.md",
"sections_affected": ["Architecture", "Directory Structure"],
"changes_requiring_update": [
{
"change_type": "feature",
"file": "plugins/docs/skills/doc-consistency-checker/",
"impact": "New skill added - update Directory Structure section"
}
],
"priority": "high"
}
],
"current_documents": ["README.md", "CONTRIBUTING.md"]
}
Invoke generate-suggestions.sh:
./skills/doc-consistency-checker/scripts/generate-suggestions.sh \
--target "$TARGET_PATH" \
--changes "$CHANGES_JSON" \
--output-format diff
For each stale document, generate:
--- CLAUDE.md
+++ CLAUDE.md
@@ -45,6 +45,8 @@ plugins/
├── docs/ # Documentation management
│ ├── agents/ # docs-manager agent
│ ├── skills/ # Document operations
+│ │ └── doc-consistency-checker/ # NEW: Documentation staleness detection
│ └── commands/ # User commands
📝 Documentation Update Suggestions
────────────────────────────────────
📄 CLAUDE.md (2 sections affected):
1. Directory Structure
+ Add doc-consistency-checker skill entry
2. Common Development Tasks
+ Add consistency checking workflow
Apply these updates? (y/n/edit)
Invoke apply-updates.sh:
./skills/doc-consistency-checker/scripts/apply-updates.sh \
--target "$TARGET_PATH" \
--updates "$UPDATES_JSON" \
--backup true
✅ COMPLETED: Documentation Consistency Check
Targets Checked: {count}
Status: {current/stale}
Updates Applied: {count}
───────────────────────────────────────
Next: Review applied changes
</WORKFLOW>
<CHANGE_DETECTION_RULES>
New Files in Key Directories
Configuration Changes
API/Interface Changes
Dependency Changes
Test Coverage Changes
Documentation in Subdirectories
Internal Refactoring
</CHANGE_DETECTION_RULES>
<SCRIPTS> This skill uses 3 scripts in skills/doc-consistency-checker/scripts/:check-consistency.sh:
generate-suggestions.sh:
apply-updates.sh:
All scripts return structured JSON. </SCRIPTS>
<OUTPUTS> **Check Response (Stale)**: ```json { "success": true, "operation": "check", "status": "stale", "targets_checked": 4, "targets_stale": 2, "stale_documents": [ { "path": "CLAUDE.md", "sections_affected": ["Directory Structure", "Common Development Tasks"], "priority": "high", "changes_count": 3 } ], "current_documents": ["README.md", "CONTRIBUTING.md"], "changes_analyzed": { "api": 0, "features": 2, "architecture": 1, "configuration": 0 } } ```Check Response (Current):
{
"success": true,
"operation": "check",
"status": "current",
"targets_checked": 4,
"targets_stale": 0,
"message": "All target documents are up to date with recent changes"
}
Suggest Response:
{
"success": true,
"operation": "suggest",
"suggestions": [
{
"target": "CLAUDE.md",
"section": "Directory Structure",
"action": "add",
"content": "│ └── doc-consistency-checker/ # Documentation staleness detection",
"context_line": "│ ├── skills/ # Document operations",
"priority": "high"
}
],
"total_suggestions": 3
}
Apply Response:
{
"success": true,
"operation": "apply",
"updates_applied": 3,
"files_modified": ["CLAUDE.md"],
"backups_created": ["CLAUDE.md.backup.2025-12-02"]
}
Error Response:
{
"success": false,
"operation": "check",
"error": "No git repository found",
"error_code": "NOT_GIT_REPO"
}
</OUTPUTS>
<ERROR_HANDLING>
FABER Release Phase:
docs-manager Agent:
doc-validator Skill:
<BEST_PRACTICES>
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs