From rpikit
Executes approved implementation plans strictly with checkpoint verification, progress tracking, stakes-based enforcement, and optional git worktree isolation.
npx claudepluginhub bostonaholic/rpikit --plugin rpikitThis skill uses the workspace's default tool permissions.
Execute the implementation plan for: **$ARGUMENTS**
Executes approved technical plans phase by phase using background sub-agents, verification checkpoints, and configurable autonomy modes. Useful for structured implementation with user oversight.
Executes step-by-step implementation plans precisely: reviews plan, applies targeted code changes via ast-grep or Edit tool, verifies each step with difft, build, lint, and tests.
Executes written implementation plans in controlled batches with review checkpoints, verification steps, and feedback pauses. Use when a plan exists requiring strict adherence and regression prevention.
Share bugs, ideas, or general feedback.
Execute the implementation plan for: $ARGUMENTS
Implementation executes an approved plan with discipline and verification. The goal is not just working code, but verified, documented progress that matches the plan. Implementation follows the plan strictly, verifying each step before proceeding.
If $ARGUMENTS is a file path (starts with / or docs/ or ends with .md):
Otherwise, search for plan by topic:
Look for plan at: docs/plans/YYYY-MM-DD-<topic>-plan.md
(Search for files matching *-<topic>-plan.md pattern using $ARGUMENTS as the topic)
If plan exists:
If no plan exists:
High Stakes (architectural, security-sensitive, hard to rollback):
Cannot proceed without an approved plan.
High-stakes implementations require:
1. Research phase (rpikit:researching-codebase skill)
2. Approved plan (rpikit:writing-plans skill)
Invoke the Skill tool with skill "rpikit:writing-plans" to create a plan first.
Stop and do not proceed.
Medium Stakes (multiple files, moderate impact):
Warning: No approved plan found for '$ARGUMENTS'.
Medium-stakes changes benefit from planning.
Use AskUserQuestion with options:
Low Stakes (isolated, easy rollback):
Note: Consider rpikit:researching-codebase and rpikit:writing-plans skills for better results.
Proceeding with implementation...
Proceed with inline planning.
Before making changes, offer to create an isolated worktree.
First, check if already in a worktree:
# Check if .git is a file (indicates additional worktree, not main repo)
test -f .git
Run this command via the Bash tool:
.git is a file → already in a worktree → skip
the prompt and proceed to progress tracking.git is a directory → main repository →
continue with the worktree offer belowIf not in a worktree, offer based on stakes level:
High Stakes:
Use AskUserQuestion with options:
Medium Stakes:
Use AskUserQuestion with options:
Low Stakes:
Brief mention only:
Tip: For isolation, use EnterWorktree.
Proceeding in current directory...
Skip the prompt and continue.
If user chooses worktree:
Use EnterWorktree to create the isolated workspace. Implementation continues in the new worktree directory.
When implementation is complete, use ExitWorktree with action: "keep" to preserve the branch and return to the main working directory.
If implementation is aborted (user cancels at a checkpoint or verification fails beyond recovery), use ExitWorktree with action: "discard" to clean up the worktree without preserving changes.
Caution: EnterWorktree has known active bugs —
bypassPermissionsmay be ineffective (#29110) and background agents may not havepwdset correctly (#27749). Always verify the working directory after entering a worktree.
Create tasks from plan steps using TaskCreate:
Read each step from the plan and create a corresponding task:
activeForm to a present-continuous description (e.g., "Implementing
auth middleware")addBlockedBy via TaskUpdate when plan steps have sequential
requirements (e.g., Step 1.2 depends on Step 1.1)For each step in the plan:
Mark in_progress - Update task via TaskUpdate
Locate target files - If file path is unclear or missing, use file-finder:
Task tool with subagent_type: "file-finder"
Prompt: "Find [what the step describes]. Need to [action from plan]"
Read target files - Always read before modifying
Make the change - Follow plan specification exactly
Run verification - Execute the verify criteria
Confirm success - Only proceed if verification passes
Mark completed - Update task via TaskUpdate immediately
Update plan - Mark step complete in plan document
After completing each phase:
Summarize progress:
Phase [N] complete:
- Step N.1: [description]
- Step N.2: [description]
- Step N.3: [description]
Verifications: All passed
Use AskUserQuestion:
When verification fails:
Stop - Do not proceed to next step
Report - Explain what failed and why
Diagnose - Investigate the cause. If the error involves external libraries or unfamiliar issues, use web-researcher:
Task tool with subagent_type: "web-researcher"
Prompt: "[error message or issue] in [library/context]"
Propose fix - Suggest correction based on diagnosis
If fix requires plan changes:
Verification failed for Step [X.Y]: [description]
The planned approach doesn't work because: [reason]
Proposed adjustment: [new approach]
Use AskUserQuestion:
When all steps are done:
Mark all tasks completed via TaskUpdate
Update plan document status section
Run final verification (full test suite if applicable)
Run code review:
Task tool with subagent_type: "code-reviewer"
Prompt: "Review implementation changes for: $ARGUMENTS"
If verdict is REQUEST CHANGES (soft gate):
Use AskUserQuestion:
If user chooses "Proceed anyway", continue to security review.
Run security review:
Task tool with subagent_type: "security-reviewer"
Prompt: "Review implementation changes for: $ARGUMENTS"
If verdict is FAIL, stop and address findings before completing.
Summarize results
Implementation complete for '$ARGUMENTS'.
Summary:
- Steps completed: [N]
- Phases completed: [M]
- Files changed: [list]
- Tests: [pass/fail status]
Plan updated: docs/plans/YYYY-MM-DD-<topic>-plan.md
All success criteria met.
The plan is the contract. Deviations require explicit approval:
Never claim completion without evidence:
Use TaskCreate / TaskUpdate / TaskList for real-time progress:
Maintain real-time visibility using structured tasks:
TaskCreate: subject="Add validation function", status=pending
TaskCreate: subject="Update API endpoint", status=pending
TaskUpdate: taskId=1, status=in_progress
TaskUpdate: taskId=1, status=completed
TaskList → shows current state of all tasks
Update the plan file as implementation progresses:
#### Step 1.1: Add validation function
- **Status**: Complete
- **Verified**: Unit tests pass
- **Notes**: Used existing regex pattern from validatePhone()
When plan includes test steps, follow TDD:
Mark test steps complete only when tests pass.
If implementation reveals the plan needs changes:
Stop current step
Document the issue
If additional files are needed, use file-finder to locate them:
Task tool with subagent_type: "file-finder"
Prompt: "Find files related to [issue discovered]. Need to [proposed change]"
Propose plan modification with updated file references
Get approval before continuing
Never deviate silently from the approved plan.
For code changes, verify by:
For functionality, verify by:
Ensure no breakage:
Wrong: Marking done without running verification Right: Always run verification, document results
Wrong: Moving to next step when current step failed Right: Stop, diagnose, fix, re-verify
Wrong: Changing approach without updating plan Right: Request approval for plan changes
Wrong: Marking multiple steps done at once Right: Mark complete immediately after each verification
Wrong: Rushing high-stakes changes Right: Respect enforcement based on stakes level
During implementation:
At completion: