$npx -y skills add avibebuilder/claude-prime --skill create-docUse when the user wants to save knowledge as a file so others don't have to rediscover it — \"turn this into a doc\", \"write this up\", \"document how X works\", \"we figured this out and want to capture it\", \"nobody should have to figure this out again\". Covers any request t
| 1 | ultrathink |
| 2 | |
| 3 | ## Process |
| 4 | |
| 5 | Check conversation context and skip completed steps. |
| 6 | |
| 7 | ### 1. Identify the doc job |
| 8 | Figure out the document type, audience, purpose, whether to update an existing doc or create new, and what source material it draws from. If any of these would materially change the output and are unclear, ask. |
| 9 | |
| 10 | If the request is still evaluating options, stop and discuss — drafting docs before a decision is made locks in the wrong answer. |
| 11 | |
| 12 | If the doc type is a recognized structured format (runbook, ADR, postmortem, onboarding guide, API/architecture doc), read `references/doc-types.md` now — it has the required sections for each type. |
| 13 | |
| 14 | ### 2. Ground in evidence |
| 15 | Before writing factual claims, read relevant sources — existing docs, code, config, tickets, PRs, prior discussion. Don't present guesses as fact. Label uncertain details explicitly, or collect them in an "Open questions" section rather than hedging every sentence. |
| 16 | |
| 17 | ### 3. Choose destination |
| 18 | Prefer updating the canonical existing doc when one exists. |
| 19 | |
| 20 | For new documents, MUST default to `docs/` at the repo root (create it if missing). Only deviate when: |
| 21 | - A more specific existing doc home clearly fits (ADR directory, changelog, README section, established project docs tree) — use it |
| 22 | - The repo already follows a convention of keeping docs next to the code they explain — match that |
| 23 | - The doc is event-like (postmortem, incident note) — use a timestamped filename |
| 24 | |
| 25 | When you need a fresh timestamp, use `date +%Y%m%d%H%M%S`. |
| 26 | |
| 27 | ### 4. Outline first when substantial |
| 28 | For large or structurally ambiguous docs, propose a title and section outline before drafting. For small or routine docs, write directly. |
| 29 | |
| 30 | ### 5. Write the artifact |
| 31 | Write the file at the path from Step 3 — don't paste in chat without creating the file. Adapt structure to the document type (ADRs, runbooks, postmortems, API docs, etc.) and include only sections that earn their keep. |
| 32 | |
| 33 | A strong document is accurate, concise, audience-aware, scannable, explicit about *why* something matters, and clear about what is current behavior vs. decision vs. open question. Write for the intended reader, not for completeness theater. Prefer concrete repo-specific details over generic filler. When sources conflict, name the conflict instead of quietly picking one. |
| 34 | |
| 35 | ### 6. Report and stop |
| 36 | Report the path, whether you updated or created, what was captured, and any assumptions or gaps. Do not drift into implementation unless explicitly asked. |
| 37 | |
| 38 | ## Topic |
| 39 | |
| 40 | <topic>$ARGUMENTS</topic> |