From playbook
Configure the playbook for this scope — choose where durable project context lives, mark the folder, and persist the choice. Recommended as the first playbook command in a fresh repo, before /playbook:agents-md-setup. Safe to re-run to change the location.
How this skill is triggered — by the user, by Claude, or both
Slash command
/playbook:initThis 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 configuring the playbook for the current scope — choosing where this scope's durable context lives (the folder `/playbook:distil` writes into), persisting that to `<scope>/.claude/.playbook/config.json`, and marking the folder with a small `AGENTS.md` plus a sibling `CLAUDE.md` forwarder.
You are configuring the playbook for the current scope — choosing where this scope's durable context lives (the folder /playbook:distil writes into), persisting that to <scope>/.claude/.playbook/config.json, and marking the folder with a small AGENTS.md plus a sibling CLAUDE.md forwarder.
The scope is the current working directory; init does not walk upward. A root AGENTS.md is not required — the recommended order is /playbook:init then /playbook:agents-md-setup, so a missing one is normal on a fresh setup.
Before doing anything, read:
Read <scope>/.claude/.playbook/config.json if it exists. If it does, show the current docs_folder value and call AskUserQuestion: Keep as-is (exit, no changes) / Change location (proceed) / Cancel (exit).
If the file does not exist, proceed.
Use the Glob tool to list top-level directories. Identify two kinds of candidate:
AGENTS.md is playbook-marked (see the marker definition in docs-folder-resolution.md). Read the first ~30 lines of each candidate folder's AGENTS.md to check. An existing CLAUDE.md marker (from earlier plugin versions) is not recognized — per this plugin's convention only AGENTS.md counts as the canonical marker; the folder is treated as not-yet-marked.docs/, documentation/, wiki/: folders that look like documentation homes even without a marker.Show concisely what you found. Do not auto-pick. Then call AskUserQuestion with up to four options, ordered by strength, including only the rows that apply (the auto-added "Other" covers anything else):
docs/documentation/docs/ — the playbook default, whether or not docs/ existsclaude-context/, internal/docs/, etc.If the developer picks a folder that already contains hand-written content, tell them in plain text before continuing: a small AGENTS.md marker will be written into it describing what /playbook:distil writes there (plus a CLAUDE.md forwarder sibling), and that hand-written docs alongside it are fine. Confirm once in chat (no second AskUserQuestion).
Write <chosen-folder>/AGENTS.md using the body of context-folder-template.md, dropping the leading "# AGENTS.md (template for...)" preamble — start from the # Durable project context heading. The Write tool creates parent directories, so a non-existent folder is fine.
Also write <chosen-folder>/CLAUDE.md as a one-line forwarder containing exactly:
See @AGENTS.md for more information.
If <chosen-folder>/AGENTS.md already exists:
AskUserQuestion: Overwrite with template / Leave existing / Cancel init.If <chosen-folder>/CLAUDE.md already exists with content that is not the one-line forwarder, overwrite it — per the plugin's convention CLAUDE.md is always just a forwarder.
Write <scope>/.claude/.playbook/config.json with the chosen folder path, relative to the scope root:
{
"docs_folder": "docs/"
}
Substitute the developer's actual choice; keep a trailing slash. Overwrite if it already exists — the chosen value supersedes any previous one.
Skip entirely if no AGENTS.md exists at the scope root — /playbook:agents-md-setup reads the config you just wrote and seeds the entry itself. An existing root CLAUDE.md (with content) is not a substitute; per the plugin's convention only AGENTS.md is canonical.
If a root AGENTS.md exists, check its ## Directory index. If the chosen folder is already listed with a reasonable description, do nothing. If the index is missing the folder, or still points at a different/old location (e.g. after a re-run that changed the location), propose an Edit adding or correcting the row and call AskUserQuestion: Apply / Skip. Standard description text (matches agents-md-setup):
Durable project context — distilled conventions, security boundaries, design choices, and gotchas. Maintained by
/playbook:distilin small files scoped to one area each. Consult related files before substantive work in the area they cover; they outrank general defaults.
One short message listing only the bullets that apply: the chosen folder (created or pre-existing); whether the marker was written, already present, or overwritten (mention both AGENTS.md and the CLAUDE.md forwarder); whether the root index was updated or skipped; the config path .claude/.playbook/config.json; and — if no root AGENTS.md exists — a single line suggesting /playbook:agents-md-setup next.
/playbook:init to update marker, index, and config in one step./playbook:distil and /playbook:agents-md-setup read this config. If it is absent, both fall back to the precedence in docs-folder-resolution.md.AGENTS.md + CLAUDE.md forwarder), the config file, and (with approval) the root AGENTS.md index entry.npx claudepluginhub axakon/trace --plugin playbookCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.