Update Docs
Systematically update project documentation with implementation status, API changes, and synchronized content
- Category: Documentation
- Tags: documentation, maintenance, sync, api-docs
- Downloads: 0
- Updated: 2025-11-09
Syntax
/update-docs
Command
{"model": null, "allowed_tools": "Read, Write, Edit, Bash, Grep", "argument_hint": "[section] | --full | --api-only | --sync-all", "markdown_body": "# Update Documentation\n\nSystematically update project documentation: $ARGUMENTS\n\n## Current Documentation State\n\n- Documentation files: !`find . -name \"*.md\" -o -name \"*.mdx\" | grep -E \"(README|docs|DOCS)\" | head -10`\n- API documentation: !`find . -name \"*api*.md\" -o -name \"*API*.md\" | head -5`\n- Code comments: !`grep -r \"/\\*\\*\" . --include=\"*.ts\" --include=\"*.js\" | head -5`\n- Recent code changes: !`git diff --stat HEAD~5`\n\n## Task\n\nFollow these steps to systematically update documentation:\n\n1. **Documentation Audit**\n - Identify all documentation files in the project\n - Check for outdated or missing documentation\n - Compare documentation with actual code implementation\n - Identify gaps between docs and code\n - Check for broken links and references\n\n2. **Implementation Status Review**\n - Review code changes since last documentation update\n - Update feature implementation status\n - Mark completed features as implemented\n - Update in-progress features with current status\n - Archive or remove deprecated features\n\n3. **API Documentation Updates**\n - If `--api-only` flag: Focus only on API documentation\n - Extract API endpoints from code\n - Update endpoint descriptions and parameters\n - Add request/response examples\n - Document breaking changes\n - Update API version information\n\n4. **Code Documentation Sync**\n - Review code comments and docstrings\n - Ensure function/method documentation matches implementation\n - Update type definitions and interfaces\n - Sync examples with current code\n - Add missing documentation for public APIs\n\n5. **README Updates**\n - Update installation instructions\n - Sync setup steps with current configuration\n - Update usage examples\n - Refresh feature list\n - Update contribution guidelines\n - Add recent changes and updates\n\n6. **Documentation Synchronization**\n - If `--sync-all` flag: Synchronize all documentation\n - Ensure consistency across all docs\n - Update cross-references\n - Fix broken links\n - Align terminology and naming\n - Ensure version numbers match\n\n7. **Section-Specific Updates**\n - If specific section provided ($1): Update only that section\n - Focus on targeted documentation area\n - Ensure section completeness\n - Update related cross-references\n\n8. **Documentation Quality Checks**\n - Verify all code examples work\n - Check for typos and grammar\n - Ensure consistent formatting\n - Validate markdown syntax\n - Check for accessibility issues\n\n9. **Generate Documentation Index**\n - Create or update documentation index\n - Add navigation structure\n - Include search keywords\n - Add table of contents\n - Link related documentation\n\n10. **Documentation Maintenance**\n - Set up documentation review schedule\n - Create documentation update checklist\n - Establish documentation standards\n - Set up automated documentation checks\n - Document documentation process\n\nRemember to:\n- Keep documentation up to date with code\n- Use clear, concise language\n- Include practical examples\n- Maintain consistent style\n- Review regularly", "disable_model_invocation": false}Usage examples
/update-docs /update-docs --full /update-docs --api-only /update-docs --sync-all