No. 041 Find the cause

The {test} test is failing, find out why and fix it

Use when something fails and the cause is not known yet

  • Claude Code
  • Codex
  • Cursor
  • Find the cause

Prompt

the {test} test is failing, find out why and fix it

When to use

“The {test} test is failing, find out why and fix it” fits when something fails and the cause is not known yet, because it says “the {test} test is failing, find out why and fix it”, after you replace {test} with names from the repo.

One filled message for “The {test} test is failing, find out why and fix it” is: the cart total test is failing, find out why and fix it

When not to use

Leave “The {test} test is failing, find out why and fix it” unused when you already know the line and the remaining work is the edit, because “the {test} test is failing, find out why and fix it” points the other way

How to run it

Claude Code

Claude Code takes “The {test} test is failing, find out why and fix it” as one paste at the repo root. Do not also save .claude/commands, or “the {test} test is failing, find out why and fix it” replays on the next task.

Codex

Codex takes “The {test} test is failing, find out why and fix it” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “the {test} test is failing, find out why and fix it”.

Cursor

Cursor should see “The {test} test is failing, find out why and fix it” only as a chat paste of “the {test} test is failing, find out why and fix it” for this turn. A file at .cursor/rules would keep applying after the turn ends.

Comparison

对比待补

This before-and-after was not run on this machine.

Related

来源:Anthropic · https://code.claude.com/docs/en/prompt-library · 2026-12-01