No. 023 Pin the behavior
Read {report} and add tests for the lowest-covered files…
Read {report} and add tests for the lowest.
- Claude Code
- Codex
- Cursor
- Pin the behavior
read {report} and add tests for the lowest-covered files until each is above {target}%
When to use
“Read {report} and add tests for the lowest-covered files…” fits when the behavior should be pinned by a test, not only by a reading of the diff, because it says “read {report} and add tests for the lowest-covered files until each is above {target}%”, after you replace {report}, {target} with names from the repo.
One filled message for “Read {report} and add tests for the lowest-covered files…” is: read coverage/cart.txt and add tests for the lowest-covered files until each is above src/cart.js%
When not to use
Leave “Read {report} and add tests for the lowest-covered files…” unused when you already have the failing test in front of you and you wanted it explained, because “read {report} and add tests for the lowest-covered files until each is above {target}%” points the other way
How to run it
Claude Code
Claude Code takes “Read {report} and add tests for the lowest-covered files…” as one paste at the repo root. Do not also save .claude/commands, or “read {report} and add tests for the lowest-covered files until each is above {target}%” replays on the next task.
Codex
Codex takes “Read {report} and add tests for the lowest-covered files…” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “read {report} and add tests for the lowest-covered files until each is above {target}%”.
Cursor
Cursor should see “Read {report} and add tests for the lowest-covered files…” only as a chat paste of “read {report} and add tests for the lowest-covered files until each is above {target}%” 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
- Stage: Pin the behavior
- Same stage: Find functions in NotificationsService.swift that are not…
来源:Anthropic · https://code.claude.com/docs/en/prompt-library · 2026-12-01