Spec first

From Archive228/loopkit · View interactive version

Spec first is an AI agent skill from the GitHub repository Archive228/loopkit. Write the goal spec on disk before the agent acts, so it can't drift. Use before any multi-step task.

How to use this skill

Skill file

Spec First

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:

The agent re-reads this file every iteration. State (what's done) goes in a separate IMPLEMENTATION_PLAN.md it updates in place. If you can't write "done when" concretely, the task isn't ready — clarify before coding.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.