Help us improve
Share bugs, ideas, or general feedback.
From plugins-claude
Generate detailed technical documentation for a Claude Code skill. Use when the user asks to "document a skill", "document skill", "write docs for a skill", "create skill documentation", or references documenting anything in a .claude/skills/ directory.
npx claudepluginhub pcollinsonline/claude-asana --plugin plugins-claudeHow this skill is triggered — by the user, by Claude, or both
Slash command
/plugins-claude:document-skill [skill-name][skill-name]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a comprehensive technical reference document for a single Claude Code skill. The output is a Markdown file with Mermaid diagrams, suitable for rendering on GitHub.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Designs test strategies and plans with testing pyramid. Covers APIs, frontend, data pipelines, infrastructure; outputs plans including coverage targets, examples, and gaps.
Share bugs, ideas, or general feedback.
Generate a comprehensive technical reference document for a single Claude Code skill. The output is a Markdown file with Mermaid diagrams, suitable for rendering on GitHub.
Skills combine instruction files with tool integrations and supporting scripts, but the SKILL.md is written for Claude — not for humans trying to understand the architecture. This skill produces developer-facing documentation that explains what the skill does, how it executes, and the interfaces it touches.
Starting from $ARGUMENTS (the skill name), locate and read all relevant source files:
Always read:
SKILL.md at .claude/skills/$0/SKILL.mdRead if the skill uses MCP tools (check allowed-tools in the frontmatter for mcp__ prefixes):
.mcp.json at the plugin root — it maps server names to entry points and is the canonical source for which MCP servers existsrc/mcp/server.ts) to find which tool modules it importssrc/mcp/tools/) — these contain the Zod schemas, handler functions, and TypeScript interfaces that define the tool contractsRead if the skill declares hooks (check hooks: array in the frontmatter):
src/skills/<skill-name>/hooks/<event-name>/index.tssrc/hooks/<event-name>/index.ts if the skill's behavior depends on themIf any expected file is missing, note it in the doc rather than guessing at its contents.
Check whether a docs/ directory already exists at the project root. If it does, read any existing skill docs to match their structure and voice. Consistency across docs matters more than any single template.
Create docs/$0-skill.md with the following sections. Adapt the depth of each section to the skill's complexity — a simple skill with no tools needs less than a skill orchestrating multiple MCP calls.
Two to three sentences: what the skill does and how (its general approach). Name the tools or workflow pattern but nothing more — no hook behavior, tool restrictions, validation rules, or file exclusions. Those belong in later sections.
Example of a good overview:
The
commitskill stages and commits changes using conventional commits format. It uses three MCP tools —commit_prepare,commit_diff, andcommit_execute— in a prepare-analyze-execute workflow.
Example of a bad overview (front-loads details covered elsewhere):
The
commitskill stages and commits changes using conventional commits format, restricted to its MCP tools only (no Bash, no Read). It never stages.envfiles. A skill-scopedPreToolUsehook auto-approves the plugin's MCP tools so the workflow runs without user prompts.
A Mermaid sequenceDiagram showing the full execution flow from invocation to completion.
Include:
Participants should be labeled clearly — use the skill name, tool names, and external services (e.g., git) as actors.
Only include this section if the skill calls MCP tools or executes scripts with structured input/output.
For each tool, document:
stage or error-code conventions. Describe the error shape (fields, stage values) but do not re-list validation rules here — reference Section 4 (Behavioral Rules) instead.If the skill only uses built-in Claude Code tools (Read, Grep, Bash, etc.), skip this section entirely.
If the skill implements validation, inference, filtering, or other deterministic logic that shapes its behavior, document each as a standalone subsection. These are rules the skill enforces — not tool I/O schemas (Section 3) or output format examples (Section 5).
Common patterns to look for:
Derive these from the implementation (function bodies, constants, config objects) — not from the SKILL.md prose. Include the actual values (regex patterns, allowed type lists, numeric limits).
If the skill produces structured output (commit messages, reports, config files), document the format with examples derived from the skill's instructions. Do not restate validation rules or constraints already documented in Section 4 — show the format through examples and reference the relevant section for rules.
Link back to the source files:
If the project's root README.md does not already link to the docs/ directory, add a "Documentation" section (or a link within an existing section) pointing to the new doc. Keep the edit minimal — add the link, don't restructure the README.
Summarize what was created:
sequenceDiagram for workflow flows (not flowchart — sequences better represent the temporal ordering of tool calls)alt/else blocks for conditional pathsopt blocks for optional stepsNote over for important context or constraintspar blocks, custom themes, or HTML in labels)