/agentic-dev:claude-promptingfrom agentic-dev
How to write the instructions Claude reads as an agent — CLAUDE.md, AGENTS.md, SKILL.md files, subagent definitions, slash commands, hook messages, and system prompts. Use this whenever you are writing, editing, reviewing, or debugging an instruction file an agent will read; when the user asks why Claude ignores or over-applies an instruction, is too verbose, over-verifies, expands scope, or spawns too many subagents; or when deciding which model to hand a task to. Covers the over-prompting trap, instructions that used to help and now backfire, and per-model behavior deltas across the Claude 5 series.
Ships in agentic-dev. 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.
Read when SKILL.md points to them.
CLAUDE.md is not documentation. It is a system prompt that gets prepended to every single turn, competing for attention with the task the user actually asked about. Everything in it is paid for on every request, forever, whether or not it is relevant. That framing drives most of what follows: the goal is not completeness, it is the smallest set of instructions that changes behavior.
Applies equally to AGENTS.md, SKILL.md bodies, subagent definitions,
slash-command prompts, hook messages, and output styles. Where the guidance
differs by artifact, it says so.
Before editing an existing instruction file, read it end to end and ask of each line: would the model do this anyway? Modern Claude models arrive with strong defaults — they verify their own work, catch and fix their own mistakes, narrate progress through long tasks, and plan multi-step work without being walked through it. An instruction that restates a default is not neutral; it compounds with the behavior the model already has and pushes it into excess. The single highest-value edit to most CLAUDE.md files is a delete.
Not everything is a default, though, and the two are worth telling apart. Some behaviors genuinely do need prompting — staying in scope, not over-fitting to the test suite, confirming before destructive actions. Those earn their place. The test is not "is this a good idea" but "does the model already do this."
If the file was written for an older model, assume some of it is now actively harmful. See Instructions that have gone stale.
This is the technique with the widest payoff. Claude generalizes from a reason in a way it cannot generalize from a rule, so one explained constraint covers cases you never enumerated.
Weak: NEVER use ellipses.
Strong: Your response is read aloud by a text-to-speech engine, so avoid ellipses — it has no pronunciation for them.
The second version also handles em-dashes-as-pauses, emoji, and ASCII tables, none of which you had to mention. In a CLAUDE.md this usually means naming the constraint behind a convention: "we pin dependencies exactly because the build is reproduced in an air-gapped CI runner" beats "always pin dependencies."
When you find yourself writing a rule you cannot justify in a clause, that is a signal the rule may not be needed.
Positive descriptions of the target behavior outperform prohibitions, and positive examples outperform both. "Do not be verbose" gives the model a direction but no destination; a two-line sample of the tone you want gives it something to match.
Don't use markdown in responses → Write responses as flowing prose paragraphs.Don't spawn unnecessary subagents → Delegate when a task fans out across independent items; work directly otherwise.The same applies to formatting: the style of your instruction file leaks into the output. A CLAUDE.md that is entirely nested bullets tends to produce bulleted answers. If you want prose, write prose.
Current models follow instructions literally and do not silently generalize one to a neighbor. That precision is the point — it makes carefully tuned files behave predictably — but it means an instruction you meant broadly will be applied narrowly.
Write Apply this to every module under src/, not just the entry point rather
than trusting the model to infer the sweep. Likewise, an instruction placed
under a ## Testing heading will be read as scoped to testing; if it governs
everything, hoist it.
The file is scanned by a model mid-task, not read front-to-back by a human.
<code_style>,
<pr_conventions>) bind a block of instructions to a name the model can hold
onto, which matters more as the file grows. Markdown headings work; tags are
stronger when a block must not bleed into its neighbors.docs/release.md" costs a line per turn; one
that inlines the release process costs the whole thing per turn. Reserve the
always-loaded budget for what changes behavior on most tasks.Prompts written to overcome older models' reluctance now overshoot. CRITICAL: You MUST use the search tool produces a model that searches when it shouldn't.
If in doubt, use [tool] produces a model that is always in doubt.
Rewrite escalation as description: CRITICAL: You MUST use X when... →
Use X when.... All-caps MUST/NEVER is a yellow flag — not forbidden, but each
one should be load-bearing, reserved for things that are genuinely destructive
or irreversible. A file where every rule shouts has no way to mark the rules
that matter.
If a behavior is over-triggering, the fix is almost always to dial down the language, not to add a counter-rule. Two competing emphatic instructions produce worse results than one calm one.
Audit for these specifically. Each was reasonable advice for earlier models and now costs tokens, latency, or quality:
| Pattern | Why it backfires now |
|---|---|
| "Include a final verification step" / "double-check your answer" / "use a subagent to verify" | Claude Opus 5 verifies its own work unprompted; these compound into over-verification with no quality gain. Delete rather than soften. |
| "After every N tool calls, summarize progress" | Current models give good interim updates by default; forced scaffolding produces noise. |
| "If in doubt, use [tool]" / "Default to using [tool]" | Reliable over-triggering. Replace with a condition: "Use [tool] when it would improve your understanding of the problem." |
| "Think step by step before answering" | Thinking is on by default on the 5 series and is steered by effort, not by prose. |
| "Explain your reasoning" / "show your thinking" in the response | On Fable 5 and Mythos 5 this can trip the reasoning_extraction refusal category. Read structured thinking blocks instead. |
| Enumerated behavior lists (every verbosity tic, every checkpoint case) | Instruction-following is strong enough that one short principle covers what a 12-item list used to. Long enumerations are also more likely to conflict with each other. |
| Prescriptive step-by-step recipes for tasks the model can plan | Over-prescription measurably reduces output quality on the strongest models. State the goal and constraints; let it plan. |
The general rule: instructions written to compensate for a weakness the model no longer has are now instructions to overdo something it already does well.
Things the model cannot discover from the repo, or would discover expensively:
Things that do not:
package.json / Cargo.toml.docs/ and changes rarely.Before — every line is either a default, a stale instruction, or a rule with no reason attached:
## Code Style
- Write clean, readable code
- ALWAYS add type annotations
- NEVER leave console.log in committed code
- Follow existing patterns in the codebase
## Testing
- CRITICAL: You MUST run the tests before saying you are done
- Always double-check your work before responding
- If in doubt, use the search tool to find related tests
After:
## Style
Type annotations on exported functions — `tsc --noEmit` is a CI gate and
untyped exports fail it. `console.log` fails the lint gate too; use the logger
in `src/log.ts`.
## Testing
`npm test` runs everything and takes about four minutes; `npm test -- <path>`
runs one file. The suite talks to a real Postgres on port 5433, so a connection
error usually means `docker compose up db` rather than a broken test.
Six rules became four sentences. "Write clean code" and "follow existing
patterns" were defaults. The verification and search instructions were stale —
they now cause over-verification and over-searching. The two survivors picked
up the reason that makes them generalize: a model that knows why console.log
is banned also knows what to do about console.error. And the testing section
stopped restating that tests should pass, and started carrying what the model
genuinely cannot discover — how to run a single file, and how to read the
failure it is most likely to hit.
CLAUDE.md is read by whichever model is running, so prefer instructions that hold across models and keep model-specific tuning small and labeled. When a user is seeing a specific misbehavior, read the file for the model they are on:
references/opus-5.md — verbosity, agentic
narration, over-verification, scope expansion, subagent damping,
self-correction narration.references/sonnet-5.md — effort calibration,
tool-use triggering, literal instruction following, design defaults.references/fable-5.md — long-horizon runs, memory
systems, progress grounding, checkpoint behavior, the reasoning-extraction
refusal, skills that are too prescriptive.references/opus-4-8.md — still widely deployed and
the standard fallback target; under-triggers where the 5 series over-triggers.Read references/model-selection.md when
deciding which model to assign to a task, subagent, or workflow stage — it
covers the 5-series lineup, relative strengths, context windows, effort levels,
and what to delegate where. Consult it whenever you are writing a subagent
definition with a model: field, or the user asks "which model should I use
for X".
references/snippets.md holds tested prompt text for
the behaviors people most often need to tune: conciseness, scope discipline,
subagent damping, autonomy and checkpoints, grounding progress claims, and
communication style at the end of a long run. Prefer adapting one of these to
writing new text from scratch — they are calibrated, and reinventing them tends
to reintroduce the over-prompting patterns above.
Delete the restated defaults, strip the shouting, attach reasons to what survives, move long procedures out to their own files — you will do all of that without being walked through it. Spend the attention instead on the four passes an unaided read tends to skip.
Name the mechanism, not just the smell. Cutting a line because it reads as filler and cutting it because it restates behavior the model already has are the same edit and a different lesson — only the second tells the author what not to write next time. Use the table above to say which default it collides with.
Write the precedence down. Two rules pulling opposite ways is the most common cause of "Claude ignores my CLAUDE.md": be thorough against be concise, implement rather than suggest against ask before changing files, a general rule against a specific case that contradicts rather than narrows it. Spotting them is the easy part — leaving the resolution implicit is what lets them grow back. Decide which wins and say so in the file.
Check that it worked. The edit was motivated by something observable or it wasn't worth making. Re-run the task that prompted it and watch that specific behavior, rather than rereading the file and deciding it looks better.
Change one thing at a time. Delete a verification instruction and add a conciseness one in the same pass, and when the result shifts you cannot tell which did it. The instinct at that point is to add a third, which is how files grow into the state that needed auditing.
Then say what you did not change and why, so the user can push back on judgment calls rather than re-reading the whole file.
Map the symptom to a cause before editing:
| Symptom | Usual cause |
|---|---|
| Instruction ignored | Buried under a heading that scopes it away, or contradicted elsewhere in the file. Check for conflicts before adding emphasis. |
| Instruction over-applied | Emphatic language (CRITICAL/ALWAYS), or a rule with no stated condition. Add the condition; remove the caps. |
| Applied to one case, not the sweep | Literal reading. State the scope. |
| Too verbose | Prompt for it explicitly — on Opus 5, lowering effort will not reliably shorten visible output. |
| Over-verifying, over-exploring | A verification or thoroughness instruction that should be deleted. |
| Wrong output format | Match your prompt's own style to the target style, and show an example rather than describing one. |
Adding more instructions is the last resort, not the first. Most fixes are a deletion or a de-escalation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tarqd/tarq-plugins --plugin agentic-dev6 skills in this plugin
/adrManage the project's Architecture Decision Records — propose new ADRs, supersede or deprecate existing ones, flip status (accept / reject), and audit the ADR set for drift. Use when the user says "write an ADR", "propose an ADR for X", "supersede ADR-N", "deprecate ADR-N", "accept ADR-N", "audit ADRs", "check the ADR set", or when a non-trivial architectural decision needs to be recorded. Detects project convention (filename pattern, header style, section template, index format) from existing ADRs before making changes — never invents a format./bootstrap-repoBootstrap a local project onto GitHub for agent-driven development. Use when a project has files locally but no git history, no remote, or no initial commit and is about to start phase-1 implementation. Writes a project-appropriate .gitignore, decides the .claude/ versioning policy, stages files explicitly, creates the initial commit, creates the GitHub repo, verifies the push, and hands off to /track-plan./designTurn a design discussion into the project's bootstrap document set — DESIGN doc, Architecture Decision Records (ADRs), and a phased implementation plan — or evolve an existing one. Auto-detects whether the repo is fresh (bootstrap) or has prior design artifacts (evolve); asks the user when state is ambiguous. Use when the user explicitly asks to write up a design, turn a discussion into ADRs, add or supersede ADRs from a conversation, propose changes to an existing design doc, add a new phase to the plan, or scaffold ADRs and phase docs in a fresh repo.
Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Aug 1, 2026