一键导入
documentation
Implement and maintain GitHub project documentation using a layered system. Use when creating, updating, or auditing documentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement and maintain GitHub project documentation using a layered system. Use when creating, updating, or auditing documentation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Issue-driven development with worktree isolation. 5-stage pipeline (new, plan, work, review, merge) with human gates between stages. Use when creating tasks, planning, implementing, reviewing, or merging.
Start or join an inter-agent chat session. Two Claude Code sessions communicate via a shared markdown file in tmp/. Use when the user says "ai-chat", "start a chat", "agent chat", or provides a chat slug to join.
View and manage configurations and skills for AI agent CLI tools (Claude Code, Opencode). Use when checking config files, listing or managing skills, viewing model settings, comparing configs across tools, or performing common config operations.
Orchestrate external AI agent instances (Claude Code, Opencode, Gemini CLI) via SDK or CLI. This skill NEVER does work itself — it always delegates to an external agent.
Parse Word documents (.docx) into repository-friendly markdown artifacts. Use when users need to extract content from Word files, convert to markdown, or batch process document directories.
Parse Power BI files (.pbix) into repository-friendly JSON and CSV artifacts. Use when users need to extract metadata, measures, or data model structure from Power BI files.
| name | documentation |
| description | Implement and maintain GitHub project documentation using a layered system. Use when creating, updating, or auditing documentation. |
This skill provides expertise for implementing and maintaining documentation in GitHub projects. Use when you need to create documentation structure, fix/update existing docs, or audit documentation health.
User wants to work with project documentation. They may:
All sub-skills accept a scope parameter to control how much of the project to work on.
CRITICAL: Load the appropriate sub-skill from sub-skills/ based on user intent.
| Scope | Description | Example |
|---|---|---|
repo | Entire repository | "Fix all docs in this repo" |
path=<dir> | Specific directory | "Fix docs in src/components/" |
doc=<file> | Single document | "Fix this README.md" |
depth=N | Limit recursion | "Repo, 2 levels deep" |
One fact, one place. Never duplicate information across layers. If something is documented in literate code comments, don't repeat it in the directory README. If it's in a directory README, don't repeat it in the root README. Link instead.
Conciseness first. Write tight documentation from the start. If you find yourself needing to compress docs, that's a sign of upstream problems. The compress sub-skill exists for legacy cleanup, not as a normal workflow.
Document why, not what. Code shows what happens. Documentation should explain why decisions were made, how pieces connect, and what's not obvious from reading the code.
For small directories (1-2 files), well-written literate code comments may be sufficient. Skip the README if:
A README adds value when:
| Layer | Purpose | Audience |
|---|---|---|
| Root README | Project overview, quick start, entry point | Everyone |
| Directory README | How files in this directory relate, local context | Developers working in this area |
| /docs folder | Cross-cutting topics that span multiple parts of the codebase | Those needing comprehensive understanding |
| Literate comments | Why this code exists, decision rationale | Future maintainers |
Each layer answers different questions. If you're repeating yourself, you're in the wrong layer.
READMEs and docs/ serve fundamentally different purposes:
READMEs are vertical - They document a specific location (root project, a module, a directory). Each README belongs to exactly one place in the filesystem.
docs/ is horizontal - It documents topics that span multiple parts of the codebase. Architecture, authentication flows, data pipelines - these have no natural home in any single directory because they cross boundaries.
When to use each:
| Content | Location | Why |
|---|---|---|
| "How this module works" | Directory README | Specific to one location |
| "How auth, API, and DB interact" | docs/architecture.md | Spans multiple modules |
| "Quick start for users" | Root README | Entry point for everyone |
| "Complete API reference" | docs/api-reference.md | Reference material, not entry point |
| "Tutorial: building a feature" | docs/tutorials/ | Step-by-step guide touching many areas |
Cross-references:
| Phase | Structure | When to Use |
|---|---|---|
| 1 | Single README.md | Simple projects, few files |
| 2 | Multiple READMEs | 2+ modules with distinct purposes |
| 3 | READMEs + /docs | Complex architecture, multiple audiences |
Some documentation components start as sections within README and graduate to standalone files as the project grows. This avoids over-engineering docs for small projects while providing a clear upgrade path.
| Component | Phase 1 (inline) | Phase 2+ (standalone) |
|---|---|---|
| Contributing | Section in README under Developer Guide | CONTRIBUTING.md |
| Changelog | Section in README under Roadmap | CHANGELOG.md |
Graduation triggers:
| Document | Target | Max |
|---|---|---|
| Root README | 200-300 lines | 500 lines |
| Directory README | 200-300 lines | 500 lines |
| /docs files | As needed | Keep focused |
If a document exceeds these limits, it's probably: