claude/dev-tools/skills/docs-manager/SKILL.md
Documentation management workflow for MkDocs sites and standalone markdown files — initialize, generate, update docs, and create change summaries. Use when asked to "create docs", "write README", "update documentation", "generate docs site", "write CONTRIBUTING", "manage documentation", or "docs changelog".
npx skillsauth add sequenzia/agent-alchemy docs-managerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Execute a structured 6-phase workflow for managing documentation. Supports two documentation formats (MkDocs sites and standalone markdown files) and three action types (generate, update, change summary).
CRITICAL: Complete ALL applicable phases. Some phases are conditional. After completing each phase, immediately proceed to the next phase without waiting for user prompts.
Execute these phases in order, completing ALL of them:
Goal: Determine through user interaction what documentation to create and in what format.
$ARGUMENTSParse the user's input to pre-fill selections:
basic-markdownmkdocschange-summaryIf the intent is clear, present a summary for quick confirmation before proceeding (skip to Step 4). If ambiguous, proceed to Step 2.
If the documentation type is ambiguous or needs confirmation, use AskUserQuestion:
What type of documentation would you like to create?
1. "MkDocs documentation site" — Full docs site with mkdocs.yml, Material theme
2. "Basic markdown files" — Standalone files like README.md, CONTRIBUTING.md, ARCHITECTURE.md
3. "Change summary" — Changelog, release notes, commit message
Store as DOC_TYPE = mkdocs | basic-markdown | change-summary.
If DOC_TYPE = mkdocs:
Q2: AskUserQuestion — Existing project or new setup?
MKDOCS_MODE = existingMKDOCS_MODE = newQ3 (if existing): AskUserQuestion — What to do?
ACTION.Q3 (if new): AskUserQuestion — Scope?
MKDOCS_SCOPE. If custom, use AskUserQuestion for desired pages (free text).If DOC_TYPE = basic-markdown:
Q2: AskUserQuestion (multiSelect) — Which files?
MARKDOWN_FILES. If "Other" is selected, use AskUserQuestion for custom file paths/descriptions.If DOC_TYPE = change-summary:
Q2: AskUserQuestion — What range?
Present a summary of all selections and use AskUserQuestion:
If the user wants to change, loop back to the relevant question.
Immediately proceed to Phase 2.
Goal: Detect project context automatically, conditionally scaffold MkDocs.
package.json, pyproject.toml, Cargo.toml, go.mod, pom.xmlgit remote get-url origin 2>/dev/nulldocs/**/*.md, README.md, CONTRIBUTING.md, ARCHITECTURE.mdmkdocs.yml/mkdocs.yaml, read if foundDOC_TYPE = mkdocs AND MKDOCS_MODE = new)${CLAUDE_PLUGIN_ROOT}/skills/docs-manager/references/mkdocs-config-template.mdAskUserQuestion if incomplete)pyproject.toml): add a docs dependency group with mkdocs-material and pymdown-extensions (e.g. under [dependency-groups]), then sync (uv sync --group docs, or pip install mkdocs-material).pip install mkdocs-material (or pipx).mkdocs is already importable/on PATH, skip.mkdocs.yml (keep its extra_css key) and create:
docs/index.md and docs/getting-started.mddocs/stylesheets/extra.css — the Mermaid dark-mode companion from the template. Not optional: the palette ships a dark slate scheme, and the standard Mermaid palette (light fills + dark text) is unreadable in dark mode without it.If MKDOCS_SCOPE = minimal (getting started only): write the scaffold files (including docs/stylesheets/extra.css) and skip to Phase 6.
For update modes, determine the approach:
For change-summary, run git log and git diff --stat for the determined range.
Immediately proceed to Phase 3.
Goal: Deep codebase exploration using the deep-analysis skill.
Skip conditions:
change-summary (uses git-based analysis instead — see below)MKDOCS_SCOPE = minimal)Construct a specific context string based on Phase 1 selections:
| Selection | Analysis Context | |-----------|-----------------| | MkDocs generate | "Documentation generation — find all public APIs, architecture, integration points, and existing documentation..." | | MkDocs update | "Documentation update — identify changes to public APIs, outdated references, documentation gaps..." | | Basic markdown README | "Project overview — understand purpose, architecture, setup, key features, configuration, and dependencies..." | | Basic markdown ARCHITECTURE | "Architecture documentation — map system structure, components, data flow, design decisions, key dependencies..." | | Basic markdown API docs | "API documentation — find all public functions, classes, methods, types, their signatures and usage patterns..." | | Basic markdown CONTRIBUTING | "Contribution guidelines — find dev workflow, testing setup, code style rules, commit conventions, CI process..." | | Multiple files | Combine relevant contexts from above |
Read ${CLAUDE_PLUGIN_ROOT}/../core-tools/skills/deep-analysis/SKILL.md and follow its workflow.
Pass the documentation-focused analysis context from Step 1.
Deep-analysis handles all agent orchestration (reconnaissance, team planning, approval — auto-approved when skill-invoked — team creation, code-explorers + code-synthesizer). Since docs-manager is the calling skill, deep-analysis returns control without standalone summary.
Note: Deep-analysis may return cached results if a valid exploration cache exists. In skill-invoked mode, cache hits are auto-accepted — this is expected behavior that avoids redundant exploration.
After deep-analysis, additionally:
git diff --name-only [base-ref] for changed filesgit log --oneline [range] and git diff --stat [range]subagent_type: "code-explorer" to analyze the changed files:
Analysis context: Change summary for [range]
Focus area: These files changed in the specified range:
[list from git diff --stat]
For each significant change, identify:
- What was added, modified, or removed
- Impact on public APIs and user-facing behavior
- Whether any changes are breaking
Return a structured report of your findings.
Immediately proceed to Phase 4.
Goal: Translate analysis findings into a concrete documentation plan.
MkDocs:
docs/ paths)mkdocs.yml nav updatesBasic Markdown:
Change Summary:
Use AskUserQuestion:
Immediately proceed to Phase 5.
Goal: Generate content using docs-writer agents.
DOC_TYPE = change-summary: Read ${CLAUDE_PLUGIN_ROOT}/skills/docs-manager/references/change-summary-templates.mdDOC_TYPE = basic-markdown: Read ${CLAUDE_PLUGIN_ROOT}/skills/docs-manager/references/markdown-file-templates.mdLaunch agents using Task tool with subagent_type: "docs-writer" and model: "opus".
Launch independent pages/files in parallel, then sequential for dependent ones (include generated content from independent pages in the prompt context).
MkDocs prompt template:
Documentation task: [page type — API reference / architecture / how-to / change summary]
Target file: [docs/path/to/page.md]
Output format: MkDocs
Project: [project name] at [project root]
MkDocs site context:
- Theme: Material for MkDocs
- Extensions available: admonitions, code highlighting, tabbed content, Mermaid diagrams
- Diagram guidance: The technical-diagrams skill is loaded — use Mermaid for all diagrams with its standard styling (light fills + dark text on nodes). The site ships a dark-mode companion stylesheet (`docs/stylesheets/extra.css`), so diagrams render correctly in both light and dark mode — keep the standard palette; do NOT hand-roll per-diagram dark-mode colors.
- Existing pages: [list of current doc pages]
Exploration findings:
[Relevant findings from Phase 3 for this page]
Existing page content (if updating):
[Current content of the page, or "New page — no existing content"]
Generate the complete page content in MkDocs-flavored Markdown.
Basic Markdown prompt template:
Documentation task: [file type — README / CONTRIBUTING / ARCHITECTURE / API docs]
Target file: [path/to/file.md]
Output format: Basic Markdown
Project: [project name] at [project root]
File type guidance:
[Relevant structural template from markdown-file-templates.md]
Exploration findings:
[Relevant findings from Phase 3 for this file]
Existing file content (if updating):
[Current content, or "New file — no existing content"]
Generate the complete file content in standard GitHub-flavored Markdown.
Do NOT use MkDocs-specific extensions (admonitions, tabbed content, code block titles).
Diagram guidance: The technical-diagrams skill is loaded — use Mermaid for all diagrams with its standard styling (light fills + dark text on nodes). GitHub renders Mermaid natively on a light canvas (standalone Markdown can't ship a dark-mode stylesheet, so the standard light-fill palette is the right choice here).
Immediately proceed to Phase 6.
Goal: Write files, validate, present results.
MkDocs:
docs/mkdocs.yml nav — read current config, add new pages in logical positions, preserve existing structureBasic Markdown:
Change Summary:
MkDocs:
nav exist on disk using Globmkdocs CLI is available, run mkdocs build --strict 2>&1 to check for warnings (non-blocking)docs/stylesheets/extra.css exists and mkdocs.yml lists it under extra_css.mkdocs serve, open the site, toggle the palette to dark (slate), and confirm diagrams are legible in both modes — node/subgraph titles, edge labels, edges/arrows where they cross light fills, and sequence/ER text. Watch for the two classic failures: light-on-light text, and edges vanishing on light fills. If a diagram is unreadable in dark mode, the companion stylesheet is missing or mis-wired — see the technical-diagrams skill, "Styling and Theming → Dark-mode rendering".Basic Markdown:
Summarize what was done:
For change-summary, present generated outputs directly inline.
Use AskUserQuestion with relevant options:
MkDocs:
mkdocs serve is available)Basic Markdown:
If any phase fails:
If the project is not a git repository:
repo_url and repo_name from mkdocs.yml)update action with git-diff mode is unavailable — fall back to full-scan or targeted modechange-summary action is unavailable — inform the user and suggest alternativesAskUserQuestionmodel: "opus" for high-quality content generation. Parallel for independent files, sequential for dependent files.development
Systematic, hypothesis-driven debugging workflow with triage-based track routing. Use when asked to "fix this bug", "debug this", "why is this failing", "this is broken", "investigate this error", "track down this issue", or any debugging situation. Supports --deep flag to force full investigation.
development
Executes diagnostic investigation tasks to test debugging hypotheses. Runs tests, traces execution, checks git history, and reports evidence. (converted from agent)
content-media
Provides architectural pattern knowledge for designing feature implementations including MVC, event-driven, microservices, and CQRS patterns. Use when designing system architecture or choosing implementation patterns.
documentation
Provides Mermaid diagram syntax, best practices, and styling rules for technical visualizations. Use when creating diagrams, flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, architecture diagrams, C4 diagrams, or any visual documentation in markdown.