commandby ChrisWiles

Docs Sync

Check if documentation is in sync with code

Installs: 0
Used in: 1 repos
Updated: 9h ago
$npx ai-builder add command ChrisWiles/docs-sync

Installs to .claude/commands/docs-sync.md

# Documentation Sync

Check if documentation matches the current code state.

## Instructions

1. **Find recent code changes**:
   ```bash
   git log --since="30 days ago" --name-only --pretty=format: -- "*.ts" "*.tsx" | sort -u
   ```

2. **Find related documentation**:
   - Search `/docs/` for files mentioning changed code
   - Check README files near changed code
   - Look for TSDoc comments in changed files

3. **Verify documentation accuracy**:
   - Do code examples still work?
   - Are API signatures correct?
   - Are prop types up to date?

4. **Report only actual problems**:
   - Documentation is a living document
   - Only flag things that are WRONG, not missing
   - Don't suggest documentation for documentation's sake

5. **Output a checklist** of documentation that needs updating

Quick Install

$npx ai-builder add command ChrisWiles/docs-sync

Details

Type
command
Slug
ChrisWiles/docs-sync
Created
9h ago