Linear-driven implementation loop that takes unassigned issues, designs, delegates, verifies, and merges them. Runs serially with batched releases.
Ships in implement-spec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the orchestrator of an implementation loop whose queue is a Linear project. One iteration = one issue driven to Done: designed by you, implemented by a delegated agent, verified, reviewed, merged, closed in Linear with a comment — and then the loop turns and selects the next issue. It never stops after one iteration; it ends only when the project has no issue left that is neither Done nor waiting on a human. Never leave the repository red.
Five principles carry the whole thing. Everything below is their consequence.
git status, the project's CLAUDE.md, its progress
file and the gate — never from memory of the previous run.list_issues, get_issue, save_issue,
save_comment, list_issue_statuses, get_document). The exact tool names
differ slightly between Linear MCP builds — look them up with ToolSearch once
per iteration, do not guess.CLAUDE.md (team, project, gate
command, release command, live URL, e2e tooling). Format and defaults:
references/project-config.md. If the block
is missing, bootstrap it first (derive what you can from the repo and Linear,
write it, commit it) — that is the whole first iteration.docs/progress.md) — the only state that
survives between iterations. Keep it short: current work, failed approaches,
open questions. Git history is the changelog, this is not.git status and git log --oneline -5. Is the tree clean? Is there an
unmerged branch from a previous iteration? A branch with commits whose issue
is still In Progress is your own unfinished work — resume it (§2).CLAUDE.md again — compaction may have dropped
the project's hard rules; they are non-negotiable and must be held fresh.Full detail: references/linear-protocol.md. The short form:
/implement-spec ABC-123) overrides selection; it may
not be an issue assigned to someone other than the user.gitBranchName..env, anything on a server. Inert
documentation, examples and templates are not, however deployment-shaped
their names look. If the config lists confirm_before_editing paths, stop and
ask before touching those; derive the list from the runs-it test, never from
what it said last month.Shape every issue before implementation, inline — no spawned design agent. For an ordinary issue that is a few deliberate paragraphs inside the brief: boundaries, conflicts with in-flight work, what to watch. For anything that settles a shape that is expensive to rewrite — a data model, a security boundary, a ledger, a public API — write a full design note into the issue description (interfaces, schema, edge cases, what must never reach the client, what a migration must keep backward compatible). Comments are editable and get lost; the description is the spec the implementer and reviewers work from.
Production code is written by the strongest available model, never by a
smaller one: in Claude Code, an Agent with model: "opus" (or inline when
the session itself runs on it). The orchestrator writes the brief, spawns the
agent, and reviews its report and diff when it returns. Follow-up fixes go back
to the same agent (SendMessage keeps its context), not into inline edits
by the orchestrator.
The agent starts with nothing but the repo and its tools, so the brief is what makes the issue finishable without questions. Communicate through pointers, not copies: the issue identifier, the document names, the file paths, the previous commits — paste only what the agent cannot fetch itself and what exists nowhere else yet (the §4 design decisions, the boundaries). Template: references/implementation-brief.md. It always carries:
CLAUDE.md, and the design
decisions already made, stated as closed;gitBranchName, small commits, run the gate as you go, keep the
progress file current and commit it with the work;A long-running agent that dies mid-task leaves work uncommitted — commit its partial state before restarting anything.
Detail and the lessons behind each rule: references/verification.md.
grep/head replaces the exit code with the filter's, and a lint
error scrolls past into a red commit.curl or a short script, before spawning anything: status codes, tampering
(a crafted body the server must refuse), secret leaks (fetch the served HTML
and bundles and grep them). Two minutes, better evidence than a screenshot.
Confirm each check fails without the fix (stash, re-run, restore) —
a check that passes for a reason you have not established is not evidence.Agent, model: "sonnet",
Chrome DevTools MCP or whatever the config names). It gets only the
acceptance criteria, the URL and test credentials — never the diff, the
plan or the reasoning. At most 5 criteria, aim for 2–3, the main
scenario only, minutes not a quarter of an hour. Everything a unit test or an
HTTP check can carry is pushed down first; e2e is the most expensive level
there is and runs once.
checkout, reset, rebase or stash. Hot reload changes the page under a
black-box tester; if the tree moved, throw the run away and re-run.After verification is green the orchestrator reads the diff itself, inline — correctness, security, the project's domain rules, obvious simplifications. No multi-agent review workflows, no adversarial panels, no spawned review agents, no pre-merge fix loops.
gh pr merge --merge --auto or the
project's merge style; never push straight to the default branch).release_policy: per-task.
A deploy costs a pipeline run, a migration window and a slice of a human's
attention — spending all three on one copy fix is waste. Between releases
the loop keeps merging and the default branch accumulates.gh run list --limit 1 right after
gh release create often returns the previous run, already green; match
the run by title and then trust only the live answer. Then a smoke pass of
the key flow against the live URL, and watch the error tracker for the new
release for ten minutes. A spike means roll back first, investigate second.Comments and issues are written in the project's working language
(config linear_language, default: the language the existing issues use) —
that is the humans' channel. Code, commits and PRs follow the repo's language
(usually English). Templates for every comment the loop posts:
references/linear-protocol.md.
Every failure that reached verification is a missing rule, not bad luck. In
the same iteration add the check that would have caught it — a test, a lint
rule, a policy test, a line in CLAUDE.md — and say so in the Done comment.
Prose rules erode as context fills; a check does not.
A stop condition is never a follow-up issue — follow-ups are for out-of-scope discoveries. The unattended loop resumes by itself when the situation changes.
Waiting is a state, and In Progress is not it. An issue blocked on a human gets all three of:
owner, or the
issue's creator),Waiting if the team has that state — otherwise back to
Todo (check list_issue_statuses; an API token cannot create states),BLOCKED: comment (in the project's language) naming exactly what is
needed and what is already done without it.Stop conditions:
confirm_before_editing.BLOCKED:
comment, summarize the project state, and pause until something unblocks.
Never stop while an unblocked issue remains.Never leave an issue In Progress at the end of an iteration unless a branch with commits is genuinely mid-flight.
| Invocation | Behaviour |
|---|---|
/implement-spec | One pass: one issue to Done, then the drained-queue / next-issue summary and stop. |
/implement-spec ABC-123 | Same, but on that issue (must be unassigned or the user's own). |
/loop 45m /implement-spec | Unattended: pass after pass; after the queue drains it pauses and picks work up on a later wake-up as soon as anything unblocks. |
task verify | grep error — the exit code you read is grep's.gh run list --limit 1 after a release — it is usually the
previous, already-green run."revealed",37 does
not mean the value is 37.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/implement-spec:implement-specfrom implement-spec
npx claudepluginhub freema/ai-skills --plugin implement-specOther plugins' skills for the same job