@juicesharp/rpiv-pi 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +178 -0
  3. package/agents/codebase-analyzer.md +121 -0
  4. package/agents/codebase-locator.md +107 -0
  5. package/agents/codebase-pattern-finder.md +207 -0
  6. package/agents/integration-scanner.md +97 -0
  7. package/agents/precedent-locator.md +130 -0
  8. package/agents/test-case-locator.md +121 -0
  9. package/agents/thoughts-analyzer.md +147 -0
  10. package/agents/thoughts-locator.md +138 -0
  11. package/agents/web-search-researcher.md +107 -0
  12. package/extensions/rpiv-core/agents.ts +312 -0
  13. package/extensions/rpiv-core/git-context.ts +81 -0
  14. package/extensions/rpiv-core/guidance.ts +213 -0
  15. package/extensions/rpiv-core/index.ts +275 -0
  16. package/extensions/rpiv-core/package-checks.ts +51 -0
  17. package/package.json +36 -0
  18. package/scripts/migrate.js +242 -0
  19. package/scripts/types.js +1 -0
  20. package/skills/annotate-guidance/SKILL.md +303 -0
  21. package/skills/annotate-guidance/examples/root-dotnet-clean-arch.md +38 -0
  22. package/skills/annotate-guidance/examples/root-nodejs-monorepo.md +42 -0
  23. package/skills/annotate-guidance/examples/subfolder-database-layer.md +81 -0
  24. package/skills/annotate-guidance/examples/subfolder-dotnet-application.md +64 -0
  25. package/skills/annotate-guidance/examples/subfolder-schemas-layer.md +50 -0
  26. package/skills/annotate-guidance/templates/root-architecture.md +46 -0
  27. package/skills/annotate-guidance/templates/subfolder-architecture.md +57 -0
  28. package/skills/annotate-inline/SKILL.md +299 -0
  29. package/skills/annotate-inline/examples/root-dotnet-clean-arch.md +38 -0
  30. package/skills/annotate-inline/examples/root-nodejs-monorepo.md +42 -0
  31. package/skills/annotate-inline/examples/subfolder-database-layer.md +81 -0
  32. package/skills/annotate-inline/examples/subfolder-dotnet-application.md +64 -0
  33. package/skills/annotate-inline/examples/subfolder-schemas-layer.md +50 -0
  34. package/skills/annotate-inline/templates/root-claude-md.md +46 -0
  35. package/skills/annotate-inline/templates/subfolder-claude-md.md +57 -0
  36. package/skills/code-review/SKILL.md +184 -0
  37. package/skills/commit/SKILL.md +65 -0
  38. package/skills/create-handoff/SKILL.md +91 -0
  39. package/skills/design/SKILL.md +416 -0
  40. package/skills/discover/SKILL.md +242 -0
  41. package/skills/explore/SKILL.md +261 -0
  42. package/skills/implement/SKILL.md +74 -0
  43. package/skills/migrate-to-guidance/SKILL.md +88 -0
  44. package/skills/outline-test-cases/SKILL.md +348 -0
  45. package/skills/outline-test-cases/templates/feature-meta.md +43 -0
  46. package/skills/outline-test-cases/templates/outline-readme.md +36 -0
  47. package/skills/plan/SKILL.md +281 -0
  48. package/skills/research/SKILL.md +304 -0
  49. package/skills/resume-handoff/SKILL.md +207 -0
  50. package/skills/revise/SKILL.md +242 -0
  51. package/skills/validate/SKILL.md +175 -0
  52. package/skills/write-test-cases/SKILL.md +322 -0
  53. package/skills/write-test-cases/examples/customer-auth-flow.md +50 -0
  54. package/skills/write-test-cases/examples/order-management-suite.md +57 -0
  55. package/skills/write-test-cases/examples/order-placement-flow.md +54 -0
  56. package/skills/write-test-cases/examples/team-management-flow.md +56 -0
  57. package/skills/write-test-cases/examples/team-management-suite.md +54 -0
  58. package/skills/write-test-cases/templates/coverage-map.md +64 -0
  59. package/skills/write-test-cases/templates/regression-suite.md +63 -0
  60. package/skills/write-test-cases/templates/test-case.md +65 -0
