Implement Plan implement-plan
Implementation flow — execute a ready plan from the session context
- Our test
- 8/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 63k
- penpot/penpot
- Added by
- 0
- members
- Updated
- Dec 6
- commit a290dbc
- Content
- 1 file
- no scripts · 8 KB
- License
- MPL 2.0
- free to use
What our test found
The skill gives a detailed, cautious implementation workflow with explicit confirmation, testing, and commit boundaries.
Limits spotted
- The workflow depends on other skills, memories, tools, and session context that may not be available in every environment.
- The standalone branch instructions could clarify how to choose or obtain the issue number before naming the branch.
name: implement-plan description: Implementation flow — execute a ready plan from the session context slash: true
Implement Plan
This flow is run once a plan is ready (for example, from plan mode). Execute the plan already prepared in the current session context. It never pushes — the user pushes.
By default it ends with exactly one commit. When the user asks for it ("step by step"), it commits once per task instead and waits for the user's confirmation after each one (see Execution modes).
Plan file handling
Plan files are local workflow artifacts. They must never be staged or committed, even when .gitignore already excludes them. Never use git add -f, change ignore rules, or otherwise force a plan file into a commit. Close and update the plan when this flow requires it, but leave it in the local working tree.
When to use
- The user asks to implement or execute a plan, in any phrasing: "implement the plan", "execute it", "go build it" — or runs
@implement-plan. - A ready, reviewed plan is in the session context or a plan file path was given (typically after
@make-a-planor@review-plan).
Do not use it to produce plans — that is the make-a-plan flow.
For a plan derived from a code review, retain its review target, reviewer session ID, original findings and decisions. Record the starting revision and the exact commits or diff produced by this implementation, plus test evidence, in session context for follow-up. Do not put commit hashes in the plan file.
1. Read the plan first
Identify the plan to execute — from the file path the user gave, the arguments, or the session context. Read it completely. Read the required memories before writing any code: mem:critical-info and the core memory of every module the plan touches, plus the deeper memories they reference (AGENTS.md governs this).
2. Detect the flow (no questions)
Inspect the current branch with git rev-parse --abbrev-ref HEAD, pick the mode, and announce it in one line before presenting anything. Detection is read-only: nothing is created until the user confirms (step 3).
- On a base branch (
main,develop,staging) → standalone mode: a new GitHub issue and a branchissue-NNNNwill be created after the user's confirmation. - On any other branch (a feature branch, typically
issue-NNNN) → continue mode: the implementation continues on the current branch. No issue or branch is created. The branch name provides the issue reference when it follows theissue-NNNNpattern.
Arguments override detection: standalone, continue, direct (no branch / direct commit), no issue / without issue, or an explicit base such as from origin/develop.
Direct mode (direct, no branch, direct commit): no issue and no branch — the implementation and the commit land on the current branch as it is, even when it is a base branch. Best for small or tooling-only changes the user wants committed in place.
Standalone while already on a feature branch: stop and explain that this would stack branches. Ask the user to re-run with an explicit base, for example from origin/develop — then branch from that base instead of HEAD.
3. Present the checklist and wait
Before touching the repository, show the user the full picture:
- The flow: whether the GitHub issue and the branch will be created (standalone mode — give the planned branch name,
issue-NNNNorplan-<slug>), whether you continue on the current branch (continue mode — name it), or whether everything lands on the current branch as it is (direct mode — name it, and say so when it is a base branch). - The execution style: batch or step-by-step (see Execution modes).
- A checklist (todolist) of the plan's tasks, in order.
Then WAIT for the user's explicit confirmation. Do not start until you have it. If the plan has no discrete tasks, ask the user how to split it, or propose running it as a single change.
4. Execute the plan
Standalone setup, after the confirmation: create the issue with the `create-issue` skill, following the Creating Issues from Draft Body flow in mem:workflow/creating-issues. Derive the issue title and body from the plan, capture the new issue's number — call it NNNN — and create the branch from the current HEAD:
git checkout -b issue-NNNNIf the arguments say no issue / without issue, skip the issue and create a branch named plan-<slug> instead, where <slug> is the plan title, lowercase and hyphen-separated.
If the arguments say direct / no branch / direct commit, skip the issue and the branch: implement and commit on the current branch as it is. If it is a base branch, the checklist presentation already said so — no further confirmation is needed.
Batch mode (default)
Implement every task in one go. Work methodically, keeping changes focused on what the issue requires. Respect the plan's proposed parallelization when it applies.
During implementation, run focused tests for the changed behavior and the applicable lint and format checks; do not run full module CI after each task. After the entire plan is implemented, run the full CI task set for each affected module before committing. If the user explicitly asks for full CI at another point, follow that request.
When the implementation and final verification are complete, load the `create-commit` skill and follow its workflow to commit only the implementation, tests, memory, and documentation changes. Before committing, verify that the staged file list does not contain the plan file. Provide a brief summary of what was implemented and why, the issue reference (issue-NNNN) when there is one, and the model name you are running as so the AI-assisted-by trailer is set correctly.
Only after the commit exists and passes its checks, close the plan: flip Status to done and append one UTC ISO 8601 line to Review Log with the issue URL when one exists; otherwise record done without inventing an identifier. Never record commit hashes. Leave the plan local and uncommitted. If the commit or its checks fail, do not close the plan.
Step-by-step mode (on request)
When the user asks for it — "step by step", "task by task", "one commit per task" — loop one task at a time:
- Execute exactly ONE task.
- Run focused tests and applicable lint and format checks for that task. Run full module CI only after the final task, before its commit, or when the user explicitly requests it.
- Commit it now: load the `create-commit` skill and follow it — one commit per task, never two tasks in one commit. Same inputs as always: what and why, the issue reference, your model name.
- After the final task commit, close the plan file (
Status: done, oneReview Logline with the issue URL when one exists). Leave it local and uncommitted; never amend the task commit to include it. - Show the user the result (what changed, files touched, how it was verified).
- WAIT for the user's confirmation before starting the next task.
Never batch in this mode: no two tasks in one commit, and no new task before the user confirms. If a task turns out much bigger than planned, stop and ask the user before splitting it.
When you are done
After the entire plan is implemented and verified, including the final task in step-by-step mode, if it addresses code review findings, ask whether the user wants the original reviewer to verify the corrections. Use the question tool if available; otherwise ask in chat. Wait for the answer. Do not start the follow-up without consent, and do not ask after each intermediate task.
If the user accepts, follow @review-code's follow-up procedure with the review context, decisions, exact correction range or diff and test evidence. If the original reviewer cannot be resumed, say so and use a new reviewer with the same context. If the user declines, stop without starting a review. The follow-up is read-only; further fixes require the user's direction.
End by suggesting the next steps (suggestions, not a required pipeline — any instruction from me overrides them):
@review-code— for a new independent review of the changes.@create-pr— when the task is done and the branch is ready to merge.
User input, overrides and additional context
$ARGUMENTS