Notre avis
Auditez et mettez à jour la documentation du dossier docs/ pour qu'elle corresponde exactement au code source actuel.
Points forts
- Processus structuré pour vérifier chaque document contre le code réel
- Vérification des diagrammes Mermaid et des extraits de code
- Détection des fonctionnalités non documentées ou obsolètes
Limites
- Nécessite une compréhension du code et de la structure du projet
- Ne corrige pas automatiquement les incohérences trouvées
Utilisez cette compétence après des modifications de code qui impactent les fonctionnalités documentées ou lors d'audits de documentation planifiés.
Ne l'utilisez pas pour écrire une nouvelle documentation à partir de zéro sans base existante, car elle se concentre sur la mise à jour plutôt que la création.
Analyse de sécurité
SûrThe skill instructs reading and updating documentation by cross-referencing code and running CLI commands with a specified dataset. No destructive actions, exfiltration, or obfuscated payloads are involved. The commands (git log, npx) are used in a controlled manner.
Aucun point d'attention détecté
Exemples
Audit the documentation in the docs/ folder against the current codebase. Check each document in subdirectories model/, pathway/, and map/ for accuracy of code samples, diagrams, and feature descriptions. Update any inconsistencies found.I've just refactored the job derivation logic in libraries/libpathway/src/job.js. Please update any documentation that references job derivation to reflect the new code.Review all CLI command examples in the docs/ folder. Run the commands with --data=data/pathway to verify they produce the shown output, and fix any that have drifted.name: update-docs description: Review and update documentation in the docs/ folder. Use when ensuring documentation accurately reflects the current codebase.
Update Documentation
Review and update documentation in the docs/ folder to ensure it accurately
reflects the current codebase.
When to Use
- After making code changes that affect documented features
- During periodic documentation audits
- When adding new features that need documentation
- When removing features that are still documented
Process
-
Understand the documentation structure
- Read
docs/index.mdto see the documentation hierarchy - Review each document in
docs/subdirectories (model/, pathway/, map/) - Check
git log --oneline -20for hints about recent changes—but use this only as a starting point, not a substitute for studying the code
- Read
-
Audit against the current codebase
- For each document, examine the actual code it describes
- Check
products/map/src/for data structures and validation - Check
libraries/libpathway/src/for derivation logic - Check
products/pathway/for CLI commands, templates, and formatters - Run CLI commands mentioned in docs to verify accuracy
-
Verify diagrams
- Mermaid diagrams must reflect actual data flow and relationships
- Compare entity diagrams against actual YAML structures in
data/pathway/ - Compare derivation flowcharts against code in
libraries/libpathway/src/ - Update or add diagrams where they clarify concepts
-
Verify code samples
- All code samples must be runnable or valid
- YAML examples should match actual schema structure
- CLI examples should produce the shown output
- Update samples that have drifted from implementation
-
Check for gaps
- New features in code that lack documentation
- Documented features that no longer exist
- Cross-references that point to moved or deleted content
Key Files to Cross-Reference
| Document Topic | Source of Truth |
| ------------------ | ------------------------------------- |
| Skills & Levels | data/pathway/capabilities/ |
| Behaviours | data/pathway/behaviours/ |
| Disciplines | data/pathway/disciplines/ |
| Tracks | data/pathway/tracks/ |
| Levels | data/pathway/levels.yaml |
| Stages | data/pathway/stages.yaml |
| Job Derivation | libraries/libpathway/src/job.js |
| Agent Derivation | libraries/libpathway/src/agent.js |
| CLI Commands | products/pathway/bin/fit-pathway.js |
| Templates | products/pathway/templates/ |
| Agent instructions | AGENTS.md |
CLI Verification
Always use --data=data/pathway to ensure documentation reflects
the canonical dataset.
# List available entities
npx fit-pathway skill --data=data/pathway --list
npx fit-pathway discipline --data=data/pathway --list
npx fit-pathway track --data=data/pathway --list
npx fit-pathway level --data=data/pathway --list
# Generate sample outputs to compare with docs
npx fit-pathway job software_engineering L3 --data=data/pathway
npx fit-pathway agent software_engineering --data=data/pathway --track=platform
Commit
After making updates, commit with:
docs: update [topic] documentation
Use separate commits for distinct documentation areas.
Generateur de Documentation API
Documentation
Genere automatiquement de la documentation API OpenAPI/Swagger.
Rédacteur Technique
Documentation
Rédige de la documentation technique claire selon les meilleurs style guides.
Architecte de Documentation Technique
Documentation
Analyse un code source existant pour produire une documentation technique complète (10 à 100+ pages), inclant des vues d'architecture, des décisions de conception et des guides de dépannage. Idéal pour la documentation système, les guides d'architecture ou les plongées techniques.