OpenParable
Skip to content
← Back to skills

Spec First

Agent Building
spec-first

Spec First is an Agent Skill for agent building published in the Archive228/loopkit repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Write the goal spec on disk before the agent acts, so it can't drift. Use before any multi-step task.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Archive228/loopkit/blob/HEAD/skills/spec-first/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/spec-first, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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:

  • Goal — one sentence.
  • Done when — concrete, checkable conditions. "Test suite green: ".
  • Never touch — files/areas off-limits.
  • Stop if — more than N files outside scope change; a passing test starts failing. 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.