rpi-kit 1.0.1 → 1.2.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.
- package/.claude-plugin/marketplace.json +23 -0
- package/.claude-plugin/plugin.json +20 -0
- package/AGENTS.md +4 -0
- package/README.md +5 -2
- package/agents/plan-executor.md +33 -12
- package/bin/onboarding.js +8 -11
- package/codex.md +72 -0
- package/commands/rpi/add-todo.md +1 -1
- package/commands/rpi/implement.md +287 -120
- package/commands/rpi/init.md +3 -0
- package/commands/rpi/onboarding.md +354 -170
- package/commands/rpi/plan.md +82 -0
- package/commands/rpi/status.md +14 -3
- package/package.json +4 -1
- package/skills/rpi-agents/SKILL.md +59 -0
- package/skills/rpi-workflow/SKILL.md +185 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
|
|
3
|
+
"name": "rpi-kit",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "Research → Plan → Implement. A systematic feature development workflow with validation gates, multi-role agent teams, and adaptive depth.",
|
|
6
|
+
"owner": {
|
|
7
|
+
"name": "Daniel Mendes"
|
|
8
|
+
},
|
|
9
|
+
"plugins": [
|
|
10
|
+
{
|
|
11
|
+
"name": "rpi-kit",
|
|
12
|
+
"source": "./",
|
|
13
|
+
"description": "Research → Plan → Implement. A systematic feature development workflow for Claude Code and Codex.",
|
|
14
|
+
"version": "1.1.0",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Daniel Mendes"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"keywords": ["workflow", "research", "planning", "implementation", "feature-development", "agents"],
|
|
20
|
+
"category": "productivity"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rpi-kit",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Research → Plan → Implement. A systematic feature development workflow with validation gates, multi-role agent teams, and adaptive depth.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Daniel Mendes",
|
|
7
|
+
"url": "https://github.com/dmend3z"
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://github.com/dmend3z/rpi-kit",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"workflow",
|
|
13
|
+
"research",
|
|
14
|
+
"planning",
|
|
15
|
+
"implementation",
|
|
16
|
+
"feature-development",
|
|
17
|
+
"agents",
|
|
18
|
+
"codex"
|
|
19
|
+
]
|
|
20
|
+
}
|
package/AGENTS.md
CHANGED
|
@@ -81,6 +81,10 @@ You implement tasks from PLAN.md one at a time with surgical precision.
|
|
|
81
81
|
3. Match existing code style exactly — even if you'd do it differently
|
|
82
82
|
4. If a task is blocked, skip it and note the blocker — don't improvise
|
|
83
83
|
5. Every commit message references the task ID: "feat(1.3): route handlers"
|
|
84
|
+
6. Before writing code, read ALL target files and output CONTEXT_READ and EXISTING_PATTERNS
|
|
85
|
+
7. After completion, write a checkpoint file to `implement/checkpoints/{task_id}.md` with structured status
|
|
86
|
+
8. Return a single status line to the orchestrator — do not return verbose output
|
|
87
|
+
9. Classify deviations as cosmetic (auto-accept), interface (flag downstream), or scope (block for human)
|
|
84
88
|
|
|
85
89
|
## Code Simplifier
|
|
86
90
|
|
package/README.md
CHANGED
|
@@ -71,6 +71,8 @@ Copy `AGENTS.md` and `codex.md` to your project root. The workflow rules and age
|
|
|
71
71
|
| `/rpi:simplify` | Code simplification (reuse, quality, efficiency) |
|
|
72
72
|
| `/rpi:status` | Show all features and their current phase |
|
|
73
73
|
| `/rpi:review` | Code review against plan requirements + test coverage |
|
|
74
|
+
| `/rpi:docs` | Generate documentation from implementation artifacts |
|
|
75
|
+
| `/rpi:add-todo` | Capture quick implementation ideas in `{folder}/todos/` |
|
|
74
76
|
|
|
75
77
|
## Research Tiers
|
|
76
78
|
|
|
@@ -84,7 +86,7 @@ Control depth and cost with tier flags:
|
|
|
84
86
|
|
|
85
87
|
## Agent Team
|
|
86
88
|
|
|
87
|
-
RPIKit simulates a product team with
|
|
89
|
+
RPIKit simulates a product team with 12 specialized agents:
|
|
88
90
|
|
|
89
91
|
| Agent | Perspective |
|
|
90
92
|
|-------|-------------|
|
|
@@ -99,6 +101,7 @@ RPIKit simulates a product team with 11 specialized agents:
|
|
|
99
101
|
| Test Engineer | Writes failing tests before implementation (TDD) |
|
|
100
102
|
| Code Simplifier | Reuse, quality, efficiency checks with direct fixes |
|
|
101
103
|
| Code Reviewer | Reviews against plan requirements + test coverage |
|
|
104
|
+
| Doc Writer | Generates documentation from artifacts for completed features |
|
|
102
105
|
|
|
103
106
|
All agents follow behavioral constraints inspired by [Karpathy's coding guidelines](https://x.com/karpathy/status/2015883857489522876): cite evidence, name unknowns, be concrete, stay in scope.
|
|
104
107
|
|
|
@@ -174,7 +177,7 @@ test_runner: auto # Test command (auto-detect or explicit)
|
|
|
174
177
|
|---|---|---|---|
|
|
175
178
|
| Focus | Spec-driven artifacts | Feature lifecycle with gates | Full project management |
|
|
176
179
|
| Phases | Fluid (propose/apply) | 3 phases (R→P→I) | Roadmap → phases → tasks |
|
|
177
|
-
| Agents | None |
|
|
180
|
+
| Agents | None | 12 specialized roles | 15+ orchestrated agents |
|
|
178
181
|
| TDD | None | Integrated RED→GREEN→REFACTOR | None |
|
|
179
182
|
| Validation | None | GO/NO-GO research gate | Goal-backward verification |
|
|
180
183
|
| Scope | Single change | Single feature | Entire project |
|
package/agents/plan-executor.md
CHANGED
|
@@ -17,6 +17,11 @@ You implement tasks from the RPI plan. You work surgically — one task at a tim
|
|
|
17
17
|
5. Commit messages reference the task ID: `feat(1.3): route handlers` or `test(2.1): auth middleware tests`
|
|
18
18
|
6. Read the eng.md technical spec before implementing — follow the architecture decisions
|
|
19
19
|
7. After each task, report: files changed, lines added/removed, any deviations from plan
|
|
20
|
+
8. Classify deviations by severity:
|
|
21
|
+
- `cosmetic`: naming, formatting changes (auto-accepted, log only)
|
|
22
|
+
- `interface`: changed function signatures, added/removed parameters (flags downstream tasks)
|
|
23
|
+
- `scope`: did more or less than specified (blocks execution, requires human decision)
|
|
24
|
+
9. Write a per-task checkpoint file after completion (see Output Protocol in section 5)
|
|
20
25
|
</rules>
|
|
21
26
|
|
|
22
27
|
<anti_patterns>
|
|
@@ -34,11 +39,17 @@ You implement tasks from the RPI plan. You work surgically — one task at a tim
|
|
|
34
39
|
|
|
35
40
|
## For each assigned task:
|
|
36
41
|
|
|
37
|
-
### 1. Read
|
|
38
|
-
- Read
|
|
42
|
+
### 1. Pre-Implementation Context Read (MANDATORY)
|
|
43
|
+
- Read ALL target files listed in the task's `Files:` field
|
|
39
44
|
- Read eng.md for technical approach
|
|
40
45
|
- Read pm.md for acceptance criteria (if exists)
|
|
41
46
|
- Read ux.md for UX requirements (if exists and task is UI-related)
|
|
47
|
+
- Output before ANY code changes:
|
|
48
|
+
```
|
|
49
|
+
CONTEXT_READ: [list of files examined]
|
|
50
|
+
EXISTING_PATTERNS: [key patterns observed -- naming, error handling, imports]
|
|
51
|
+
```
|
|
52
|
+
- Match these patterns in your implementation — do not invent new patterns
|
|
42
53
|
|
|
43
54
|
### 2. Verify dependencies
|
|
44
55
|
- Check that all dependency tasks are completed
|
|
@@ -55,20 +66,30 @@ You implement tasks from the RPI plan. You work surgically — one task at a tim
|
|
|
55
66
|
- If the task has acceptance criteria (from pm.md), verify each one
|
|
56
67
|
- Check that the implementation matches the task description
|
|
57
68
|
|
|
58
|
-
### 5.
|
|
59
|
-
|
|
69
|
+
### 5. Write checkpoint and report
|
|
70
|
+
|
|
71
|
+
Write checkpoint file to `{folder}/{feature-slug}/implement/checkpoints/{task_id}.md`:
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
## Status: {task_id}
|
|
75
|
+
status: done | blocked | deviated
|
|
76
|
+
files_read: ["list of files read in pre-implementation"]
|
|
77
|
+
files_changed: ["list of files created or modified"]
|
|
78
|
+
commit: {commit_hash}
|
|
79
|
+
deviations: none | {severity}: {description}
|
|
80
|
+
duration: {estimated_seconds}s
|
|
81
|
+
context_read: ["files from CONTEXT_READ step"]
|
|
82
|
+
patterns_followed: ["patterns from EXISTING_PATTERNS step"]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Return to orchestrator (single line only):
|
|
60
86
|
```
|
|
61
|
-
|
|
62
|
-
Files: {list of files changed}
|
|
63
|
-
Lines: +{added} -{removed}
|
|
64
|
-
Deviations: {none | list deviations with rationale}
|
|
87
|
+
DONE: {task_id} | files: {N} changed | deviations: none
|
|
65
88
|
```
|
|
66
89
|
|
|
67
|
-
|
|
90
|
+
Or if blocked:
|
|
68
91
|
```
|
|
69
|
-
|
|
70
|
-
Reason: {why}
|
|
71
|
-
Suggestion: {what to do}
|
|
92
|
+
BLOCKED: {task_id} | reason: {short description}
|
|
72
93
|
```
|
|
73
94
|
|
|
74
95
|
</execution_flow>
|
package/bin/onboarding.js
CHANGED
|
@@ -17,7 +17,7 @@ RPIKit is a structured feature development workflow for Claude Code and Codex.
|
|
|
17
17
|
It guides you through 3 phases with validation gates, so you research before
|
|
18
18
|
you plan, and plan before you code.
|
|
19
19
|
|
|
20
|
-
${DIM}
|
|
20
|
+
${DIM}12 specialized agents simulate a product team:
|
|
21
21
|
engineers, PMs, designers, reviewers — all working in parallel.${RESET}`,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -89,18 +89,15 @@ ${DIM}Or run standalone:${RESET} /rpi:test your-feature --task 1.2`,
|
|
|
89
89
|
body: `
|
|
90
90
|
${BOLD}Step 1:${RESET} Open Claude Code in your project
|
|
91
91
|
|
|
92
|
-
${BOLD}Step 2:${RESET}
|
|
93
|
-
${CYAN}/rpi:
|
|
92
|
+
${BOLD}Step 2:${RESET} Run the interactive onboarding
|
|
93
|
+
${CYAN}/rpi:onboarding${RESET}
|
|
94
94
|
|
|
95
|
-
${
|
|
96
|
-
|
|
95
|
+
${DIM}This will analyze your codebase, generate a project profile,
|
|
96
|
+
suggest features to build, and guide you through your first feature.${RESET}
|
|
97
97
|
|
|
98
|
-
${
|
|
99
|
-
${CYAN}/rpi:
|
|
100
|
-
${CYAN}/rpi:
|
|
101
|
-
${CYAN}/rpi:implement my-feature${RESET}
|
|
102
|
-
|
|
103
|
-
${DIM}Use /rpi:status anytime to see where you are.${RESET}
|
|
98
|
+
${DIM}Or jump straight in:${RESET}
|
|
99
|
+
${CYAN}/rpi:init${RESET} Configure RPIKit
|
|
100
|
+
${CYAN}/rpi:new my-feature${RESET} Start a feature
|
|
104
101
|
|
|
105
102
|
${GREEN}Happy building!${RESET}`,
|
|
106
103
|
},
|
package/codex.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# RPI Workflow Rules
|
|
2
|
+
|
|
3
|
+
You follow the RPI (Research → Plan → Implement) workflow for feature development.
|
|
4
|
+
|
|
5
|
+
## Core Principles
|
|
6
|
+
|
|
7
|
+
1. **Never implement without research.** Every feature starts with a REQUEST.md and goes through a GO/NO-GO research gate.
|
|
8
|
+
2. **Never code without a plan.** The plan phase produces structured artifacts (PLAN.md, eng.md, and optionally pm.md/ux.md) before any code is written.
|
|
9
|
+
3. **Track every task.** Implementation uses task-level tracking with commits per task and phase checkpoints.
|
|
10
|
+
4. **Simplify before review.** After implementation, run code simplification (reuse, quality, efficiency) before code review.
|
|
11
|
+
5. **Review against the plan.** Code review checks implementation against plan requirements, not just code quality.
|
|
12
|
+
6. **Test before you code (when TDD enabled).** Write one failing test, verify it fails, write minimal code to pass, verify it passes, refactor. No implementation without a failing test first.
|
|
13
|
+
|
|
14
|
+
## File Conventions
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
{folder}/{feature-slug}/
|
|
18
|
+
├── REQUEST.md # Feature description (structured sections)
|
|
19
|
+
├── research/
|
|
20
|
+
│ └── RESEARCH.md # GO/NO-GO analysis with agent perspectives
|
|
21
|
+
├── plan/
|
|
22
|
+
│ ├── PLAN.md # Task checklist with effort, deps, files
|
|
23
|
+
│ ├── pm.md # (adaptive) User stories + acceptance criteria
|
|
24
|
+
│ ├── ux.md # (adaptive) User flows + interaction patterns
|
|
25
|
+
│ └── eng.md # Technical architecture + dependencies
|
|
26
|
+
└── implement/
|
|
27
|
+
└── IMPLEMENT.md # Full audit trail: tasks, commits, deviations
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Workflow Commands
|
|
31
|
+
|
|
32
|
+
- `/rpi:init` — Set up RPI config for this project
|
|
33
|
+
- `/rpi:new` — Interactive interview to create a feature REQUEST.md
|
|
34
|
+
- `/rpi:research <feature>` — Research phase with GO/NO-GO verdict
|
|
35
|
+
- `/rpi:plan <feature>` — Generate plan artifacts from research
|
|
36
|
+
- `/rpi:implement <feature>` — Execute plan with task tracking
|
|
37
|
+
- `/rpi:simplify <feature>` — Code simplification (reuse, quality, efficiency)
|
|
38
|
+
- `/rpi:test <feature>` — Run TDD cycles (RED → GREEN → REFACTOR) per task
|
|
39
|
+
- `/rpi:status` — Show all features and their current phase
|
|
40
|
+
- `/rpi:review <feature>` — Code review against plan
|
|
41
|
+
- `/rpi:docs <feature>` — Generate documentation from artifacts
|
|
42
|
+
- `/rpi:add-todo` — Capture quick implementation ideas
|
|
43
|
+
|
|
44
|
+
## Research Tiers
|
|
45
|
+
|
|
46
|
+
- `--quick` — Feasibility check only (2 agents: requirements + codebase)
|
|
47
|
+
- `--standard` — Scope + technical approach (4 agents: + PM + engineer)
|
|
48
|
+
- `--deep` — Full analysis with strategic assessment (5-6 agents: + CTO + UX if UI)
|
|
49
|
+
|
|
50
|
+
## Agent Team
|
|
51
|
+
|
|
52
|
+
| Role | Perspective |
|
|
53
|
+
|------|-------------|
|
|
54
|
+
| Requirement Parser | Extracts structured requirements, lists unknowns |
|
|
55
|
+
| Product Manager | Scope, user stories, effort, acceptance criteria |
|
|
56
|
+
| UX Designer | User flows, interaction patterns, existing components |
|
|
57
|
+
| Senior Engineer | Technical approach, architecture, dependencies |
|
|
58
|
+
| CTO Advisor | Risk, feasibility, strategic alignment, alternatives |
|
|
59
|
+
| Doc Synthesizer | Merges research into executive summary + verdict |
|
|
60
|
+
| Plan Executor | Implements tasks surgically, one at a time |
|
|
61
|
+
| Code Simplifier | Reuse, quality, efficiency checks with fixes |
|
|
62
|
+
| Code Reviewer | Reviews against plan requirements |
|
|
63
|
+
| Codebase Explorer | Scans existing code for patterns and context |
|
|
64
|
+
| Test Engineer | Writes failing tests before implementation (TDD) |
|
|
65
|
+
| Doc Writer | Generates documentation from artifacts |
|
|
66
|
+
|
|
67
|
+
## GO/NO-GO Verdicts
|
|
68
|
+
|
|
69
|
+
- **GO** — Feature is feasible, proceed to planning
|
|
70
|
+
- **GO with concerns** — Feasible but has risks that need mitigation
|
|
71
|
+
- **NO-GO** — Not feasible as described; alternatives suggested
|
|
72
|
+
- Override a NO-GO verdict: `/rpi:plan {feature-slug} --force`
|