Claude CodeSoftwareShipping codeAI score · 80/100AI-assisted edit · no obvious prompt-injection riskX

Read Files First, 5-Bullet Plan, Wait for OK Before Coding in Claude Code

Send pre-check prompt → AI reads files and outputs 5-bullet plan → Confirm before any code is written

BeginnerStepsPromptTip
Who
Developers making large changes with Claude Code
You get
Reduce incidents of AI modifying unintended files
You need
Claude Code

Constraints

Send a fixed prompt in Claude Code asking the AI to read relevant files first, list the plan in 5 bullets, and wait for an explicit "ok" before writing any code. No additional tools or configuration needed.

What they did

Before any big change in Claude Code, @arpittalksstuff sends a fixed prompt asking the AI to read relevant files first, outline the plan in 5 bullets, and wait for an "ok" before writing code.

How it went

The author reports this habit saves them from ~80% of "why did you touch that file" moments (source: author self-report, unverified).

Worth knowing

Single short post; does not specify how "relevant files" are determined (automatic context vs. manual file paths). The 80% figure is the author's subjective estimate without controlled data. No reported details on rejecting or modifying the plan. Not tested by this site.

Steps

  1. Send the pre-check prompt

    Enter the following prompt in your Claude Code conversation, asking the AI to read relevant files and outline the plan before making any large changes:

    Execution prompt · Source text。Claude Code conversation input

    read the relevant files first. tell me your plan in 5 bullets. don't write code until i say ok
  2. Review the plan and confirm

    Read the 5-bullet plan returned by the AI, checking that it covers the correct files and scope. Once satisfied, reply with "ok" or a similar confirmation, and the AI will proceed to write the actual code.

Prompt you can copy

Reference prompt · Source text。Confirm the destination, input variables and output format before use.

This block is the prompt. Ads are never placed here.

read the relevant files first. tell me your plan in 5 bullets. don't write code until i say ok

Main prompt is embedded in step 1 prompts; no additional setup prompt needed for this case

Source

Claude Code 大改动前先读文件、5 条要点讲计划,你点头前不写代码 · arpittalksstuff · X · 2026-10-12T08:30:00.000Z

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related