Synchronize documentation with implementation state
/plugin marketplace add pagerguild/guilde-lite/plugin install pagerguild-guilde-workflows@pagerguild/guilde-lite[all|track:ID|file:path] [--check|--generate]Ensures documentation stays synchronized with implementation, updating READMEs, API docs, architecture diagrams, and changelogs.
docs/
├── README.md # Project overview
├── CHANGELOG.md # Version history
├── ARCHITECTURE.md # System architecture
├── tutorials/ # Step-by-step guides
│ └── *.md
└── [topic]/ # Topic-specific docs
└── *.md
conductor/
├── product.md # Product definition
├── tech-stack.md # Technology decisions
├── workflow.md # Workflow conventions
└── tracks/
└── TRACK-ID/
├── spec.md # Track specification
└── plan.md # Implementation plan
/conductor-sync-docs # Sync all documentation
/conductor-sync-docs track:MULTI-001 # Sync specific track docs
/conductor-sync-docs --check # Check sync status only
/conductor-sync-docs --generate # Generate missing docs
┌─────────────────────────────────────────────────────────────────┐
│ DOC SYNC PROCESS │
│ │
│ 1. Inventory │
│ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
│ │ Code │ │ Docs │ │ Diagrams │ │
│ │ Changes │ │ Current │ │ Current │ │
│ └───────────┘ └───────────┘ └───────────┘ │
│ ↓ │
│ 2. Compare │
│ ┌─────────────────────────────────────────────┐ │
│ │ Identify stale documentation │ │
│ │ Find missing documentation │ │
│ │ Detect broken links │ │
│ └─────────────────────────────────────────────┘ │
│ ↓ │
│ 3. Update │
│ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
│ │ README │ │ API │ │ Arch │ │
│ │ Update │ │ Docs │ │ Diagrams │ │
│ └───────────┘ └───────────┘ └───────────┘ │
│ ↓ │
│ 4. Verify │
│ ┌─────────────────────────────────────────────┐ │
│ │ Validate links │ │
│ │ Check completeness │ │
│ │ Report status │ │
│ └─────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Scan for documentation needs:
Code changes:
# Recent changes
git diff --name-only HEAD~10
# API files
find . -name "*.go" -o -name "*.py" -o -name "*.ts" | xargs grep -l "func\|def\|export"
Existing docs:
find docs -name "*.md"
find conductor -name "*.md"
Architecture diagrams:
find . -name "*.mermaid" -o -name "*.puml"
Identify sync needs:
| Check | Method |
|---|---|
| Stale README | Compare code features vs README sections |
| Missing API docs | Compare exported functions vs documentation |
| Outdated diagrams | Compare architecture vs diagram content |
| Broken links | Validate all markdown links |
For each documentation type:
Validate documentation:
# Check links
bash scripts/doc-sync-check.sh links
# Check completeness
bash scripts/doc-sync-check.sh completeness
# Check freshness
bash scripts/doc-sync-check.sh freshness
═══════════════════════════════════════════════════════════════════
DOCUMENTATION SYNC REPORT
═══════════════════════════════════════════════════════════════════
Summary
──────────────────────────────────────
Total files scanned: 47
Documentation files: 23
Diagrams: 5
Status
──────────────────────────────────────
✓ Up to date: 18
⚠ Needs update: 4
✗ Missing: 1
Needs Update
──────────────────────────────────────
docs/REVIEW-PIPELINE.md
- New agents added: pr-test-analyzer
- Last updated: 2026-01-10
docs/TELEMETRY-SETUP.md
- New metrics added: agent_latency_p99
- Last updated: 2026-01-13
conductor/tracks/MULTI-001/plan.md
- Phase 8 completed but not reflected in summary
- Last updated: 2026-01-14
.claude/rules/quality-gates.md
- New gates added via hookify rules
- Last updated: 2026-01-12
Missing
──────────────────────────────────────
docs/CONDUCTOR-COMMANDS.md
- Suggested: Document conductor-* commands
- Related code: .claude/commands/conductor-*.md
Links
──────────────────────────────────────
✓ Valid links: 89
✗ Broken links: 0
═══════════════════════════════════════════════════════════════════
Shows what would be updated without making changes:
User: /conductor-sync-docs --check
Claude: Checking documentation sync status...
⚠ 4 files need updates (use without --check to apply)
✗ 1 file missing (use --generate to create)
See full report above.
Creates missing documentation:
User: /conductor-sync-docs --generate
Claude: Generating missing documentation...
Creating: docs/CONDUCTOR-COMMANDS.md
✓ Template generated
✓ Content populated from command files
Review and customize the generated file.
Doc sync integrates with:
hookify doc-sync-reminder:
PreCommit hook:
PostToolUse hook:
User: /conductor-sync-docs
Claude: Scanning documentation...
═══════════════════════════════════════════════════════════════════
DOCUMENTATION SYNC REPORT
═══════════════════════════════════════════════════════════════════
4 files need updates, 1 file missing
Updating documentation:
✓ docs/REVIEW-PIPELINE.md - Added pr-test-analyzer section
✓ docs/TELEMETRY-SETUP.md - Updated metrics list
✓ conductor/tracks/MULTI-001/plan.md - Updated summary table
✓ .claude/rules/quality-gates.md - Added hookify gate references
Creating missing documentation:
✓ docs/CONDUCTOR-COMMANDS.md - Generated from command files
═══════════════════════════════════════════════════════════════════
SYNC COMPLETE
═══════════════════════════════════════════════════════════════════
Updated: 4 files
Created: 1 file
Links validated: 94/94
Commit these changes? (y/n)
/conductor-setup - Initialize conductor infrastructure/conductor-status - View all tracks and progress/conductor-checkpoint - Create checkpoint commits/docs-sync - General documentation sync (non-conductor)/review-all - Code review pipelinescripts/doc-sync-check.sh - Documentation validation script.claude/rules/documentation-standards.md - Documentation standards.claude/hookify.doc-sync-reminder.local.md - Doc sync reminder hook