/rpikit:writing-plans feature or change to planfrom rpikit
Transforms research into structured implementation plans with granular tasks, verification steps, and stakes-based enforcement. Helps ensure alignment before coding.
Ships in rpikit. 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.
None: SKILL.md is the whole skill.
Create an implementation plan for: $ARGUMENTS
Planning transforms research findings into actionable implementation strategy. A good plan enables disciplined execution by breaking work into granular tasks with clear verification criteria. Plans serve as contracts between human and AI, ensuring alignment before code is written.
Look for existing research at: docs/plans/YYYY-MM-DD-<topic>-research.md
(Search for files matching *-<topic>-research.md pattern)
If research exists:
If no research exists:
Task tool with subagent_type: "file-finder"
Prompt: "Find files related to [task]. Goal: [what will be implemented]"
Before planning tasks, establish what "done" looks like:
Use AskUserQuestion to clarify requirements if needed.
Determine implementation risk level:
| Stakes | Characteristics | Planning Rigor |
|---|---|---|
| Low | Isolated change, easy rollback, low impact | Brief plan |
| Medium | Multiple files, moderate impact, testable | Standard plan |
| High | Architectural, hard to rollback, wide impact | Detailed plan |
Document the classification and rationale in the plan.
Decompose work into granular, verifiable steps.
Identify target files:
Use file paths from research document, or if unavailable, use the file-finder agent to locate files for each task area:
Task tool with subagent_type: "file-finder"
Prompt: "Find files for [specific task]. Looking for [what to modify]"
For each task include:
Prefer small tasks (2-5 minute verification time).
Group related tasks into phases with checkpoint verifications.
Identify parallel step groups (when applicable):
When a plan contains steps that are genuinely independent, mark them as a parallel group so the implementer can execute them concurrently. Steps are independent when they:
Steps are NOT independent when:
Only mark groups as parallel when independence is clear. When in doubt, keep steps sequential — incorrect parallelization causes merge conflicts and integration failures. Plans with fewer than 4 steps rarely benefit from parallelization.
Research implementation approaches (when needed):
For quick lookups (checking a library's API, reading a specific doc page), use WebFetch directly. Reserve the web-researcher agent for multi-source investigation.
If the plan involves unfamiliar libraries, APIs, or patterns, use the web-researcher agent to inform task design:
Task tool with subagent_type: "web-researcher"
Prompt: "[specific question about implementation approach, library usage, or best practice]"
Plan test cases for each task:
Every task that changes code must enumerate its test cases upfront. This ensures implementation follows TDD discipline — tests are written before production code, not as an afterthought.
For each code-changing task, list:
Structure task steps so the test is the first sub-step and production code follows. This maps directly to the
Red-Green-Refactor cycle enforced by the rpikit:test-driven-development skill during implementation.
Boundary: Plans enumerate what to test (cases, inputs, expected outputs). The TDD skill covers how to execute (Red-Green-Refactor cycle, test structure, assertion patterns).
Include edge cases and boundary conditions:
#### Step 1.1: Test email validation (RED)
- **Files**: `src/utils/__tests__/validation.test.ts`
- **Action**: Write failing tests for validateEmail()
- **Test cases**:
- `"[email protected]"` → valid
- `"[email protected]"` → valid
- `""` → invalid (empty string)
- `"no-at-sign"` → invalid (missing @)
- `"user@"` → invalid (missing domain)
- **Verify**: Tests exist and fail (no implementation yet)
- **Complexity**: Small
#### Step 1.2: Implement email validation (GREEN)
- **Files**: `src/utils/validation.ts`
- **Action**: Create validateEmail() using regex pattern from validatePhone()
- **Verify**: All tests from Step 1.1 pass
- **Complexity**: Small
#### Step 2.1: Test user creation endpoint (RED)
- **Files**: `src/routes/__tests__/users.test.ts`
- **Action**: Write failing integration tests for email in user creation
- **Test cases**:
- POST /users with valid email → 201, email in response body
- POST /users with invalid email → 400, error message
- POST /users without email → 400 (if required) or 201 (if optional)
- **Verify**: Tests exist and fail
- **Complexity**: Small
#### Step 2.2: Update API endpoint (GREEN)
- **Files**: `src/routes/users.ts:45-60`
- **Action**: Add email field to user creation endpoint with validation
- **Verify**: All tests from Step 2.1 pass
- **Complexity**: Small
#### Step 3.1: Verify dashboard renders new widget
- **Files**: N/A (manual verification)
- **Action**: Manual verification of dashboard widget
- **Manual test cases**:
- Load dashboard → widget appears in correct position
- Resize browser to mobile width → widget reflows correctly
- Click widget action button → expected modal opens
- **Verify**: All manual checks pass in browser
- **Complexity**: Small
#### Step 1: Implement feature
- **Action**: Add the new feature
- **Complexity**: Large
Problem: Too vague, no verification, no file references
#### Step 1: Refactor authentication system
- **Action**: Update all auth code to use new pattern
- **Complexity**: Large
Problem: Too large, should be broken into multiple phases
#### Step 1: Add validation function
- **Files**: `src/utils/validation.ts`
- **Action**: Create validateEmail() with unit tests
- **Verify**: Tests pass
- **Complexity**: Small
Problem: No test cases enumerated, test and implementation combined into one step. Without explicit test cases, the implementer writes tests after the code — losing TDD discipline
Identify what could go wrong:
For external dependencies or security concerns, use the web-researcher agent to investigate known issues:
Task tool with subagent_type: "web-researcher"
Prompt: "Known issues, security vulnerabilities, or breaking changes in [library/API version]"
Include rollback strategy for high-stakes changes.
Create plan at: docs/plans/YYYY-MM-DD-<topic>-plan.md
(Use today's date in YYYY-MM-DD format)
Use this structure:
# Plan: $ARGUMENTS (YYYY-MM-DD)
## Summary
[One paragraph describing what will be implemented]
## Stakes Classification
**Level**: Low | Medium | High
**Rationale**: [Why this classification]
## Context
**Research**: [Link to research document if exists]
**Affected Areas**: [Components, services, files]
## Success Criteria
- [ ] [Criterion 1]
- [ ] [Criterion 2]
## Implementation Steps
### Phase 1: [Phase Name]
#### Step 1.1: [Task Description]
- **Files**: `path/to/file.ts:lines`
- **Action**: [What to do]
- **Verify**: [How to confirm done]
- **Complexity**: Small
#### Step 1.2: [Task Description]
- **Files**: `path/to/file.ts:lines`
- **Action**: [What to do]
- **Verify**: [How to confirm done]
- **Complexity**: Small
### Phase 2: [Phase Name] *(parallel with Phase 3)*
[When phases or steps are independent, mark them with *(parallel with Phase N)* so the implementer can execute them
concurrently. Omit this annotation for sequential phases.]
[Continue pattern...]
## Test Strategy
### Automated Tests
| Test Case | Type | Input | Expected Output |
| ---------------------------- | ----------- | ----------- | --------------- |
| [Descriptive test name] | Unit | [Input] | [Output] |
| [Descriptive test name] | Integration | [Input] | [Output] |
### Manual Verification
- [ ] [Manual check description and steps]
- [ ] [Manual check description and steps]
## Risks and Mitigations
| Risk | Impact | Mitigation |
| ------ | -------- | ---------------- |
| [Risk] | [Impact] | [How to address] |
## Rollback Strategy
[How to undo changes if needed]
## Status
- [ ] Plan approved
- [ ] Implementation started
- [ ] Implementation complete
Present plan summary and request explicit approval:
"Plan created for '$ARGUMENTS' at docs/plans/YYYY-MM-DD-<topic>-plan.md.
Summary: [brief description] Stakes: [level] Steps: [count] steps in [count] phases
Ready to approve and begin implementation?"
Use AskUserQuestion with options:
If approved, invoke the Skill tool with skill "rpikit:implementing-plans" to begin implementation.
If a plan already exists at docs/plans/YYYY-MM-DD-<topic>-plan.md:
(Search for files matching *-<topic>-plan.md pattern)
When refining:
Wrong: "Update the code" Right: "Add error handling to fetchUser() in src/api/users.ts:23-45"
Wrong: Tasks without success criteria Right: Every task has "Verify:" with specific check
Wrong: Proceeding to implementation without confirmation Right: Explicit AskUserQuestion approval gate
Wrong: Spending hours planning a 10-minute fix Right: Match planning rigor to stakes level
Wrong: "We'll figure it out as we go" Right: Sufficient detail to enable disciplined execution
Before requesting approval:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bostonaholic/rpikit --plugin rpikit16 skills in this plugin
/brainstormingCollaborative design methodology for creative work. Use before research or planning when requirements are unclear, multiple approaches exist, or the idea needs exploration. Refines ideas through progressive questioning.
/documenting-decisionsRecord architectural decisions as ADRs from design documents. Use after brainstorming or planning to capture what was decided, why, and what alternatives were considered. Produces sequentially numbered ADR files in docs/decisions/.
/finishing-workStructured completion workflow for implementation work. Use when implementation is complete, all tests pass, and you need to decide how to integrate the work. Guides merge, PR creation, or cleanup decisions.
/git-worktreesIsolated workspace creation for parallel development work. Use when starting feature work that needs isolation from the current workspace. Creates git worktrees with proper setup and safety verification.
/implementing-plansDisciplined plan execution with checkpoint validation, progress tracking, and verification at each step. Follows an approved plan strictly, running verification criteria before proceeding./parallel-agentsConcurrent agent dispatch for independent problems. Use when facing multiple independent tasks that can be worked on simultaneously. Reduces total time by parallelizing work that has no shared state.
Other plugins' skills for the same job