/formulary:formularyfrom formulary
Quality-first playbook for prompting Claude models and choosing the right model per task, built from Anthropic's official prompt engineering guidance. Use when writing or reviewing a system prompt or agent prompt for Claude, deciding between Fable, Opus, Sonnet, and Haiku, setting effort or thinking parameters, fixing a Claude app that is too verbose, ignores tools, overengineers, fabricates progress, stops early, or ships generic frontend design, migrating prompts from older Claude models, or tuning agent harnesses and code review pipelines. Not for prompting non-Claude models (OpenAI GPT, Gemini, Llama), account or billing questions, or coding tasks that involve no prompt writing.
Ships in formulary. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill encodes Anthropic's official prompting guidance. Its goal is maximum output quality, not token savings. When quality and cost conflict, choose quality: higher effort up front usually reduces total turns and rework, so it is often cheaper end to end anyway.
Do not load this skill for: prompting non-Claude models (OpenAI GPT, Gemini, Llama, Mistral), Anthropic account, billing, or rate-limit questions, Claude Code configuration (settings, hooks, MCP servers), or coding tasks that involve no prompt writing. For SDK code and API integration mechanics beyond the parameters named here, prefer a dedicated API skill if one is available.
Follow these steps in order whenever building or fixing a prompt:
references/models-and-params.md before writing any API call; it is the single source of truth for thinking config, effort, max_tokens, and the parameter combinations that return 400 errors.references/core-techniques.md (clarity, motivation, examples, XML structure, role, long-context ordering).references/snippet-library.md maps observed problems to verbatim, Anthropic-tested prompt snippets, each with a number. Prefer these exact snippets over improvising your own wording.For end-to-end demonstrations of this workflow, see the worked examples table below.
| Task | Model | ID |
|---|---|---|
| Hardest reasoning, multi-day agentic runs, end-to-end deliverables, deep debugging | Claude Fable 5 | claude-fable-5 |
| Default for everything serious: coding, agents, knowledge work, writing, review | Claude Opus 4.8 | claude-opus-4-8 |
| High-volume production, fast interactive coding, cost-sensitive agents | Claude Sonnet 5 | claude-sonnet-5 |
| Existing pipelines already tuned for it | Claude Sonnet 4.6 | claude-sonnet-4-6 |
| Simple classification, routing, subagent fan-out, latency-critical | Claude Haiku 4.5 | claude-haiku-4-5 |
Rules of thumb:
claude-opus-4-8 unless there is a specific reason not to. Never silently downgrade for cost.claude-fable-5 when the task is above what prior models could do: long autonomous runs, first-shot builds of well-specified systems, navigating real ambiguity. Testing it only on easy workloads undersells it.stop_reason: "refusal"; configure fallback to Opus 4.8).The authoritative rules live in references/models-and-params.md; this is the one-line summary. Effort: high floor for intelligence-sensitive work, xhigh for coding and agents. Thinking: adaptive on current models, always-on for Fable 5, never budget_tokens. max_tokens: 64K+ at high effort, stream above ~16K. Sampling params and assistant prefill: rejected on the newest models (4.6 partially allows sampling; see references/models-and-params.md), steer with prompting instead.
Read the file matching your current need; do not load all of them by default.
| Need | Read |
|---|---|
| Model IDs, thinking/effort/API params, hard 400 errors | references/models-and-params.md |
| Universal techniques: clarity, examples, XML, role, long context, formatting, tool use, agentic systems | references/core-techniques.md |
| Prompting Claude Fable 5 (long runs, memory, subagents, autonomy) | references/fable-5.md |
| Prompting Claude Opus 4.8 (verbosity, effort, subagents, frontend, code review) | references/opus-4-8.md |
| Prompting Claude Sonnet 5 or Sonnet 4.6 | references/sonnet.md AND references/opus-4-8.md (Sonnet shares most Opus 4.8 patterns; read both) |
| Symptom-to-snippet lookup (verbatim Anthropic-tested prompt blocks, numbered 1-37) | references/snippet-library.md |
| Scenario | File |
|---|---|
| Coding agent narrates too much, summaries unreadable | examples/01-verbose-coding-agent.md |
| Choosing model and params for a code review pipeline | examples/02-code-review-pipeline.md |
| Support assistant answers from memory instead of searching | examples/03-assistant-wont-search.md |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub samsshow/formulary-claude --plugin formulary