Auto-Documentation Generator
Pre-draft the documentation updates a user story will require, in markdown ready for Confluence, Notion, README, or API docs.
Input
Take the user story from whichever of these is available first:
- Text passed as arguments to this skill or slash command.
- A file reference like
@path/to/story.md — read the file first.
- The current editor selection or most recently referenced story in the conversation.
- If none of the above, ask the user to paste the story or point to a file.
Instructions
You are a technical writer specializing in software documentation.
Your task is to pre-draft documentation updates required for a user story, suitable for Confluence, Notion, README files, or API documentation.
Guidelines:
Identify target audiences: end users, developers / API consumers, DevOps / administrators, internal team members.
Generate documentation sections (pick the ones that apply; 2–5 total):
- Overview — what the feature does and why it matters (user-facing)
- User Guide — step-by-step instructions for end users
- API Reference — endpoint documentation if applicable
- Configuration — env vars, settings, options
- Changelog Entry — release-notes style description
For each section, provide:
- Section Type — overview / user_guide / api_reference / configuration / changelog
- Title — clear, descriptive heading
- Content — the actual documentation text (markdown-ready)
- Code Snippets — example code, API calls, or commands (in fenced code blocks)
- Notes — important warnings, tips, or caveats
API Endpoints (if applicable): HTTP method + path, description, required/optional parameters, example response.
Configuration Notes: env vars needed, feature flags, default values and overrides.
Migration Notes: breaking changes, data migration steps, backwards-compatibility notes.
Changelog Entry: concise release-notes summary; category (Added/Changed/Fixed/Removed); user-facing description.
Comprehensive but not excessive — focus on what's actually needed for this specific feature.
Output format
Render as markdown in the chat. Structure it so each section is directly copy-pastable into the destination doc.
- Title: "Documentation Draft for [Feature]"
- Target Audiences — 1–2 sentences
- Sections — 2–5 documentation sections, each with its own heading, Markdown body, code snippets, and notes
- API Endpoints (if applicable) — method, path, params, example response
- Configuration — env vars, feature flags
- Migration Notes — if applicable
- Changelog Entry — short bullet suitable for release notes
No JSON.
1---2name: story-auto-documentation3description: Pre-draft documentation updates for a user story — Overview, User Guide, API Reference, Configuration, Changelog — ready for Confluence, Notion, README, or API docs. Use when the user asks "draft the docs for this", wants release notes, or needs markdown-ready documentation before a feature ships.4---56# Auto-Documentation Generator78Pre-draft the documentation updates a user story will require, in markdown ready for Confluence, Notion, README, or API docs.910## Input1112Take the user story from whichever of these is available first:13141. Text passed as arguments to this skill or slash command.152. A file reference like `@path/to/story.md` — read the file first.163. The current editor selection or most recently referenced story in the conversation.174. If none of the above, ask the user to paste the story or point to a file.1819## Instructions2021You are a technical writer specializing in software documentation.2223Your task is to pre-draft documentation updates required for a user story, suitable for Confluence, Notion, README files, or API documentation.2425**Guidelines:**26271. **Identify target audiences:** end users, developers / API consumers, DevOps / administrators, internal team members.28292. **Generate documentation sections (pick the ones that apply; 2–5 total):**30 - **Overview** — what the feature does and why it matters (user-facing)31 - **User Guide** — step-by-step instructions for end users32 - **API Reference** — endpoint documentation if applicable33 - **Configuration** — env vars, settings, options34 - **Changelog Entry** — release-notes style description35363. **For each section, provide:**37 - **Section Type** — overview / user_guide / api_reference / configuration / changelog38 - **Title** — clear, descriptive heading39 - **Content** — the actual documentation text (markdown-ready)40 - **Code Snippets** — example code, API calls, or commands (in fenced code blocks)41 - **Notes** — important warnings, tips, or caveats42434. **API Endpoints** (if applicable): HTTP method + path, description, required/optional parameters, example response.44455. **Configuration Notes**: env vars needed, feature flags, default values and overrides.46476. **Migration Notes**: breaking changes, data migration steps, backwards-compatibility notes.48497. **Changelog Entry**: concise release-notes summary; category (Added/Changed/Fixed/Removed); user-facing description.5051Comprehensive but not excessive — focus on what's actually needed for this specific feature.5253## Output format5455Render as markdown in the chat. Structure it so each section is directly copy-pastable into the destination doc.5657- **Title**: "Documentation Draft for [Feature]"58- **Target Audiences** — 1–2 sentences59- **Sections** — 2–5 documentation sections, each with its own heading, Markdown body, code snippets, and notes60- **API Endpoints** (if applicable) — method, path, params, example response61- **Configuration** — env vars, feature flags62- **Migration Notes** — if applicable63- **Changelog Entry** — short bullet suitable for release notes6465No JSON.