No. 046 Find the cause

Show me all {events} for {scope} over {timeframe}. write…

Use when something fails and the cause is not known yet

  • Claude Code
  • Codex
  • Cursor
  • Find the cause

Prompt

show me all {events} for {scope} over {timeframe}. write the query, run it, and tell me what stands out

When to use

“Show me all {events} for {scope} over {timeframe}. write…” fits when something fails and the cause is not known yet, because it says “show me all {events} for {scope} over {timeframe}.”, after you replace {events}, {scope}, {timeframe} with names from the repo.

One filled message for “Show me all {events} for {scope} over {timeframe}. write…” is: show me all failed total calculations for src/cart.js over the last day.

When not to use

Leave “Show me all {events} for {scope} over {timeframe}. write…” unused when you already know the line and the remaining work is the edit, because “show me all {events} for {scope} over {timeframe}.” points the other way

How to run it

Claude Code

Claude Code takes “Show me all {events} for {scope} over {timeframe}. write…” as one paste at the repo root. Do not also save .claude/commands, or “show me all {events} for {scope} over {timeframe}.” replays on the next task.

Codex

Codex takes “Show me all {events} for {scope} over {timeframe}. write…” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “show me all {events} for {scope} over {timeframe}.”.

Cursor

Cursor should see “Show me all {events} for {scope} over {timeframe}. write…” only as a chat paste of “show me all {events} for {scope} over {timeframe}.” 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