Carry out an existing implementation plan as its orchestrator. Start it, not challenge-requirements, before implementing anything from a plan, such as PLAN.md from knackpack's plan-implementation skill or a phase or section of a plan, PRD or roadmap, with or without packages, once the user says to build it ("go ahead with the plan", "implement PLAN-02", "start Phase 0"), and when plan-implementation was asked to implement as well as plan, however small the change, since even a one-line package goes to a subagent, not a direct edit. Claude stays the owner, gives each subagent a bounded package, runs independent ones in parallel in separate git worktrees, reads each diff and reruns its checks, starts the reviews the risk calls for, then integrates and verifies the whole. It starts several subagents, so it costs more tokens than editing directly. Not for writing or revising a plan (plan-implementation), a change with no plan, which Claude makes directly, or a review of finished work (knackpack's reviewers).
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Turn an agreed plan into a verified, integrated change, as its orchestrator.
You own the engineering outcome: the user's intent, the plan, the assignments, their order, the integration and the final acceptance. Implementation subagents own the implementation: they investigate, change code and tests, run the package's checks and review their own work. Owning the outcome doesn't mean writing the code: a parent that writes it can't review it independently, and its context fills with detail the run needs room for.
These rules hold for the whole run:
Update the plan file's package status in place as work moves: it's the
record the user, a later session and other tools read. The exception is a
plan committed under .knackpack/, as with KNACKPACK_DOCS=repo: a person's
approval may be tied to its exact text, so never edit or commit it. When it
needs revising, stop and ask the user to revise it with
/knackpack:plan-implementation, which Claude can't start on its own.
Keep such a plan's package statuses instead in a file named PLAN-status.md, saved in the session scratchpad named in your system prompt, if there is one. Otherwise run printenv TMPDIR once (use /tmp if it prints nothing) and use the folder claude-${CLAUDE_SESSION_ID} inside it, writing the folder's full path literally in every later command. Create it with mkdir -p -m 700 <folder>, then check it with [ -d <folder> ] && [ ! -L <folder> ] && [ -O <folder> ] && chmod 700 <folder>; if the check fails, stop and tell the user.
The file isn't named PLAN.md
because plan-implementation keeps its own copy of the plan there under that
name; if PLAN-status.md is already there for another task,
choose another name rather than overwrite it.
Write nothing into the repository beyond what the packages change and the status updates above.
Challenge the work first, briefly, since this skill starts in place of challenge-requirements: read the plan or section and the code it touches, name each gap that would change what gets built or whether it's safe, with what shows it, and ask only the questions that block it, at most three. Record minor choices as assumptions and go on. Don't start challenge-requirements for this: it would build the work in this session.
Execution needs the user's explicit go-ahead for this plan, such as "go ahead", "implement it" or a request to plan and then implement. A request for a plan, a question about one, or praise for it without saying to build it isn't one: confirm first, since each package changes their repository. Once authorized, don't invent further approval steps, but existing organizational or repository approvals still apply; name the concrete one if it blocks dependent work.
The authorization covers implementing the packages the plan and the user name. Committing, pushing, opening pull requests, deploying, migrating real data and deleting anything outside the change each need their own go-ahead, unless the user already gave it.
Read the plan passed with this skill, or the one plan-implementation just saved, and the session's intent record if knackpack keeps one: it's newer where they differ, and only its Agreed entries are confirmed. If the user refers to a plan you can't find, ask for its path rather than rebuilding it from memory. When only some packages are named, execute those and the ones they depend on, and say so.
Record the baseline, git rev-parse HEAD and git status --porcelain, and
compare it with the plan's. If the code the plan builds
on has changed, or a package is blocked on an open decision, reassess the
affected packages before assigning them, and keep blocked work out of the
assignments.
If your environment has a task list, mirror the packages there.
Turn the plan's packages into assignments, one per implementer. When the
document says what to build but has no packages, such as a PRD section,
roadmap phase or requirements brief, cut the packages yourself first, by the
components they change, and say how you cut them. For a brief marked
knackpack-requirements/1, first run
sh "${CLAUDE_PLUGIN_ROOT}/scripts/requirements-check.sh" <its absolute path>,
which decides, not its Readiness line: go on at ready; at blocked <IDs> or
invalid: <reason>, stop and ask the user, naming each question and what it
asks, or the reason, and keep blocked work out until a rewritten brief answers
it or they explicitly say to build around it; otherwise say the brief is
unchecked, and after error or no output, stop and ask on any Blocking: yes
you see.
isolation: "worktree". In Claude Code, a
worktree-isolated subagent starts from the default branch
unless the worktree.baseRef setting (from Claude Code 2.1.133) is
"head", and even then it sees
only committed, tracked files, so uncommitted work in the session's tree,
an earlier package's included, is invisible to it. Put the contract and
any earlier changes it needs in its prompt, or ask the user before
committing them. A worktree left unchanged is cleaned up automatically; one
with changes is kept, and the agent's result names its path and branch.Use Claude Code's general-purpose agent as the implementer, or one the
project defines. Knackpack's own agents are report-only
reviewers.
If the Agent tool is missing or denied, stop and tell the user: implementing directly is their call, not a fallback to take silently.
The implementer knows only what its prompt says, so every assignment states:
Ask it to stop and report, rather than force a way through, when a central assumption proves false, the work grows beyond its scope, or passing a check would mean weakening it.
Write assignments that can't be read two ways: "clean up the handler" lets an implementer decide the scope; "move the token check before the database call, keeping its error response" doesn't.
Background subagents notify you when they finish; while you wait, prepare the next assignment or review a finished one rather than do their work.
When an implementer reports a blocker, a contract that has to change or scope that grew, decide it from the plan and the agreement: answer it, adjust the affected assignments, or stop the affected work and ask the user when the decision is theirs. Never let an implementer settle a requirement on its own.
To send work back, continue the same agent with SendMessage when its context helps, or start a fresh one with a corrected contract when its context would repeat the mistake.
For each finished assignment, before marking any package done:
git status --porcelain and git diff in the
tree it worked in, new files included, not the summary in its report.The same approach failing with the same signature isn't a new attempt, since a repeat isn't new evidence: send work back only with a changed approach. After 2 failed attempts, or the limit the plan sets for the package, start fresh, since patching a wrong approach makes the code worse: an agent started only to diagnose, changing nothing, maybe on a stronger model, then a new implementer given the plan, the attempt history and that diagnosis. A fresh start abandons a parallel implementer's own worktree, left unintegrated; in the session's tree, which may hold the user's uncommitted work, it undoes nothing without asking. If it fails too, stop that package, keep its diff and logs, and ask the user. A blocked package is never marked done.
An implementer's self-review and your diff review are enough for a small, low-risk change. Get an independent review before accepting changes to authorization, tenant isolation, sensitive data, money, migrations or other irreversible effects, concurrency, public contracts, or code that is hard to verify by running it.
Start the reviews the plan names for each package: approving the plan for
execution approved them. With knackpack installed, those are its reviewers,
such as knackpack:adversarial-reviewer for risky changes and
knackpack:security-reviewer for security-sensitive ones. If the risk calls
for a review the plan didn't name, ask the
user before starting it, and continue other work meanwhile. Give each
reviewer the change, saying where it is: the worktree's path and the
package's commits, or the files the package changed in the integrated tree,
since a reviewer otherwise reviews whatever is uncommitted or unpushed where
it starts. Give it the requirements as the paths of the brief, the plan and
the intent record, not the implementer's account or your conclusions, so its
judgment stays independent.
Resolve every Critical or High finding before accepting the work: send the
fix to an implementer, or record the user's decision to accept the risk.
When reviewers contradict each other or a finding is disputed, weigh the
evidence each gives; for a Critical or High finding still in doubt, offer an
independent check by knackpack:adjudicator.
You may change files the packages own only to:
Keep each one as narrow as its reason. Before making it, say which exception applies and why; afterwards, inspect the resulting diff. A small feature or bug fix is never an exception. If you find yourself writing more than an integration needs, stop and assign it.
Bring parallel results into the session's tree one at a time, in dependency
order. For a worktree, collect its change with
git -C <worktree> add -A && git -C <worktree> diff --cached --binary <start>,
where <start> is the commit it started from, check it with
git apply --check, then apply it. If it doesn't apply, that's an
integration conflict, for you to resolve under section 8 or to send back.
Verify after each integration, not only at the end, so a break points at one
result.
When the user has asked you to commit, commit each package once it's
accepted, a worktree's result once it's integrated and verified, before the
next is integrated, so each can be reviewed and reverted on its own. Commit
only the files its diff changed, by path: git add -- <new files> for the
files it created, since a commit by path takes only files git already
tracks, then git commit -m <message> -- <paths>, which leaves the user's
other staged work out. Leave out any file that had changes at the baseline,
since a commit by path takes the whole file, the user's lines included, and
say which you left out. Commit hooks run after you choose the files, and can
reject the commit or stage more:
git reset -q -- <new files>)
and treat what the hook reported as a failed check.git show --name-only --format= HEAD). If it holds anything else, take it
back with git reset --soft HEAD~1 and then git reset -q -- <paths>,
which leaves the user's work as it was, commit nothing more, since the hook
would do the same again, and tell the user what the commit held.Follow the repository's message style, never amend, skip hooks or push, and note each commit beside its package's status.
When every assigned package is in:
Keep the plan honest throughout: record meaningful deviations, reassess downstream packages when a contract changes, drop steps the approach no longer needs, and don't hide scope growth inside a progress update.
Stop the affected work and reassess with the user when a central assumption proves false, the change would weaken a security control, a migration risks data loss, the work outgrows the agreed scope, validation can't exercise the behavior, or passing a check would mean loosening it. Continue independent work that's still safe.
End with:
Never report a planned or delegated check as passed. Completing the plan isn't security approval or permission to release.
bezmoradi/knackpack
c540754
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.