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".
Manages MkDocs sites and markdown documentation through a structured six-phase workflow.
/plugin marketplace add sequenzia/agent-alchemy/plugin install agent-alchemy-dev-tools@agent-alchemyThis skill is limited to using the following tools:
references/change-summary-templates.mdreferences/markdown-file-templates.mdreferences/mkdocs-config-template.mdExecute 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)mkdocs.yml, create docs/index.md and docs/getting-started.mdIf MKDOCS_SCOPE = minimal (getting started only): write the scaffold files 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. Follow its styling rules (dark text on nodes).
- 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. Follow its styling rules (dark text on nodes). GitHub renders Mermaid natively.
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)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.Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.