Mise à jour de la documentation

VérifiéPrudence

Commande unique pour mettre à jour toute la documentation du projet après des modifications de code. Synchronise KNOWLEDGE_BASE.md, README.md et README_ZH.md.

Spar Skills Guide Bot
DocumentationIntermédiaire
4002/06/2026
Claude Code
#documentation#update#sync#code-changes

Recommandé pour

Notre avis

Met à jour automatiquement toute la documentation du projet après des modifications de code.

Points forts

  • Automatise la mise à jour de plusieurs fichiers de documentation
  • Vérifie l'intégrité des commandes documentées avec des tests
  • Synchronise les versions anglaise et chinoise du README
  • S'appuie sur git pour détecter précisément les changements

Limites

  • Nécessite que les fichiers KNOWLEDGE_BASE.md, README.md et README_ZH.md existent
  • Dépend de la précision de l'analyse git
  • Ne gère pas les mises à jour de traductions autres que le chinois
Quand l'utiliser

Après tout changement impactant l'utilisateur (nouvel adaptateur, commandes CLI, format de configuration).

Quand l'éviter

Pour des modifications internes uniquement ou lorsque la documentation n'est pas prioritaire.

Analyse de sécurité

Prudence
Score qualité80/100

The skill runs `npm test`, which executes code from the project's test suite. While this is a common development practice, it could inadvertently cause harm if the test suite contains destructive commands. No other risky operations are present, and the purpose is legitimate (documentation update).

Points d'attention
  • Executes `npm test` which runs arbitrary test code from the repository; could potentially have unintended side effects if the test suite is malicious or buggy.

Exemples

Add OpenCode support
Update all docs after adding OpenCode support
Change CLI command flags
I've modified the CLI command flags for the build command. Please update all project documentation accordingly.
Update config format
The configuration format has changed to include a new 'timeout' field. Update all relevant documentation files.

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

Skills similaires