Skip to content
Back to skills

Spec First

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsgo

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add elitongadotti/cockpit --skill spec-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec First?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spec First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elitongadotti-spec-first/badge)](https://www.skillsdirectory.com/skills/elitongadotti-spec-first)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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
---
# 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: <cmd>".
- **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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.