Docs Maintainer
This skill helps maintain the high documentation standards of the PromptArchitect project.
Capabilities
- •Audit Knowledge Base: Checks if all source files in a directory are listed in its
AGENTS.md. - •Check JSDoc: Scans for exported functions/components missing JSDoc comments.
Usage
Audit a Directory
Run this to check if AGENTS.md is up to date and if code is documented.
bash
# Check Knowledge Base (AGENTS.md) node .gemini/skills/docs-maintainer/scripts/audit_knowledge_base.cjs <directory> # Check JSDoc node .gemini/skills/docs-maintainer/scripts/check_jsdoc.cjs <directory>
Example
To check the components directory:
bash
node .gemini/skills/docs-maintainer/scripts/audit_knowledge_base.cjs components node .gemini/skills/docs-maintainer/scripts/check_jsdoc.cjs components
Workflow
- •Pre-Commit: Run these checks before finishing a task to ensure "Definition of Done" criteria are met.
- •Fix: If
audit_knowledge_base.cjsfails, add the missing file toAGENTS.md. - •Fix: If
check_jsdoc.cjsfails, add/** ... */comments to the flagged functions.