pooyagolchian/specforge/loop
Claude Code and agent skill by pooyagolchian/specforge
- community
Checking that the SKILL.md file is still in the repository.
Autonomously work through an approved feature's task list one task at a time until done or blocked — SpecForge's governed "Ralph loop". Use when the user wants to auto-run the implementation, loop through remaining tasks, run SpecForge autonomously, or asks for a Ralph loop. Gate-safe: only runs after the spec and plan are approved, and stops (never guesses) on a blocker.
Install
npx vskill@latest install pooyagolchian/specforge/loopSKILL.md
The same SKILL.md was published earlier as pooyagolchian/specforge/loop.
/specforge:loop — governed autonomous execution (the Ralph loop, gated)
Drive the active feature's tasks.md to completion by executing tasks one at a time in a loop, checking each off as you go. This is SpecForge's take on the Ralph loop (run the agent repeatedly until the work is done) — but made safe: it can only ever execute a plan a human already approved, and it stops instead of guessing when it hits a blocker.
When to use
- The user explicitly wants to auto-run the remaining implementation of an approved feature.
- Trigger:
/specforge:loop(optionally "run one iteration" for a single step).
Preconditions (check first, refuse otherwise)
- There is an active feature in
specforge/state.mdwith atasks.md. - Its
specifyandplanare approved (gate OPEN), orfasttrackis on. If not,
stop and tell the user to /specforge:approve (or /specforge:quick). The PreToolUse gate would block edits anyway — surface this clearly rather than fail mid-loop.
The loop (each iteration)
- Read
specforge/state.mdand the active feature'stasks.md; find the first unchecked
task (respect [P] ordering; prefer a tests-first task before its implementation task).
- If there are none left → mark
implementdone instate.md, run the feature's
quickstart.md / tests to verify, summarize, and exit the loop.
- Implement only that one task, staying within its scope and the plan/contracts.
- Verify it (relevant test or a quick check).
- On success → tick its checkbox
[ ]→[x]intasks.md, append an audit row. - On a blocker (ambiguity, a decision that's the human's to make, a failing check you cannot
resolve within scope) → do not guess. Write the blocker to specforge/specs/<feature>/loop-blocked.md (what's blocked + the question) and stop the loop.
- Repeat.
Stop conditions (never spin)
- All tasks checked → done.
- A blocker was recorded → stop for human input.
- No task got checked off in an iteration (no progress) → stop and report.
- A sensible iteration cap (≈ the number of open tasks + a small margin) is reached.
Headless / true Ralph loop (outside the session)
For a fully unattended run, use the bundled runner, which re-invokes the CLI per task and enforces the same gate:
It refuses to start unless the gate is open, bounds itself, and bails on a blocker or when progress stalls. Requires the claude CLI with this plugin available.
Guardrails
- Governed autonomy: the loop executes an approved, audited plan — it does not create scope.
New scope means a new /specforge:specify cycle, not more looping.
- Never edit generated code to paper over a design flaw; if the design is wrong, stop and fix the
plan (record it), then resume.
- Every ticked task and every stop is written to
state.md/audit.md, so a run is fully
reconstructable and /specforge:resume can pick up after any interruption.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/specforge/skills/loop/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pooyagolchian/specforge/loop)