From playbook
Suggest and scaffold starter docs for a project's durable-context folder, tailored to what the repo actually contains. Recommended once on a project that has code but little or no documentation, after /playbook:init and /playbook:claude-md-setup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/playbook:scaffold-docsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are bootstrapping a project's durable-context folder: suggest starter docs for the topics this repo actually evidences, then scaffold the ones the developer picks. Light touch — record the surface-level facts the repo confirms and leave prompts for the rest. Do not deep-dive; the developer fills in the specifics.
You are bootstrapping a project's durable-context folder: suggest starter docs for the topics this repo actually evidences, then scaffold the ones the developer picks. Light touch — record the surface-level facts the repo confirms and leave prompts for the rest. Do not deep-dive; the developer fills in the specifics.
Before doing anything, read:
Resolve the scope's durable-context folder per docs-folder-resolution.md. List the .md files already there — never suggest a topic an existing file already covers.
Glob for cheap signals and map them to candidate topics. Presence is enough at this stage — don't read deeply yet.
| Signal in the repo | Candidate topic |
|---|---|
| Migrations directory | migrations.md — how migrations are created and run |
| ORM / DB driver dependency, or a schema/models directory | database.md — engine, schema shape, access patterns |
| Auth / session / token library, or login/permission code | security.md — trust boundaries, authn/authz, secrets |
| Backend HTTP framework or route definitions | api-conventions.md — endpoint, error, and validation conventions |
| Frontend framework with an HTTP client | api-integration.md — how the frontend talks to its backend |
| Queue / message-bus / background-job dependency | events.md — async flows and their contracts |
Always consider security.md even with no auth library — every project has a trust boundary somewhere. Suggest only topics the repo evidences, and keep the list short. If the repo evidences little, suggest little.
Present the tailored shortlist. For each: the signal that prompted it, the proposed filename, and one line on what it would cover. Then call AskUserQuestion (multi-select) to choose which to scaffold, plus an option to add a topic of their own. Filenames are suggestions — the developer can rename.
For each chosen topic, take a quick look to gather only what the repo confirms (the DB engine from dependencies, the migrations path, the auth library, etc.), then write <docs-folder>/<topic>.md:
## Still to document list of 2–4 prompts, phrased as questions, for what you couldn't infer.Apply authoring-rules.md: state confirmed facts as facts; put everything uncertain under the prompts. No speculation.
If the docs folder isn't playbook-marked yet, write its marker CLAUDE.md first, from context-folder-template.md (start at # Durable project context; Write creates parent dirs). If the folder already holds hand-written docs, say so before writing.
Show the developer the scaffolded files.
Tell the developer to fill the ## Still to document prompts — with you now, or on their own. /playbook:distil keeps these files current as the project changes; the scaffolds just give it, and a new developer, a head start.
/playbook:distil's job.npx claudepluginhub slinkybmajor/ai-playbook --plugin playbookCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.