一键导入
spec-first
Write the goal spec on disk before the agent acts, so it can't drift. Use before any multi-step task.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write the goal spec on disk before the agent acts, so it can't drift. Use before any multi-step task.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | spec-first |
| description | Write the goal spec on disk before the agent acts, so it can't drift. Use before any multi-step task. |
| when_to_use | a task with more than 2 steps, a long-running job, "build X", agent drifting |
Without an external contract, the agent drifts after ~3 iterations — and the failure looks like progress (code written, tests pass, wrong goal solved).
Write PROMPT.md BEFORE acting:
IMPLEMENTATION_PLAN.md it updates in place. If you can't write "done when" concretely, the task isn't ready — clarify before coding.Review a diff against the goal spec assuming the code is BROKEN. The reviewer that lives in the maker's head always agrees with itself — this pulls review into a hostile, separate pass. Invoke after every code change before marking work done.
Verify that an endpoint checks ownership, not just authentication. Use on any handler that reads or mutates user data.
Find the exact commit that introduced a bug. Use when something worked before and broke, and you don't know which change did it.
Turn a set of commits or a diff into a clean, user-facing changelog entry. Use before a release or PR description.
Turn messy WIP into clean, atomic commits with messages that explain why. Use before opening a PR.
Keep the agent's context lean so accuracy doesn't collapse. Use on long sessions, big files, or when the agent starts hallucinating.