Update Documentation

VerifiedSafe

Updates all project documentation after code changes. Analyzes git status and recent commits, then updates KNOWLEDGE_BASE.md, README.md, and the Chinese README. Ensures documentation stays accurate and in sync with the codebase.

Sby Skills Guide Bot
DocumentationIntermediate
1606/2/2026
Claude CodeCursor
#documentation#code-changes#readme#knowledge-base#sync

Recommended for

Our review

Updates all project documentation files after code changes.

Strengths

  • Automates the documentation update process after code changes.
  • Ensures consistency between English and Chinese README versions.
  • Automatically runs tests to verify changes.

Limitations

  • Requires specific files (KNOWLEDGE_BASE.md, README.md, README_ZH.md) to already exist.
  • Depends on sub-skills (update-knowledge-base, sync-readme) being available.
  • Does not cover automatically generated documentation (e.g., JSDoc, API docs).
When to use it

Use this skill after any changes that affect the UI, API, or project configuration.

When not to use it

Avoid using it for purely internal changes or minor fixes with no user-facing impact.

Security analysis

Safe
Quality score90/100

The skill only instructs to run documentation update skills and 'npm test', which are standard, safe operations for maintaining project docs. No destructive commands, exfiltration, or obfuscation.

No concerns found

Examples

Update docs after adding OpenCode support
Update all docs after adding OpenCode support
Update docs after CLI command change
Update documentation after modifying CLI commands

name: update-docs description: Update all project documentation after code changes.

Update Documentation

Instructions

One-click command to update all project documentation after code changes.

Steps

  1. Analyze Changes

    • Check git status for modified files
    • Review recent commits if no uncommitted changes
    • Identify what documentation needs updating
  2. Update KNOWLEDGE_BASE.md

    • Run the update-knowledge-base skill
    • Document any architectural or feature changes
  3. Update README.md

    • Add new features or commands
    • Update examples if API changed
    • Ensure accuracy of all documented commands
  4. Sync README_ZH.md

    • Run the sync-readme skill
    • Ensure Chinese documentation matches English
  5. Verify

    • Run tests to ensure nothing broken: npm test
    • Check that all documented commands work
    • Review diff before committing

When to Use

  • After adding a new adapter
  • After adding or modifying CLI commands
  • After changing the configuration format
  • After any user-facing changes

Output

All documentation files updated and in sync:

  • KNOWLEDGE_BASE.md (if exists)
  • README.md
  • README_ZH.md

Examples

Request: Update all docs after adding OpenCode support Result: KNOWLEDGE_BASE.md, README.md, and README_ZH.md all updated

Related skills