No. 143 Shape the design
Trace second-order effects
After the direct effect, keep going into other modules, user behavior, and later maintenance cost.
- Claude Code
- Codex
- Cursor
- Shape the design
译 Do not consider only the direct effect of this change. Keep inferring its second-order and third-order effects, especially the potential impact on other modules, user behavior, system complexity, and long-term maintenance cost.
When to use
When a cache is added to checkout, this prompt pushes past the faster list into stale prices, reconciliation, and who clears the entry.
The input is one sentence: cache the product-list endpoint for 60 seconds.
When not to use
When the edit is a comment or a test name, do not expand it into a cross-module impact report.
How to run it
Claude Code
Paste it to Claude Code after the plan exists and before files change. It belongs at the end of a plan, not on a hook that runs on every save.
Codex
Have Codex write the effects before the patch. Do not put this paragraph in the global AGENTS.md.
Cursor
Paste it in chat after the plan. A rule file would demand third-order effects for renaming one variable.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Shape the design
- Same stage: Look across fields
来源:数字生命卡兹克 · https://x.com/Khazix0918/status/2122268349707219333 · 2026-12-02