Claude Code prompting guide: CLAUDE.md, scope & verification
A practical Claude Code prompting system for persistent CLAUDE.md context, scoped implementation briefs, acceptance criteria, verification and safe stop conditions.
Use CLAUDE.md for durable project context
Anthropic's current guidance says Claude Code automatically reads CLAUDE.md context. A global file can hold personal defaults across projects, while a repository-level file can hold project architecture, conventions and commands.
Put durable facts there: product goal, architecture boundaries, package manager, build/test commands, naming conventions, files that must not be touched and what “done” means. Do not turn it into a dump of temporary task instructions.
Give each task a bounded implementation brief
CONTEXT
[what exists and why it matters]
TASK
[one concrete outcome]
ALLOWED SCOPE
[files or surfaces the agent may change]
DO NOT
[explicitly forbidden changes]
ACCEPTANCE CRITERIA
[observable conditions for completion]
VERIFICATION
[commands and user flows to run]
STOP CONDITIONS
[when to report instead of guessing]The goal is not a longer prompt. The goal is a prompt with an objective finish line and explicit boundaries.
Define success before implementation starts
“Make it better” cannot be verified. “On mobile the CTA stays above the fold, no horizontal overflow, desktop behavior is unchanged, lint and typecheck pass” can.
- Use observable acceptance criteria.
- Name the user flow that must be tested.
- Tell Claude which checks are mandatory.
- For risky changes, ask for an impacted-file plan before editing.
- If evidence is missing, instruct the agent to stop and report instead of guessing.
Copy-ready Claude Code task prompts
Scoped bug fix
Find the root cause of [bug]. Reproduce it from the existing code and tests before editing. Change only the smallest necessary surface. Do not refactor unrelated code or add dependencies. Acceptance: [conditions]. Run [checks]. If the root cause cannot be proven from repo/runtime evidence, stop and report the missing evidence instead of guessing.Production red-team
Audit [flow] as a production reviewer. Look for broken states, stale data, auth/permission mistakes, error handling gaps, mobile issues and SEO regressions. Do not change anything until each finding is proven from repo or runtime evidence. Then fix only high-confidence issues and rerun the relevant checks.FAQ
What is CLAUDE.md?
Anthropic documents it as a markdown context file Claude Code reads automatically, with global and repository-level locations for persistent instructions.
What makes a strong Claude Code task prompt?
Give one concrete outcome, allowed scope, forbidden changes, observable acceptance criteria, verification steps and a stop condition for missing evidence.
Related Promtable pages
Promtable — AI tool discovery, comparisons, and prompt workflows.