把祈使句改寫成測試
這是 Goal-Driven Execution 最值錢的小動作
原 CLAUDE.md 直接給了三組對照:「Add validation」→「Write tests for invalid inputs, then make them pass」;「Fix the bug」→「Write a test that reproduces it, then make it pass」;「Refactor X」→「Ensure tests pass before and after」。把指令寫成能寫成測試的句子,模型才有「完工條件」可以迴圈到底。
迴圈