Skip to content

prompt-book skill

The prompt-book skill is a read-only display skill. It backs the /prompt-book slash command and is also triggered when the user asks to see example prompts, prompt templates, or what they can ask Claude Code to do with these plugins.

Triggered by/prompt-book plus phrases like “show me the prompt book”, “what prompts can I use”, “example prompts”
InputOptional section number (e.g. 5)
OutputMarkdown content from ${CLAUDE_PLUGIN_ROOT}/docs/prompt-book.md, exact and unmodified

The prompt book itself lives at plugins/acss-kit/docs/prompt-book.md and ships with every plugin install. The skill never paraphrases, summarises, or reformats the content — to update the book, edit that file directly and bump plugin.json per the repo’s pre-submit checklist.

  1. Read ${CLAUDE_PLUGIN_ROOT}/docs/prompt-book.md.
  2. Print the file verbatim into the transcript so the user can copy any prompt directly.

Mode 2 — single section (<section-number> argument)

Section titled “Mode 2 — single section (<section-number> argument)”
  1. Read ${CLAUDE_PLUGIN_ROOT}/docs/prompt-book.md.
  2. Locate the section heading that begins with ## <number>. (e.g. ## 5. Generate a theme from a brand color).
  3. Print only that section — from the matched heading through the next --- separator (or end of file if no separator follows).
  4. If <number> does not match any section heading, fall back to Mode 3.

Mode 3 — table of contents (invalid argument fallback)

Section titled “Mode 3 — table of contents (invalid argument fallback)”
  1. Read ${CLAUDE_PLUGIN_ROOT}/docs/prompt-book.md.
  2. Extract every top-level ## <number>. <title> heading.
  3. Print the list as a numbered table of contents and prompt the user to re-run with a valid number.
  • Read-only — the skill never calls Write, Edit, or Bash that mutates state.
  • Verbatim output — does not collapse whitespace, change wording, or strip formatting.
  • Stable section identifiers — matches ## <n>. exactly (digit then period). No fuzzy matches.