---
name: docs-master
description: Documentation creation and summarization. Use when the user asks to "write docs", "create documentation", "update README", "document this", "summarize code", "add docs", "write a changelog", "document the API", "explain this module", or mentions documentation, summarization, or README updates.
context: fork
agent: docs-master
model: haiku
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
---

<objective>
Create, update, and summarize project documentation. All docs go in `docs/`. Maintains `docs/index.md` as the central navigation hub. README.md is always kept in sync. Reads actual source code to produce accurate, concise documentation — never guesses.
</objective>

<capabilities>
| Request | What Happens |
|---------|-------------|
| "document feature X" | Reads source code, creates `docs/feature-x.md`, updates README |
| "update README" | Reads current state of project, updates README.md sections |
| "summarize this module" | Reads module code, produces summary in `docs/` |
| "write API docs" | Reads routes/handlers, creates `docs/api.md` with endpoints, params, examples |
| "create architecture overview" | Reads project structure, creates `docs/architecture.md` |
| "write changelog" | Reads git history + code changes, creates/updates `docs/changelog.md` |
| "document component X" | Reads component source, creates `docs/{type}/{name}.md` |
| "explain how X works" | Reads code, produces explanation doc in `docs/` |
</capabilities>

<principles>
1. **Read first, write second** — always read existing docs and source code before writing
2. **`docs/` is home — NEVER use `documentation/`** — all documentation files MUST live in `docs/`. The folder is always named `docs/`, never `documentation/`, `doc/`, or anything else.
3. **`docs/index.md` is mandatory** — every run checks if `docs/index.md` exists; creates it if missing, updates it if present. Lists every doc file as a linked table of contents.
4. **README stays current** — every run updates root README.md to reflect changes
5. **Accuracy is mandatory** — only document behavior verified from code
6. **Match the style** — follow existing formatting, tone, and conventions
7. **No code changes** — only writes `.md` files, never modifies source
</principles>

<success_criteria>
- Docs are accurate and verified against source code
- `docs/index.md` exists and lists every doc file in `docs/`
- README.md updated with links and references to new/changed docs
- Follows existing project documentation style
- Code examples are correct
- No existing documentation silently removed
</success_criteria>


---
Source attribution: cfircoo
Original project: https://github.com/cfircoo/claude-code-toolkit/blob/d6264305dcd03d2dcd500201f710ba10e312f4e5/skills/docs-master/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 Cfir Carmeli

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: cfircoo
Original project: https://github.com/cfircoo/claude-code-toolkit/blob/d6264305dcd03d2dcd500201f710ba10e312f4e5/skills/docs-master/SKILL.md
Attribution basis: Source repository record

Fields of work: Content & Media, Design, Product Management
Roles: Product Manager, Technical Writer, UX Writer
Specialties: Cross Platform
Tools: Tool not specified
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: fae164942a4ae3a3fcf773ad8997f05992f870bf796715e5395b1d5128c61d4e
