/draft:documentationfrom draft
Generates and updates technical documentation in modes — readme, runbook, api, onboarding — using structured writing principles and audience-appropriate tone.
Ships in draft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are generating or updating technical documentation for this project using structured writing principles.
Write for the reader. Link don't duplicate. Show don't tell.
ls draft/ 2>/dev/null
If draft/ doesn't exist, this skill works standalone — generate docs from code analysis.
core/shared/draft-context-loading.md./draft:documentation readme — Generate or update project README/draft:documentation runbook <service> — Operations runbook for a service/draft:documentation api <module> — API documentation for a module/draft:documentation onboarding — New developer onboarding guide/draft:documentation (no args) — Interactive: ask what type of documentationREADME.md (if any)draft/product.md — Product vision, users, goalsdraft/tech-stack.md — Technologies, setup requirementsdraft/workflow.md — Development workflow, commandsMakefile, package.json, pyproject.toml — Build/run commandsdraft/architecture.md or draft/.ai-context.md — Service topology, dependenciesdraft/workflow.md — Deployment conventionsdraft/tech-stack.md — Infrastructure detailsdraft/architecture.md — API conventions, data modelsdraft/tech-stack.md — API framework detailsdraft/product.md — What is this project?draft/tech-stack.md — What technologies?draft/architecture.md or draft/.ai-context.md — How is it structured?draft/workflow.md — How do I develop?draft/guardrails.md — What to watch out for?Follow these principles (from core/agents/writer.md):
# {Project Name}
{One-line description from product.md}
## Quick Start
{Setup commands from Makefile/package.json}
## Architecture
{High-level diagram from .ai-context.md}
## Development
{Commands from workflow.md}
## Testing
{Test commands and conventions}
## Contributing
{Workflow conventions}
# Runbook: {Service Name}
## Overview
{Service purpose, dependencies, SLOs}
## Health Checks
{Endpoints, expected responses}
## Common Issues
{Symptoms → diagnosis → resolution}
## Deployment
{Steps, rollback procedure}
## Monitoring
{Dashboard URLs, alert descriptions}
## Escalation
{On-call contacts, escalation paths}
# API: {Module Name}
## Overview
{Purpose, authentication, base URL}
## Endpoints
### {METHOD} {path}
{Description}
**Request:** {body/params with examples}
**Response:** {status codes with examples}
**Errors:** {error codes and meanings}
# Welcome to {Project Name}
## What is this?
{From product.md — 2-3 sentences}
## Architecture at a Glance
{Simplified from .ai-context.md}
## Getting Started
{Setup steps, first 15 minutes}
## Key Concepts
{Domain terms, important patterns}
## Development Workflow
{From workflow.md}
## Where to Find Things
{File structure guide}
## Common Pitfalls
{From guardrails.md}
Save to:
README.md in project rootdraft/docs/runbook-<service>.mddraft/docs/api-<module>.mddraft/docs/onboarding.mdCreate draft/docs/ directory if needed.
Pre-save validation:
Present generated doc to user for review before final save.
/draft:init (after context generation), /draft:implement (track completion with new APIs), /draft:upload (pre-upload for new APIs), /draft:decompose (module API docs)core/shared/jira-sync.mdIf no draft context: Generate from code analysis alone, note: "Run /draft:init for richer documentation"
If existing doc found: Show diff between existing and generated, ask: "Update existing doc or create new? [update/new]"
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/adrCreate and manage Architecture Decision Records. Documents significant technical decisions with context, alternatives, and consequences. Also supports evaluate (assess proposals) and design (system design) modes./assist-reviewReviewing someone else's PR for handoff/sign-off. Isolates structural changes from trivial edits, flags HLD/LLD drift and guardrail violations, points the reviewer at what to scrutinize. Use when prepping to review another engineer's work — NOT for first-pass self-review (use review / quick-review)./bughuntPerforms an exhaustive 14-dimension bug hunt across the codebase using Draft context (architecture, tech-stack, product) for false-positive elimination. Generates a severity-ranked report with code evidence, data flow traces, and suggested fixes. Optionally writes regression tests. Use when the user asks to find bugs, audit code for defects, scan for vulnerabilities, or says 'hunt bugs', 'find bugs', or 'code audit'./changeHandle mid-track requirement changes. Analyzes impact on completed and pending tasks, proposes amendments to spec.md and plan.md before applying./coverageCompute code coverage for active track or module. Targets 95%+ coverage with report and justification for uncovered lines. Complements TDD workflow./debugStructured debugging session. Reproduce, isolate, diagnose, and fix bugs using systematic investigation. Invoked by /draft:new-track for bug tracks or directly for ad-hoc debugging.npx claudepluginhub drafthq/draft --plugin draftOther plugins' skills for the same job