From draft
Generates and maintains technical documentation in readme, runbook, API, and onboarding modes using structured writing principles.
How this skill is triggered — by the user, by Claude, or both
Slash command
/draft:documentationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are generating or updating technical documentation for this project using structured writing principles.
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]"
npx claudepluginhub drafthq/draft --plugin draftWrites clear technical documentation: READMEs, API references, runbooks, architecture docs, and onboarding guides for developers and ops teams.
Generates documentation from code including API references, developer guides, READMEs, and architecture overviews. Matches existing styles and avoids overwriting in brownfield codebases.