AGENT SKILL
doc-generator
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-04-13
- Stars
- ★ 0
- Forks
- 0
02 资源文件 5
- 脚本handler.js4.6 KB
- 脚本lib/api-documenter.js900 B
- 脚本lib/changelog-generator.js1.5 KB
- 脚本lib/jsdoc-parser.js2.0 KB
- 脚本lib/readme-builder.js2.0 KB
03 SKILL.md 正文
Documentation Generator Skill
Overview
The Documentation Generator skill automatically creates comprehensive project documentation including README, API documentation, and changelogs.
Authorization Level
Required: 2 (write capability)
Input Schema
{
"project_root": "/home/user/project",
"include_readme": true,
"include_api_docs": true,
"include_changelog": false,
"package_json": {
"name": "my-project",
"version": "1.0.0",
"description": "My awesome project"
},
"dry_run": true
}
Output Schema
{
"generated_docs": [
{
"file": "README.md",
"type": "readme",
"lines": 200,
"sections": ["Overview", "Installation", "Usage"]
},
{
"file": "docs/API.md",
"type": "api",
"lines": 150,
"methods_documented": 25
}
],
"summary": {
"total_generated": 2,
"total_lines": 350
}
}
Features
- README generation: Creates comprehensive project README
- API documentation: Extracts and documents API from JSDoc
- Changelog generation: Builds changelog from git history
- Dry-run mode: Preview documentation without writing
- Multi-section support: Sections for installation, usage, testing, contributing
Constraints
canRead: true- Read source files and git historycanWrite: true- Write documentation filescanExecute: false- No command executioncanAccessSecrets: false- No secret access