@@ -0,0 +1,207 @@
1
+ ---
2
+ name: resume-handoff
3
+ description: Resume work from a handoff document. Reads handoff, verifies current state, and continues implementation. Use at the start of a new session to pick up where you left off.
4
+ argument-hint: [handoff-path]
5
+ ---
6
+
7
+ # Resume work from a handoff document
8
+
9
+ You are tasked with resuming work from a handoff document through an interactive process. These handoffs contain critical context, learnings, and next steps from previous work sessions that need to be understood and continued.
10
+
11
+ ## Initial Response
12
+
13
+ When this command is invoked:
14
+
15
+ 1. **If the path to a handoff document was provided**:
16
+ - If a handoff document path was provided as a parameter, skip the default message
17
+ - Immediately read the handoff document FULLY using the Read tool
18
+ - Immediately read any research or plan documents that it links to under `thoughts/shared/plans` or `thoughts/shared/research` or `thoughts/shared/solutions`. Read these critical files DIRECTLY using the Read tool - do NOT invoke skills for this initial reading phase.
19
+ - Begin the analysis process by ingesting relevant context from the handoff document, reading additional files it mentions
20
+ - Then propose a course of action to the user and confirm, or ask for clarification on direction.
21
+
22
+ 2. **If no parameters provided**, respond with:
23
+ ```
24
+ I'll help you resume work from a handoff document. Let me find the available handoffs.
25
+
26
+ Which handoff would you like to resume from?
27
+
28
+ Tip: You can invoke this command directly with a handoff path: `/skill:resume-handoff thoughts/shared/handoffs/YYYY-MM-DD_HH-MM-SS_description.md`
29
+ ```
30
+
31
+ Then wait for the user's input.
32
+
33
+ ## Process Steps
34
+
35
+ ### Step 1: Read and Analyze Handoff
36
+
37
+ 1. **Read handoff document completely**:
38
+ - Use the Read tool WITHOUT limit/offset parameters
39
+ - Extract all sections:
40
+ - Task(s) and their statuses
41
+ - Recent changes
42
+ - Learnings
43
+ - Artifacts
44
+ - Action items and next steps
45
+ - Other notes
46
+
47
+ 2. **Spawn focused research agents**:
48
+ After reading all critical handoff/plan/research documents directly, spawn parallel general-purpose agents via the Agent tool to verify current codebase state and gather additional context:
49
+
50
+ ```
51
+ Task 1 - Gather artifact context:
52
+ Read all artifacts mentioned in the handoff.
53
+ 1. Read feature documents listed in "Artifacts"
54
+ 2. Read implementation plans referenced
55
+ 3. Read any research documents mentioned
56
+ 4. Extract key requirements and decisions
57
+ Use tools: Read
58
+ Return: Summary of artifact contents and key decisions
59
+ ```
60
+
61
+ 3. **Wait for ALL agents to complete** before proceeding
62
+
63
+ 4. **Verify current state**:
64
+ - Read files from "Learnings" section completely to validate patterns still apply
65
+ - Read files from "Recent changes" to verify modifications are still present
66
+ - Use git log or git diff if needed to check commit history since handoff
67
+ - Re-read implementation files mentioned to confirm current state matches handoff expectations
68
+ - Read any new related files discovered during research
69
+
70
+ ### Step 2: Synthesize and Present Analysis
71
+
72
+ 1. **Present comprehensive analysis**:
73
+ ```
74
+ I've analyzed the handoff from [date] by [researcher]. Here's the current situation:
75
+
76
+ **Original Tasks:**
77
+ - [Task 1]: [Status from handoff] → [Current verification]
78
+ - [Task 2]: [Status from handoff] → [Current verification]
79
+
80
+ **Key Learnings Validated:**
81
+ - [Learning with file:line reference] - [Still valid/Changed]
82
+ - [Pattern discovered] - [Still applicable/Modified]
83
+
84
+ **Recent Changes Status:**
85
+ - [Change 1] - [Verified present/Missing/Modified]
86
+ - [Change 2] - [Verified present/Missing/Modified]
87
+
88
+ **Artifacts Reviewed:**
89
+ - [Document 1]: [Key takeaway]
90
+ - [Document 2]: [Key takeaway]
91
+
92
+ **Recommended Next Actions:**
93
+ Based on the handoff's action items and current state:
94
+ 1. [Most logical next step based on handoff]
95
+ 2. [Second priority action]
96
+ 3. [Additional tasks discovered]
97
+
98
+ **Potential Issues Identified:**
99
+ - [Any conflicts or regressions found]
100
+ - [Missing dependencies or broken code]
101
+
102
+ ```
103
+
104
+ Use the `ask_user_question` tool to confirm the approach. Question: "[Summary of recommended next action]. Proceed?". Header: "Resume". Options: "Proceed (Recommended)" (Begin with [recommended action 1]); "Adjust approach" (Change the order or scope of next steps); "Re-analyze" (The codebase has changed — re-verify state first).
105
+
106
+ ### Step 3: Create Action Plan
107
+
108
+ 1. **Create a task list**:
109
+ - Convert action items from handoff into todos
110
+ - Add any new tasks discovered during analysis
111
+ - Prioritize based on dependencies and handoff guidance
112
+
113
+ 2. **Present the plan**:
114
+ ```
115
+ I've created a task list based on the handoff and current analysis:
116
+
117
+ [Show todo list]
118
+
119
+ Ready to begin with the first task: [task description]?
120
+ ```
121
+
122
+ ### Step 4: Begin Implementation
123
+
124
+ 1. **Start with the first approved task**
125
+ 2. **Reference learnings from handoff** throughout implementation
126
+ 3. **Apply patterns and approaches documented** in the handoff
127
+ 4. **Update progress** as tasks are completed
128
+
129
+ ## Guidelines
130
+
131
+ 1. **Be Thorough in Analysis**:
132
+ - Read the entire handoff document first
133
+ - Verify ALL mentioned changes still exist
134
+ - Check for any regressions or conflicts
135
+ - Read all referenced artifacts
136
+
137
+ 2. **Be Interactive**:
138
+ - Present findings before starting work
139
+ - Get buy-in on the approach
140
+ - Allow for course corrections
141
+ - Adapt based on current state vs handoff state
142
+
143
+ 3. **Leverage Handoff Wisdom**:
144
+ - Pay special attention to "Learnings" section
145
+ - Apply documented patterns and approaches
146
+ - Avoid repeating mistakes mentioned
147
+ - Build on discovered solutions
148
+
149
+ 4. **Track Continuity**:
150
+ - Keep the task list updated to maintain task continuity
151
+ - Reference the handoff document in commits
152
+ - Document any deviations from original plan
153
+ - Consider creating a new handoff when done
154
+
155
+ 5. **Validate Before Acting**:
156
+ - Never assume handoff state matches current state
157
+ - Verify all file references still exist by reading them
158
+ - Check for breaking changes since handoff using git log/diff or by reading modified files
159
+ - Confirm patterns mentioned in "Learnings" are still valid by examining current code
160
+ - Compare handoff timestamps with current git commits to assess how much has changed
161
+
162
+ ## Common Scenarios
163
+
164
+ ### Scenario 1: Clean Continuation
165
+ - All changes from handoff are present
166
+ - No conflicts or regressions
167
+ - Clear next steps in action items
168
+ - Proceed with recommended actions
169
+
170
+ ### Scenario 2: Diverged Codebase
171
+ - Some changes missing or modified
172
+ - New related code added since handoff
173
+ - Need to reconcile differences
174
+ - Adapt plan based on current state
175
+
176
+ ### Scenario 3: Incomplete Handoff Work
177
+ - Tasks marked as "in_progress" in handoff
178
+ - Need to complete unfinished work first
179
+ - May need to re-understand partial implementations
180
+ - Focus on completing before new work
181
+
182
+ ### Scenario 4: Stale Handoff
183
+ - Significant time has passed
184
+ - Major refactoring has occurred
185
+ - Original approach may no longer apply
186
+ - Need to re-evaluate strategy
187
+
188
+ ## Example Interaction Flow
189
+
190
+ ```
191
+ User: /skill:resume-handoff thoughts/shared/handoffs/2025-01-08_14-30-15_webhook-validation.md
192
+ Assistant: Let me read and analyze that handoff document...
193
+
194
+ [Reads handoff completely]
195
+ [Spawns research agents]
196
+ [Waits for completion]
197
+ [Reads identified files]
198
+
199
+ I've analyzed the handoff from [date]. Here's the current situation...
200
+
201
+ [Presents analysis]
202
+
203
+ Shall I proceed with implementing the webhook validation fix, or would you like to adjust the approach?
204
+
205
+ User: Yes, proceed with the webhook validation
206
+ Assistant: [Creates todo list and begins implementation]
207
+ ```
@@ -0,0 +1,242 @@
1
+ ---
2
+ name: revise
3
+ description: Update existing implementation plans based on feedback. Makes surgical edits while preserving structure and quality. Use when plans need adjustments after review or during implementation.
4
+ argument-hint: "[plan-path] [feedback]"
5
+ allowed-tools: Edit, Read, Bash(git *), Glob, Grep, Agent
6
+ ---
7
+
8
+ # Iterate Implementation Plan
9
+
10
+ You are tasked with updating existing implementation plans based on user feedback. You should be skeptical, thorough, and ensure changes are grounded in actual codebase reality.
11
+
12
+ ## Initial Response
13
+
14
+ When this command is invoked:
15
+
16
+ 1. **Parse the input to identify**:
17
+ - Plan file path (e.g., `thoughts/shared/plans/2025-10-16_09-00-00_feature.md`)
18
+ - Requested changes/feedback
19
+
20
+ 2. **Handle different input scenarios**:
21
+
22
+ **If NO plan file provided**:
23
+ ```
24
+ I'll help you iterate on an existing implementation plan.
25
+
26
+ Which plan would you like to update? Please provide the path to the plan file (e.g., `thoughts/shared/plans/2025-10-16_09-00-00_feature.md`).
27
+
28
+ Tip: You can list recent plans with `ls -lt thoughts/shared/plans/ | head`
29
+ ```
30
+ Wait for user input, then re-check for feedback.
31
+
32
+ **If plan file provided but NO feedback**:
33
+ ```
34
+ I've found the plan at [path]. What changes would you like to make?
35
+
36
+ For example:
37
+ - "Add a phase for migration handling"
38
+ - "Update the success criteria to include performance tests"
39
+ - "Adjust the scope to exclude feature X"
40
+ - "Split Phase 2 into two separate phases"
41
+ ```
42
+ Wait for user input.
43
+
44
+ **If BOTH plan file AND feedback provided**:
45
+ - Proceed immediately to Step 1
46
+ - No preliminary questions needed
47
+
48
+ ## Process Steps
49
+
50
+ ### Step 1: Read and Understand Current Plan
51
+
52
+ 1. **Read the existing plan file COMPLETELY**:
53
+ - Use the Read tool WITHOUT limit/offset parameters
54
+ - Understand the current structure, phases, and scope
55
+ - Note the success criteria and implementation approach
56
+
57
+ 2. **Understand the requested changes**:
58
+ - Parse what the user wants to add/modify/remove
59
+ - Identify if changes require codebase research
60
+ - Determine scope of the update
61
+
62
+ ### Step 2: Research If Needed
63
+
64
+ **Only spawn research tasks if the changes require new technical understanding.**
65
+
66
+ If the user's feedback requires understanding new code patterns or validating assumptions:
67
+
68
+ 1. **Spawn parallel agents for research** using the Agent tool:
69
+ **For code investigation:**
70
+ - Use the **codebase-locator** agent to find relevant files
71
+ - Use the **codebase-analyzer** agent to understand implementation details
72
+ - Use the **codebase-pattern-finder** agent to find similar patterns
73
+
74
+ **For historical context:**
75
+ - Use the **thoughts-locator** agent to find related research or decisions in thoughts/
76
+ - Use the **thoughts-analyzer** agent to extract insights from documents
77
+
78
+ **Be EXTREMELY specific about directories**:
79
+ - Include full path context in prompts
80
+
81
+ 2. **Read any new files identified by research**:
82
+ - Read them FULLY into the main context
83
+ - Cross-reference with the plan requirements
84
+
85
+ 3. **Wait for ALL agents to complete** before proceeding
86
+
87
+ ### Step 3: Present Understanding and Approach
88
+
89
+ Before making changes, confirm your understanding:
90
+
91
+ ```
92
+ Based on your feedback, I understand you want to:
93
+ - [Change 1 with specific detail]
94
+ - [Change 2 with specific detail]
95
+
96
+ My research found:
97
+ - [Relevant code pattern or constraint]
98
+ - [Important discovery that affects the change]
99
+
100
+ I plan to update the plan by:
101
+ 1. [Specific modification to make]
102
+ 2. [Another modification]
103
+
104
+ Does this align with your intent?
105
+ ```
106
+
107
+ Use the `ask_user_question` tool to confirm before editing. Question: "[Summary of planned modifications]. Proceed with these edits?". Header: "Changes". Options: "Proceed (Recommended)" (Apply the planned changes to the existing plan); "Adjust approach" (Modify what will be changed before editing); "Show me first" (Show the exact text changes before applying).
108
+
109
+ ### Step 4: Update the Plan
110
+
111
+ 1. **Make focused, precise edits** to the existing plan:
112
+ - Use the Edit tool for surgical changes
113
+ - NEVER use Write tool - plan files already exist, use Edit tool only
114
+ - Maintain the existing structure unless explicitly changing it
115
+ - Keep all file:line references accurate
116
+ - Update success criteria if needed
117
+
118
+ 2. **Ensure consistency**:
119
+ - If adding a new phase, ensure it follows the existing pattern
120
+ - If modifying scope, update "What We're NOT Doing" section
121
+ - If changing approach, update "Implementation Approach" section
122
+ - Maintain the distinction between automated vs manual success criteria
123
+ - If the plan has YAML frontmatter, update `last_updated` to today's date and `last_updated_by` to your name
124
+
125
+ 3. **Preserve quality standards**:
126
+ - Include specific file paths and line numbers for new content
127
+ - Write measurable success criteria
128
+ - Use project's build/test commands (`make`, `npm`, etc.) for automated verification
129
+ - Keep language clear and actionable
130
+
131
+ ### Step 5: Sync and Review
132
+
133
+ 1. **Present the changes made**:
134
+ ```
135
+ I've updated the plan at `thoughts/shared/plans/[filename].md`
136
+
137
+ Changes made:
138
+ - [Specific change 1]
139
+ - [Specific change 2]
140
+
141
+ The updated plan now:
142
+ - [Key improvement]
143
+ - [Another improvement]
144
+
145
+ Would you like any further adjustments?
146
+ ```
147
+
148
+ 2. **Be ready to iterate further** based on feedback
149
+
150
+ ## Important Guidelines
151
+
152
+ 1. **Be Skeptical**:
153
+ - Don't blindly accept change requests that seem problematic
154
+ - Question vague feedback - ask for clarification
155
+ - Use AskUserQuestion tool for structured clarification when there are multiple valid approaches
156
+ - Verify technical feasibility with code research
157
+ - Point out potential conflicts with existing plan phases
158
+
159
+ 2. **Be Surgical**:
160
+ - Make precise edits, not wholesale rewrites
161
+ - Preserve good content that doesn't need changing
162
+ - Only research what's necessary for the specific changes
163
+ - Don't over-engineer the updates
164
+
165
+ 3. **Be Thorough**:
166
+ - Read the entire existing plan before making changes
167
+ - Research code patterns if changes require new technical understanding
168
+ - Ensure updated sections maintain quality standards
169
+ - Verify success criteria are still measurable
170
+
171
+ 4. **Be Interactive**:
172
+ - Confirm understanding before making changes
173
+ - Show what you plan to change before doing it
174
+ - Allow course corrections
175
+ - Don't disappear into research without communicating
176
+
177
+ 5. **Track Progress**:
178
+ - Update todos as you complete research
179
+ - Mark tasks complete when done
180
+
181
+ 6. **No Open Questions**:
182
+ - If the requested change raises questions, ASK
183
+ - Research or get clarification immediately
184
+ - Do NOT update the plan with unresolved questions
185
+ - Every change must be complete and actionable
186
+
187
+ ## Success Criteria Guidelines
188
+
189
+ When updating success criteria, always maintain the two-category structure:
190
+
191
+ 1. **Automated Verification** (can be run by execution agents):
192
+ - Commands that can be run: `make test`, `npm run lint`, etc.
193
+ - Specific files that should exist
194
+ - Code compilation/type checking
195
+
196
+ 2. **Manual Verification** (requires human testing):
197
+ - UI/UX functionality
198
+ - Performance under real conditions
199
+ - Edge cases that are hard to automate
200
+ - User acceptance criteria
201
+
202
+ ## Agent Invocation Best Practices
203
+
204
+ When spawning research agents:
205
+
206
+ 1. **Only spawn if truly needed** - don't research for simple changes
207
+ 2. **Spawn multiple agents in parallel** for efficiency using the Agent tool
208
+ 3. **Each agent should be focused** on a specific area
209
+ 4. **Provide detailed instructions** including:
210
+ - Exactly what to search for
211
+ - Which directories to focus on
212
+ - What information to extract
213
+ - Expected output format
214
+ 5. **Request specific file:line references** in responses
215
+ 6. **Wait for all agents to complete** before synthesizing
216
+ 7. **Verify agent results** - if something seems off, spawn follow-up agents
217
+
218
+ ## Example Interaction Flows
219
+
220
+ **Scenario 1: User provides everything upfront**
221
+ ```
222
+ User: /skill:revise thoughts/shared/plans/2025-10-16_09-00-00_feature.md - add phase for error handling
223
+ Assistant: [Reads plan, researches error handling patterns, updates plan]
224
+ ```
225
+
226
+ **Scenario 2: User provides just plan file**
227
+ ```
228
+ User: /skill:revise thoughts/shared/plans/2025-10-16_09-00-00_feature.md
229
+ Assistant: I've found the plan. What changes would you like to make?
230
+ User: Split Phase 2 into two phases - one for backend, one for frontend
231
+ Assistant: [Proceeds with update]
232
+ ```
233
+
234
+ **Scenario 3: User provides no arguments**
235
+ ```
236
+ User: /skill:revise
237
+ Assistant: Which plan would you like to update? Please provide the path...
238
+ User: thoughts/shared/plans/2025-10-16_09-00-00_feature.md
239
+ Assistant: I've found the plan. What changes would you like to make?
240
+ User: Add more specific success criteria
241
+ Assistant: [Proceeds with update]
242
+ ```
@@ -0,0 +1,175 @@
1
+ ---
2
+ name: validate
3
+ description: Verify that an implementation plan was correctly executed. Runs success criteria checks and generates validation reports. Use after implementation is complete.
4
+ argument-hint: [plan-path]
5
+ allowed-tools: Read, Bash(git *), Bash(make *), Glob, Grep, Agent
6
+ ---
7
+
8
+ # Validate Plan
9
+
10
+ You are tasked with validating that an implementation plan was correctly executed, verifying all success criteria and identifying any deviations or issues.
11
+
12
+ ## Initial Setup
13
+
14
+ When invoked:
15
+ 1. **Determine context** - Are you in an existing conversation or starting fresh?
16
+ - If existing: Review what was implemented in this session
17
+ - If fresh: Need to discover what was done through git and codebase analysis
18
+
19
+ 2. **Locate the plan**:
20
+ - If plan path provided, use it
21
+ - Otherwise, search recent commits for plan references or ask user
22
+
23
+ 3. **Gather implementation evidence**:
24
+ ```bash
25
+ # Check recent commits
26
+ git log --oneline -n 20
27
+ git diff HEAD~N..HEAD # Where N covers implementation commits
28
+
29
+ # Run comprehensive checks
30
+ cd $(git rev-parse --show-toplevel) && make check test
31
+ ```
32
+
33
+ ## Validation Process
34
+
35
+ ### Step 1: Context Discovery
36
+
37
+ If starting fresh or need more context:
38
+
39
+ **If the injected git context shows "not a git repo":**
40
+ - Skip git-based evidence gathering (git log, git diff)
41
+ - Validate via file inspection, automated test commands, and plan checklist
42
+ - Note in report: "Git history unavailable — validation based on file inspection only"
43
+
44
+ 1. **Read the implementation plan** completely
45
+ 2. **Identify what should have changed**:
46
+ - List all files that should be modified
47
+ - Note all success criteria (automated and manual)
48
+ - Identify key functionality to verify
49
+
50
+ 3. **Spawn parallel research agents** to verify implementation:
51
+
52
+ Use the Agent tool to spawn general-purpose sub-agents to validate the implementation:
53
+ - **general-purpose** agent — Verify implementation details match plan specifications (analyzer role)
54
+ - **general-purpose** agent — Verify implementation follows established codebase patterns (pattern-finder role)
55
+
56
+ Example agent prompts:
57
+ - "Analyze [component] and verify it implements [plan requirement] correctly"
58
+ - "Find patterns similar to [new code] and check if conventions are followed"
59
+
60
+ Also gather evidence directly:
61
+ ```bash
62
+ # Check recent commits
63
+ git log --oneline -n 20
64
+ git diff HEAD~N..HEAD # Where N covers implementation commits
65
+
66
+ # Run comprehensive checks
67
+ cd $(git rev-parse --show-toplevel) && make check test
68
+ ```
69
+
70
+ ### Step 2: Systematic Validation
71
+
72
+ For each phase in the plan:
73
+
74
+ 1. **Check completion status**:
75
+ - Look for checkmarks in the plan (- [x])
76
+ - Verify the actual code matches claimed completion
77
+
78
+ 2. **Run automated verification**:
79
+ - Execute each command from "Automated Verification"
80
+ - Document pass/fail status
81
+ - If failures, investigate root cause
82
+
83
+ 3. **Assess manual criteria**:
84
+ - List what needs manual testing
85
+ - Provide clear steps for user verification
86
+
87
+ 4. **Think deeply about edge cases**:
88
+ - Were error conditions handled?
89
+ - Are there missing validations?
90
+ - Could the implementation break existing functionality?
91
+
92
+ ### Step 3: Generate Validation Report
93
+
94
+ Create comprehensive validation summary:
95
+
96
+ ```markdown
97
+ ## Validation Report: [Plan Name]
98
+
99
+ ### Implementation Status
100
+ ✓ Phase 1: [Name] - Fully implemented
101
+ ✓ Phase 2: [Name] - Fully implemented
102
+ ⚠️ Phase 3: [Name] - Partially implemented (see issues)
103
+
104
+ ### Automated Verification Results
105
+ ✓ Build passes: `make build`
106
+ ✓ Tests pass: `make test`
107
+ ✗ Linting issues: `make lint` (3 warnings)
108
+
109
+ ### Code Review Findings
110
+
111
+ #### Matches Plan:
112
+ - Database migration correctly adds [table]
113
+ - API endpoints implement specified methods
114
+ - Error handling follows plan
115
+
116
+ #### Deviations from Plan:
117
+ - Used different variable names in [file:line]
118
+ - Added extra validation in [file:line] (improvement)
119
+
120
+ #### Potential Issues:
121
+ - Missing index on foreign key could impact performance
122
+ - No rollback handling in migration
123
+
124
+ ### Manual Testing Required:
125
+ 1. UI functionality:
126
+ - [ ] Verify [feature] appears correctly
127
+ - [ ] Test error states with invalid input
128
+
129
+ 2. Integration:
130
+ - [ ] Confirm works with existing [component]
131
+ - [ ] Check performance with large datasets
132
+
133
+ ### Recommendations:
134
+ - Address linting warnings before merge
135
+ - Consider adding integration test for [scenario]
136
+ - Document new API endpoints
137
+ ```
138
+
139
+ ## Working with Existing Context
140
+
141
+ If you were part of the implementation:
142
+ - Review the conversation history
143
+ - Check your todo list for what was completed
144
+ - Focus validation on work done in this session
145
+ - Be honest about any shortcuts or incomplete items
146
+
147
+ ## Important Guidelines
148
+
149
+ 1. **Be thorough but practical** - Focus on what matters
150
+ 2. **Run all automated checks** - Don't skip verification commands
151
+ 3. **Document everything** - Both successes and issues
152
+ 4. **Think critically** - Question if the implementation truly solves the problem
153
+ 5. **Consider maintenance** - Will this be maintainable long-term?
154
+
155
+ ## Validation Checklist
156
+
157
+ Always verify:
158
+ - [ ] All phases marked complete are actually done
159
+ - [ ] Automated tests pass
160
+ - [ ] Code follows existing patterns
161
+ - [ ] No regressions introduced
162
+ - [ ] Error handling is robust
163
+ - [ ] Documentation updated if needed
164
+ - [ ] Manual test steps are clear
165
+
166
+ ## Relationship to Other Skills
167
+
168
+ Recommended workflow:
169
+ 1. `/skill:implement` - Execute the implementation
170
+ 2. `/skill:commit` - Create atomic commits for changes
171
+ 3. `/skill:validate` - Verify implementation correctness
172
+
173
+ The validation works best after commits are made, as it can analyze the git history to understand what was implemented.
174
+
175
+ Remember: Good validation catches issues before they reach production. Be constructive but thorough in identifying gaps or improvements.