Implementation Execution Skill
Use this skill to execute an approved implementation plan in a controlled,
auditable, and verifiable manner.
The outcome is a sequence of completed, verified, and committed tasks. Optimize
for correctness, traceability, verification, and safety over speed or
convenience.
Non-Negotiable Rules
- Follow the stages exactly in order.
- Do not skip, merge, or reorder stages.
- Do not modify the plan.
- Execute tasks sequentially in plan order unless the user explicitly approves a
plan-level correction outside this skill.
- Do not proceed without a corresponding plan.
- Do not proceed past required user decisions without explicit direction.
- Do not proceed to the next task until the current task is verified.
- Do not infer success. Success requires concrete verification output.
- Do not bundle multiple tasks into one commit.
- Do not discard, overwrite, or revert user changes.
- Do not deploy, release, integrate, or push unless the user explicitly asks
after execution is complete.
Forbidden Git Commands
Never use:
git add .
git add -A
git reset --hard
git clean
git restore
- Force push commands.
Always inspect before committing:
git status --short
git diff
git diff --cached
Stage only task-relevant files with precise paths.
Stage Checklist
Track progress explicitly and keep the current stage visible.
Stage 1: Resolve Context
Goal: Identify the feature and locate its approved implementation plan.
Do:
- Identify the feature by slug, identifier, title, or user-provided path.
- Locate the corresponding
plan.md.
- Verify that the plan exists and appears to be the approved execution source.
- Determine the repository root for Git and verification commands.
If no plan exists:
- Refuse to proceed.
- Explain that execution requires a completed implementation plan.
- Instruct the user to complete the planning step first.
Do not:
- Execute from a feature idea, specification, issue, or conversation summary.
- Create or modify
plan.md.
- Use Git history as a substitute for a plan.
Proceed to Stage 2 only after the plan is located.
Stage 2: Resume or Restart
Goal: Determine whether execution is new, partial, or already complete.
Inspect:
git status --short
- Recent commit history relevant to the feature.
- Workspace changes.
- Existing evidence of completed tasks, such as commits whose messages reference
task numbers from the plan.
Determine:
- Completed tasks.
- The next incomplete task.
- Whether the workspace contains unrelated changes.
Then ask the user whether to:
- Continue from the next incomplete task.
- Restart from the beginning.
- Cancel execution.
Do not proceed without explicit direction.
If the user chooses restart:
- Do not undo existing commits or changes automatically.
- Explain what restart means in the current repository state.
- Ask for confirmation if restart would require touching already changed files.
Proceed to Stage 3 only after the user explicitly chooses how to continue.
Stage 3: Branch Safety Check
Goal: Ensure execution does not happen accidentally on a protected branch.
Check the current branch.
Protected branches include:
main
master
production
prod
release
- Any branch the repository or user identifies as protected.
If currently on a protected branch:
- Stop.
- Warn the user clearly.
- Recommend creating or switching to a feature or task-specific branch.
- Require explicit approval to proceed on the protected branch.
If not on a protected branch:
Do not create, switch, or rename branches unless the user asks or approves.
Proceed to Stage 4 after branch safety is resolved.
Stage 4: Read and Validate the Plan
Goal: Confirm the plan is executable before making changes.
Read the entire plan.
Validate:
- All tasks are clearly defined.
- Task numbering is stable.
- Each task has a title, intent, files, dependencies, and verification.
- Existing file paths are valid.
- New files are explicitly marked for creation.
- Verification steps are present and executable or directly observable.
- Dependencies reference valid earlier tasks.
Stop and request clarification if:
- A task is vague or incomplete.
- Required files are missing unexpectedly.
- A verification command is absent or not executable.
- The plan contradicts repository reality.
- The plan requires an unsafe Git action.
- Dependencies are circular, invalid, or unclear.
Do not:
- Edit the plan to fix issues.
- Reinterpret unclear tasks silently.
- Substitute different verification without user approval.
Proceed to Stage 5 only when the plan is executable as written.
Stage 5: Track Task Progress
Goal: Establish explicit task state before execution.
Initialize a task tracker with:
- Pending tasks.
- The current task.
- Completed tasks.
- Blocked tasks, if any.
Rules:
- A task starts as pending unless already proven complete.
- A task is in progress only while actively being executed.
- A task is completed only after successful verification and commit or approved
staged update.
- Do not mark a task complete based on inspection alone unless the task was
already satisfied and its verification step succeeds now.
Proceed to Stage 6 with the first selected incomplete task.
Stage 6: Execute Tasks Sequentially
For each task, perform every step below in order.
1. Announce the Task
State:
- Task number.
- Task title.
- Task intent.
- Planned files from the plan.
- Verification step from the plan.
2. Prepare
Read the relevant files listed in the task.
Identify:
- Existing patterns.
- Integration points.
- Any user or unrelated workspace changes in the same files.
- Assumptions that need verification.
If unrelated user changes are present in task files:
- Work with them carefully.
- Do not overwrite them.
- Ask the user if safe isolation is impossible.
3. Pre-Check
Confirm whether the task is already completed.
If already satisfied:
- Run the task's verification step.
- Present the verification output verbatim.
- If verification succeeds, commit only if there are task-relevant uncommitted
changes; otherwise mark the task complete with evidence.
- If verification fails, treat the task as incomplete and continue execution.
4. Apply Changes
Implement only what the task specifies.
Rules:
- Keep changes scoped to the task.
- Do not include unrelated cleanup.
- Do not adjust the plan.
- Do not silently change task scope.
- Preserve existing project conventions.
- If implementation requires third-party behavior, verify current docs/source
before relying on it.
5. Verification
Run the exact verification command or check specified by the task.
Hard requirements:
- Capture the full output.
- Present the output verbatim.
- Treat nonzero command exit, failing tests, missing expected output, or
ambiguous evidence as failure.
- Do not summarize success without showing evidence.
Use this evidence format:
Verification for Task [N]:
- A fenced
text block containing the full command output.
- A one-sentence evidence-based result interpretation.
If output is extremely large, preserve the command, exit status, and the
relevant failure or success lines exactly. State that output was truncated by
tool limits only when that actually occurred.
6. Validate Result
Confirm the verification evidence proves success.
Do not use phrases like:
- "should work"
- "looks correct"
- "probably fixed"
Use evidence-based language:
- "Verification passed because [specific output] confirms [expected result]."
- "Verification failed because [specific output] shows [failure]."
7. Commit or Stage
Default to committing each completed task independently.
Before staging:
- Run
git status --short.
- Run
git diff for task files.
Stage only relevant paths:
git add path/to/relevant-file path/to/another-file
Never use broad staging commands.
Before committing:
- Run
git diff --cached.
- Confirm staged changes match only the current task.
Commit message format:
Task [N]: [concise intent]
- Implements: [task title or intent]
- Verification: [command or observable check]
If the user requested staged updates instead of commits:
- Stage only relevant files.
- Show
git diff --cached.
- Mark the task complete only after verification succeeds and staging is
precise.
8. Mark Complete
Mark the task complete only after:
- Changes are applied.
- Verification succeeds with evidence.
- The task is committed or precisely staged as requested.
Then proceed to the next task.
Stage 7: Handle Blockers
Stop execution immediately if:
- Verification fails.
- Required files are missing unexpectedly.
- The plan contradicts repository reality.
- Instructions are unclear or incomplete.
- User changes cannot be safely preserved.
- The task requires scope beyond the plan.
- Git state makes an atomic commit unsafe.
When blocked:
- State the task number and title.
- Explain the issue clearly.
- Include relevant command output or observed evidence.
- Provide concrete options.
- Recommend the safest option with reasoning.
- Request user input before proceeding.
Do not continue to later tasks while blocked.
Stage 8: Finish
After all tasks are completed:
- Summarize completed work.
- List commits created, including hashes when available.
- Confirm every task was verified.
- Mention any task completed by already-satisfied verification.
- State that execution is complete and control is handed back to the user.
Do not proceed to:
- Deployment.
- Release.
- Integration.
- Push.
- Pull request creation.
Evidence Standard
Every completed task must have:
- Task number.
- Verification command or check.
- Verbatim verification output.
- Result interpretation tied to the output.
- Commit hash or staged-state evidence.
If evidence is missing, the task is not complete.
Safety Standard
The plan is a contract. Execute it as written, prove each step, and preserve the
user's work. When reality and the plan diverge, stop and ask.