formulary
The prompt formulary for Claude: symptoms, remedies, exact dosages.

formulary is an Agent Skill that makes Claude prompt Claude the way Anthropic recommends. It turns the official prompt engineering docs into a working playbook: pick the right model per task, set the right API parameters, and fix misbehaving prompts by looking up the symptom and pasting the exact, Anthropic-tested snippet.
A formulary, in medicine, is an institution's official list of approved remedies with exact dosages. That is what this is: 37 verbatim prompt snippets indexed by symptom, plus model selection and per-model behavioral tuning for Claude Fable 5, Opus 4.8, Sonnet 5, Sonnet 4.6, and Haiku 4.5.
What it does
When this skill is active, Claude will:
- Diagnose by symptom. "My agent is too verbose", "it won't use tools", "it hard-codes to pass tests", "the frontend looks like AI slop": each maps to a numbered, verbatim snippet from Anthropic's published guidance. No improvised paraphrases.
- Pick the model like an insider. Fable 5 for the hardest long-horizon work, Opus 4.8 as the serious default, Sonnet 5 for high-volume production, Haiku 4.5 for routing, with the reasoning for each.
- Get the API params right the first time. Effort levels, adaptive thinking per model, max_tokens headroom, and the parameter combinations that return 400 errors on current models (budget_tokens, sampling params, prefill).
- Tune per model, not generically. The same prompt lands differently on Fable 5, Opus 4.8, and Sonnet 5; the skill routes to the right behavioral guidance for each.
Quick demo
Ask Claude: "My code review bot on Opus 4.8 finds fewer bugs since we upgraded. Fix the prompt."
With formulary active, Claude recognizes the known harness effect (Opus 4.8 follows "only report high-severity" filters faithfully and withholds findings), removes the filter language, applies snippet 28 verbatim (report everything, rank downstream), and corrects the params (adaptive thinking, xhigh effort, streaming, 64K max_tokens). See examples/02-code-review-pipeline.md for the full walkthrough.
Install
Claude Code (plugin, recommended)
/plugin marketplace add SamsShow/formulary-claude
/plugin install formulary@formulary
Claude Code (manual)
git clone https://github.com/SamsShow/formulary-claude ~/.claude/skills/formulary
Skills CLI (works across agents)
npx skills add SamsShow/formulary-claude
claude.ai (paid plans)
- Build the zip:
bash scripts/package-zip.sh (or download formulary.zip from the latest release)
- In claude.ai: Settings, then Capabilities, enable Skills, then upload the zip under Skills
API
Upload via the Skills endpoint and reference the skill in requests. See the Skills API quickstart for the current upload call.
Usage
Once installed, the skill triggers automatically on prompting work. Things you can say:
- "Review this system prompt" (paste it)
- "Which Claude model should I use for a research agent?"
- "My assistant answers from memory instead of searching. Fix it."
- "Migrate this prompt from Sonnet 4.5 to Sonnet 5"
- "Set up the API params for a long-running coding agent"
What's inside
| File | Contents |
|---|
SKILL.md | Workflow, model selection table, routing, non-negotiables |
references/snippet-library.md | 37 verbatim Anthropic-tested snippets, indexed by symptom |
references/models-and-params.md | Model IDs, thinking/effort config, the 400-error traps |
references/core-techniques.md | Universal techniques: clarity, examples, XML, long context, tool use |
references/fable-5.md | Claude Fable 5: long runs, memory, subagents, autonomy |
references/opus-4-8.md | Claude Opus 4.8: verbosity, effort, subagents, frontend, code review |
references/sonnet.md | Claude Sonnet 5 and 4.6: effort mapping, tokenizer, tool triggering |
examples/ | Three worked before/diagnosis/after cases |
How snippets are sourced
Every snippet is quoted verbatim from Anthropic's published documentation at platform.claude.com (prompt engineering guides for Claude Fable 5, Claude Opus 4.8, Claude Sonnet 5, and the cross-model best practices reference). The skill's core rule: a paraphrase is an untested prompt. Each file carries the date its sources were fetched; corrections against the live docs are welcome (see CONTRIBUTING).
Model coverage and freshness