Skip to content AI News: Claude Duet: Anthropic's agent that messages you first →
PH-1083 · Code prompt

Scope Check Before You Build

Makes Claude Code or Codex check whether a task should get deeper or bigger before it writes code, so a small fix stays small and a vague task gets a plan you approve.

What you get

Makes Claude Code or Codex check whether a task should get deeper or bigger before it writes code, so a small fix stays small and a vague task gets a plan you approve.

What you need
  • One blank to fill in: describe the task
Best inClaude CodeAlso works in any coding agent
193 words
Prompt · October 27, 2026
Before you change any code for the task below, decide how big this job should be. Coding agents tend to grow a task: a bug fix turns into a refactor, a new endpoint turns into a new framework. Your default is to go deeper on what I asked, not wider.

Answer these first, in a few lines each:
1. What is the smallest change that fully does what I asked? Name the files.
2. What would make it worth doing more than that? Only count reasons I gave or things that will break without it, not "while we're here" improvements.
3. What are you tempted to add that I didn't ask for? List it under "Not doing" with one line on why it can wait.
4. Where could the small change go wrong? Say how you'll test that exact spot.

Then pick one:
- SMALL: do the minimal change, run the tests, show me the diff.
- BIGGER: stop and show me the plan with the extra scope and why, and wait for my yes.

If you're unsure which, choose SMALL and add the bigger idea to "Not doing".

Task: [describe the task]
Coding Claude Code

How to use it

  1. Fill the blanks under «Make it yours» — the prompt updates as you type.
  2. Copy the prompt and paste it into Claude Code.
  3. Not quite right? Reply with what to change — the model keeps the rest.

More Claude Code prompts

PH-0708Coding

Bug Reproduction Test

Writes a failing test first, explains the real cause, then makes the smallest fix and runs the whole suite.

You fill in describe the bug, how to…

Claude Code
PH-0719Coding

CI Failure Fixer

Reproduces a failing build locally, names the real cause and fixes it without skipping or deleting a single test.

You fill in paste the failing log herebranch name

Claude Code
PH-0725Coding

CLAUDE.md Writer

Reads your repository and writes its CLAUDE.md: verified commands, the layout and the conventions the code follows.

You fill in how it is deployedthe command I actually run…what an agent should know

Claude Code
PH-0727Coding

CLI Command Builder

Adds a command to your CLI in the existing pattern, with flags, help text, error handling and tests that run.

You fill in what it doesthe exact command line

Claude Code
PH-0729Coding

Codebase Tour Guide

Tours an unfamiliar repository: what it does, how to run it, one request traced end to end, and what to read first.

You fill in what you have been asked to do

Claude Code
PH-0749Data & Analytics

Database Migration Writer

Writes a reversible migration in your repo style, split into safe steps for a large table, with the tests run.

You fill in describe the schema changerow count

Claude Code
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Confirm by email and get the free Prompt Cheat Sheet (PDF). Unsubscribe any time. Privacy policy