docs-generate
Generate documentation from code or scratch - READMEs, API docs, changelogs, and user guides. Complements codebase-summary which analyzes existing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate documentation from code or scratch - READMEs, API docs, changelogs, and user guides. Complements codebase-summary which analyzes existing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Consolidate and clean up existing brain memory. Run this periodically (like a sleep cycle) to dedupe, decay, merge, and relocate memories to vault.
Remove old pi session files to reclaim disk space
Testing-focused coding workflow. Extends code-assist with enhanced test generation, coverage analysis, and test quality gates.
Systematic debugging workflow for diagnosing and fixing issues. Follows a structured approach to isolate problems, form hypotheses, and verify fixes.
Extract durable learnings and preferences from the current conversation for memory capture. Use this after a conversation to capture what should be remembered.
Track skill usage with correctness scoring, generate reports, and identify unused or misused skills for pruning.
| name | docs-generate |
| description | Generate documentation from code or scratch - READMEs, API docs, changelogs, and user guides. Complements codebase-summary which analyzes existing code. |
| kind | sop |
Generate documentation from existing code or from scratch. Unlike codebase-summary which analyzes and describes code, this skill creates publishable documentation artifacts.
When to use:
Difference from codebase-summary:
codebase-summary = Analyze code and describe architecture (for AI/developers)docs-generate = Create user-facing documentation (README, API docs, guides)readme - Project README.mdapi - API documentationchangelog - CHANGELOG.md from git historyguide - User guide or tutorialcontributing - CONTRIBUTING.mdlicense - LICENSE filecustom - Custom documentation typeUnderstand what to document:
Choose appropriate structure for doc_type:
README structure:
API documentation structure:
Changelog structure:
User guide structure:
Write documentation following best practices:
Constraints:
Quality check:
Save documentation:
/skill run docs-generate doc_type=readme source="~/my-project" audience=users
/skill run docs-generate doc_type=api source="~/api-project/src" style=comprehensive
/skill run docs-generate doc_type=changelog source="~/project" output_path="~/project/CHANGELOG.md"
/skill run docs-generate doc_type=guide source="Feature X allows users to..." audience=users
README.md: Standard GitHub README with badges, installation, usage.
API.md: Structured API reference with endpoints, parameters, examples.
CHANGELOG.md: Keep a Changelog format with semantic versioning.
GUIDE.md: Tutorial-style documentation with step-by-step instructions.