docs
Writes technical documentation: READMEs, API docs, architecture docs, how-to guides, RFCs, design docs, and ADRs. Applies type-specific rules for each format to ensure docs are actually useful — not just technically correct. Make sure to use this skill whenever the user says "write documentation", "document this", "create a README", "API docs", "technical docs", "write an RFC", "design doc", "architecture proposal", "write up a proposal", "draft a decision record", "share this with the team", "document this function/ component/service", or asks to explain how something works for other developers. Also triggers when existing docs need a quality review.
What this skill does
# Technical Documentation Writer
Different documentation types serve different purposes. The format rules exist because readers come to each type with a specific goal — give them what they came for immediately.
## Documentation Types and Rules
### README
The README answers: "what is this and can I use it in 2 minutes?"
**Rules:**
- First sentence: what this IS, not what it will do someday. "A CLI for syncing Obsidian vaults" not "This project aims to..."
- Installation in <5 commands. If it takes more, show the most common path and link to full setup
- One working example before any explanation — show before you tell
- Link to full docs, don't duplicate them
**Structure:**
```
# Project Name
One sentence description.
## Install
[<5 commands]
## Quick Start
[One working example]
## [Links to deeper docs if needed]
```
### API Docs
**Rules:**
- Describe behavior, not implementation — "Returns paginated results sorted by createdAt" not "Calls the database with a LIMIT clause"
- Every parameter: name, type, required/optional, default, what it does
- Every return value: type, shape, what it contains
- One realistic example per endpoint — not a toy example, something close to real usage
- Document the error cases: what fails, what you get back, what to do about it
**Parameter format:**
```
name (string, required) — The user's display name. Max 50 characters.
limit (number, optional, default: 20) — Results per page. Max 100.
```
### Architecture Docs
**Rules:**
- Explain decisions (WHY), not just structure (WHAT). Structure can be read from code. Decisions cannot.
- For each major architectural choice: what was considered, what was chosen, why, what tradeoffs were accepted
- C4 diagrams for system context (level 1: system in its environment) and container diagrams (level 2: major components)
- Keep current — an outdated architecture doc is actively harmful (misleads more than no doc)
**Structure:**
```
## Context
[What problem this system solves, who uses it]
## Key Decisions
[Decision record format: what, why, alternatives considered, tradeoffs]
## System Diagram
[C4 context or container diagram]
## Data Flow
[How data moves through the system for the main use cases]
```
### How-To Guides
**Rules:**
- Task-oriented title: "How to add authentication" not "Authentication"
- Assumes the reader has the prerequisite knowledge — link to it, don't re-teach it
- Steps are ordered by dependency: step N builds on step N-1
- Each step has one action and one expected result
### RFC / Design Doc / ADR
For team-facing proposals and records. Ask which type before starting — each has a different section convention.
| Type | Use When |
|------|----------|
| RFC | Change isn't decided yet — soliciting feedback before committing |
| Product design doc | Scoping new work — goals, non-goals, user stories, success metrics |
| Architecture proposal | System design or pattern change — current state, proposed design, trade-offs, migration |
| ADR | Decision already made — capture context, decision, consequences |
**Workflow for proposals/records:**
1. Confirm doc type and primary audience (specific team, eng leads, whole org)
2. Ask for context dump — problem, background, constraints, stakeholder concerns
3. Follow the brainstorm → curate → draft → refine loop for each section
4. Start with the section that has the most unknowns; save TL;DR for last
5. After 3 iterations with no changes, ask "what can be removed without losing value?"
6. Reader test: predict 5 questions a reader with no context would ask — does the doc answer them?
**RFC/design doc structure:**
```
## TL;DR
[Summary — write last]
## Problem
[What's painful, with real data]
## Proposed Solution
[Scoped, not "change everything"]
## Why Now?
[What triggered this]
## Trade-offs
[Pros AND cons — naming downsides builds trust]
## Alternatives Considered
[What you rejected and why]
## Rollback Plan
[Makes skeptics comfortable]
## Open Questions
[Decision points for the reader — silence in team chat means readers didn't know what to react to]
```
For docs going into team chat: include a TL;DR at the top suitable for pasting into Slack.
## Quality Checklist
Before delivering any docs, verify:
- [ ] First sentence tells you what this IS, not what it does someday
- [ ] Code examples run without modification (test them)
- [ ] All required config / env vars are documented
- [ ] Common errors documented with how to fix them
- [ ] No passive voice for user actions ("you run" not "the command is run")
- [ ] No "simply" / "just" / "easy" — the reader is here because it wasn't obvious
- [ ] Links work (check any URLs referenced)
- [ ] Consistent terminology throughout (pick one name per concept)
## Workflow
1. Identify the documentation type (README, API, architecture, how-to)
2. Ask for any missing context: what's the audience, what do they already know, what do they need to do
3. Draft with type-specific rules applied
4. Run through the quality checklist before delivering
## References
Load the template that matches the doc type — all are equal priority, triggered by type alone.
| Doc Type | Load when | Reference |
|----------|-----------|-----------|
| ADR | Decision already made — need to capture context and consequences | `references/adr-template.md` |
| RFC | Change not decided — soliciting team feedback before committing | `references/rfc-template.md` |
| Architecture Proposal | System design or pattern change with trade-off analysis | `references/architecture-proposal-template.md` |
| Design Doc | Scoping new work — goals, non-goals, user stories, success metrics | `references/design-doc-template.md` |
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.