From draft
Generates and maintains technical documentation in modes: README, runbook, API, onboarding using audience-appropriate structured writing principles from code and draft context.
npx claudepluginhub mayurpise/draft --plugin draftThis skill uses the workspace's default tool permissions.
You are generating or updating technical documentation for this project using structured writing principles.
Writes clear technical documentation: READMEs, API references, runbooks, architecture docs, and onboarding guides for developers and ops teams.
Creates practical technical documentation like READMEs, runbooks, API references, setup guides, and troubleshooting notes, matching repo conventions and style.
Guides creation of README files, API docs, user guides, developer guides, and troubleshooting docs with structured process, templates, and best practices.
Share bugs, ideas, or general feedback.
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 detailsgh CLI available: check recent merged PRs touching deployment configsdraft/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.
Present generated doc to user for review before final save.
/draft:init (after context generation), /draft:implement (track completion with 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]"