Skip to content
Development
Command

/validate-codebase-docs

Validate and update documentation by comparing against current codebase and recent changes using parallel agents

From plugin
pane
36435 skills6 agents35 commands
Install
$ npx -y skills add dcouple/Pane --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/validate-codebase-docs

Context preview

What this command does when you run it.

Validate and update documentation by comparing against current codebase and recent changes using parallel agents

Command definition

validate-codebase-docs.md
allowed-tools: Task, Read, Glob, Grep, Bash(git log:*), Bash(git diff:*), Edit, MultiEdit, TodoWrite
description: Validate and update documentation by comparing against current codebase and recent changes using parallel agents

Validate and Update Documentation

This command orchestrates multiple specialized agents to systematically validate documentation against the current codebase and recent changes, then updates outdated content automatically.

1. Initial Discovery Phase

First, gather information about the documentation landscape and recent changes:

# Get list of all documentation files
ls -la docs/

# Review recent changes that might affect docs
git log --oneline -30

# Check for any pending changes
git status

Create a comprehensive list of all markdown files in the docs folder, categorizing them by:

  • Technical documentation (architecture, API, database)
  • Guidelines and principles
  • PRDs and feature specs
  • Testing documentation
  • Third-party integrations

2. Multi-Agent Parallel Validation Strategy

Launch multiple specialized agents IN PARALLEL to validate and update different aspects of documentation. Use the Task tool to launch ALL agents simultaneously for maximum efficiency.

Agent Task Definitions

**Documentation Analyzer Agent (per doc file):**

Focus: Extract and catalog all verifiable claims from documentation
Input: Specific documentation file path
Tasks:
1. Read the documentation file thoroughly
2. Extract all technical claims:
   - File paths and directory structures
   - Component and service names
   - API endpoints and routes
   - Database schemas and tables
   - Command examples
   - Dependencies and package versions
   - Configuration file references
3. Create a structured validation checklist
4. Return list of claims to validate

**Codebase Structure Validator Agent:**

Focus: Verify all file paths and structural claims
Input: List of file paths and structures from docs
Tasks:
1. Check each referenced file path exists
2. Verify directory structures match documentation
3. Validate component and service locations
4. Check for moved or renamed files
5. Identify new files not documented
6. Return validation results with corrections

**API & Routes Validator Agent:**

Focus: Validate API endpoints and route definitions
Input: List of API endpoints from documentation
Tasks:
1. Read current route definitions from:
   - apps/api/src/routes/
   - apps/api/src/controllers/
   - apps/webapp/app/api/
2. Compare documented endpoints with actual implementation
3. Check HTTP methods match (GET, POST, etc.)
4. Verify request/response schemas if documented
5. Identify new endpoints not documented
6. Return list of discrepancies and updates needed

**Database Schema Validator Agent:**

Focus: Verify database schemas and models
Input: Database documentation references
Tasks:
1. Read current schema from apps/api/src/db/schema.ts
2. Compare with documented tables and fields
3. Check for new tables or columns
4. Verify relationships and constraints
5. Validate migration references
6. Return schema updates needed

**Dependencies & Commands Validator Agent:**

Focus: Validate package dependencies and CLI commands
Input: List of dependencies and commands from docs
Tasks:
1. Check package.json files for mentioned dependencies
2. Verify version numbers if specified
3. Test documented npm/npx commands for validity
4. Check for deprecated packages
5. Identify new dependencies not documented
6. Return list of updates needed

**Changelog Cross-Reference Agent:**

Focus: Identify recent changes requiring doc updates
Tasks:
1. Analyze git log for last 30-50 commits
2. Review merged PRs and their descriptions
3. Identify major features and breaking changes:
   - Authentication system changes
   - New workspace features
   - AI agent implementations
   - Audio recording improvements
   - Dashboard architecture changes
4. Check if these are reflected in docs
5. Return list of missing documentation

3. Documentation Update Phase

After validation completes, launch update agents for each category of changes:

**File Path Updater Agent:**

Focus: Fix all file path and structure references
Tasks:
1. Update moved or renamed file references
2. Correct directory structure descriptions
3. Add new important files to listings
4. Mark deprecated paths with notes

**API Documentation Updater Agent:**

Focus: Update API and endpoint documentation
Tasks:
1. Update endpoint URLs and methods
2. Add newly created endpoints
3. Mark deprecated endpoints
4. Update request/response examples
5. Fix authentication requirements

**Technical Content Updater Agent:**

Focus: Update technical details and features
Tasks:
1. Update architecture descriptions
2. Add new features from changelog
3. Update technology stack sections
4. Fix command examples
5. Update configuration examples

**CLAUDE.md Synchronization Agent:**

Focus: Ensure consistency with CLAUDE.md
Tasks:
1. Read CLAUDE.md as source of truth
2. Update other docs to match CLAUDE.md
3. Propagate command changes
4. Sync environment setup instructions
5. Ensure deployment procedures match

4. Validation Rules

Must Validate:

  • **File Existence**: Every file path must exist or be marked as deprecated
  • **Command Validity**: All shell commands must be executable
  • **Import Paths**: Package imports must resolve correctly
  • **API Consistency**: Endpoints must match implementation
  • **Schema Accuracy**: Database descriptions must match current schema

Update Guidelines:

  • **Preserve Intent**: Keep the original purpose and structure of docs
  • **Add Timestamps**: Mark sections with last validated date
  • **Deprecation Over Deletion**: Mark outdated content rather than removing
  • **Changelog References**: Link to relevant commits/PRs for changes
  • **Human Review Flags**: Mark complex changes needing human verification

5. Report Generation

After all vali

Read more
Ships withpane

pnpm dlx runpane@latest

Get the whole plugin