Synchroniser la documentation

VérifiéSûr

Met à jour les docstrings et fichiers de documentation pour les maintenir en cohérence avec l'implémentation du code source.

Spar Skills Guide Bot
DocumentationIntermédiaire
3002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#documentation#sync#docstring#multilingual#code-review

Recommandé pour

Notre avis

Met à jour la documentation (docstrings, fichiers *.md) pour qu'elle corresponde au code source modifié.

Points forts

  • Vérifie la cohérence entre la signature et la docstring (paramètres, types, exceptions).
  • Prend en charge les formats NumPy et Google.
  • Gère la documentation bilingue (anglais/japonais) dans les répertoires dédiés.

Limites

  • Ne rédige pas de documentation de A à Z ; nécessite un code source existant.
  • Peut ne pas détecter les modifications sémantiques subtiles non reflétées dans la signature.
Quand l'utiliser

Quand vous avez modifié du code et que vous voulez être sûr que la documentation reste à jour.

Quand l'éviter

Pour créer une documentation initiale d'un projet sans code source.

Analyse de sécurité

Sûr
Score qualité80/100

The skill only involves reading and editing documentation files; no tools or command execution are declared, so there is no risk of destructive or exfiltrating actions.

Aucun point d'attention détecté

Exemples

Update docstrings after refactoring
Please sync the documentation for the recently changed functions in src/utils.py. Update docstrings to match new parameters and return types using NumPy style, and check both English and Japanese docs/ directories.
Sync README and API docs after adding a feature
I added a new function `generate_report` in src/report.py. Please update the docstring (Google style) and ensure it's mentioned in README.md and the API reference in docs/reference/en/ and docs/reference/ja/.

name: sync_docs description: ソースコードの実装に合わせてドキュメント (docstring, *.md) を更新する

Sync Documentation

This skill ensures that the documentation is in sync with the actual code implementation.

Instructions

  1. Update Docstrings:

    • Read the target source code.
    • Check if parameters, return types, and exceptions in the docstring match the signature and logic.
    • Update the docstring using the standard format (NumPy or Google style, matching the project).
  2. Update Documentation Files:

    • Check docs/ or README.md for references to the changed code.
    • Crucial: Check both English (docs/reference/en/) and Japanese (docs/reference/ja/) documentation directories.
    • Update tutorials or API references if the usage has changed.
    • If a new feature was added, ensure it is mentioned in the appropriate section in both languages.
  3. Verify:

    • If possible, run the build_docs skill to ensure no syntax errors were introduced in ReStructuredText or Markdown.
Skills similaires