Automatically generates code documentation (JSDoc, TSDoc comments) and creates a CHANGELOG.md file with all changes made during the task. Supports configurable documentation language.
- Code Documentation - Automatically generates JSDoc/TSDoc comments
- Changelog Generation - Creates/updates CHANGELOG.md with task changes
- Multi-language Support - Configurable documentation language
- Git Integration - Reads git commits for changelog
opencode skill install doc-guardian- Clone this repository or copy the
doc-guardianfolder to:- Project:
.opencode/skills/doc-guardian/ - Global:
~/.config/opencode/skills/doc-guardian/
- Project:
task(
load_skills=["doc-guardian"],
...
)npx doc-guardian generate
npx doc-guardian generate --files src/*.tsnpx doc-guardian changelognpx doc-guardian allCreate .doc-guardian.json in your project root:
{
"language": "en",
"changelog": {
"includeAuthor": true,
"commitTypes": ["feat", "fix", "docs", "refactor"],
"outputFile": "CHANGELOG.md"
},
"documentation": {
"includeExamples": true
}
}| Code | Language |
|---|---|
| en | English |
| de | German |
| es | Spanish |
| fr | French |
| it | Italian |
| pt | Portuguese |
| nl | Dutch |
| pl | Polish |
| ru | Russian |
| zh | Chinese |
| ja | Japanese |
| ko | Korean |
The CHANGELOG.md file is NOT added to .gitignore by default. If you want to exclude it:
echo "CHANGELOG.md" >> .gitignoreMIT