rpi-kit 2.2.2 → 2.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.
- package/.claude-plugin/marketplace.json +3 -2
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +6 -0
- package/agents/atlas.md +40 -0
- package/agents/clara.md +40 -0
- package/agents/forge.md +40 -0
- package/agents/hawk.md +40 -0
- package/agents/luna.md +40 -0
- package/agents/mestre.md +46 -0
- package/agents/nexus.md +52 -0
- package/agents/pixel.md +40 -0
- package/agents/quill.md +40 -0
- package/agents/razor.md +40 -0
- package/agents/sage.md +46 -0
- package/agents/scout.md +40 -0
- package/agents/shield.md +40 -0
- package/commands/rpi/docs.md +29 -1
- package/commands/rpi/fix.md +301 -0
- package/commands/rpi/implement.md +37 -0
- package/commands/rpi/plan.md +66 -1
- package/commands/rpi/research.md +48 -1
- package/commands/rpi/review.md +48 -1
- package/commands/rpi/rpi.md +1 -1
- package/commands/rpi/simplify.md +31 -1
- package/commands/rpi/status.md +69 -0
- package/marketplace.json +3 -2
- package/package.json +1 -1
package/commands/rpi/simplify.md
CHANGED
|
@@ -122,6 +122,17 @@ Output format:
|
|
|
122
122
|
- Efficiency: {N} fixes
|
|
123
123
|
- Lines removed: {N}
|
|
124
124
|
- Lines added: {N}
|
|
125
|
+
|
|
126
|
+
After simplification, append your activity to rpi/features/{slug}/ACTIVITY.md:
|
|
127
|
+
|
|
128
|
+
### {current_date} — Razor (Simplify)
|
|
129
|
+
- **Action:** Simplified implementation for {slug}
|
|
130
|
+
- **Key decisions:** {for each <decision> tag you emitted: "summary (rationale)", separated by semicolons. If none: "No decisions in this phase."}
|
|
131
|
+
- **Reuse fixes:** {count}
|
|
132
|
+
- **Quality fixes:** {count}
|
|
133
|
+
- **Efficiency fixes:** {count}
|
|
134
|
+
- **Lines removed:** {count}
|
|
135
|
+
- **Quality:** {your quality gate result}
|
|
125
136
|
```
|
|
126
137
|
|
|
127
138
|
Store Razor's output as `$RAZOR_OUTPUT`.
|
|
@@ -176,7 +187,26 @@ Commit: {$SIMPLIFY_COMMIT}
|
|
|
176
187
|
- Net lines: {+/-N}
|
|
177
188
|
```
|
|
178
189
|
|
|
179
|
-
## Step 9:
|
|
190
|
+
## Step 9: Consolidate decisions to DECISIONS.md
|
|
191
|
+
|
|
192
|
+
1. Read `rpi/features/{slug}/ACTIVITY.md`.
|
|
193
|
+
2. Extract all `<decision>` tags from entries belonging to the Simplify phase (Razor entries from this run).
|
|
194
|
+
3. If no decisions found, skip this step.
|
|
195
|
+
4. Read `rpi/features/{slug}/DECISIONS.md` if it exists (to get the last decision number for sequential numbering).
|
|
196
|
+
5. Append a new section to `rpi/features/{slug}/DECISIONS.md`:
|
|
197
|
+
|
|
198
|
+
```markdown
|
|
199
|
+
## Simplify Phase
|
|
200
|
+
_Generated: {current_date}_
|
|
201
|
+
|
|
202
|
+
| # | Type | Decision | Alternatives | Rationale | Impact |
|
|
203
|
+
|---|------|----------|-------------|-----------|--------|
|
|
204
|
+
| {N} | {type} | {summary} | {alternatives} | {rationale} | {impact} |
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
6. Number decisions sequentially, continuing from the last number in DECISIONS.md.
|
|
208
|
+
|
|
209
|
+
## Step 10: Output summary
|
|
180
210
|
|
|
181
211
|
```
|
|
182
212
|
Simplify complete: {slug}
|
package/commands/rpi/status.md
CHANGED
|
@@ -61,6 +61,24 @@ For each feature:
|
|
|
61
61
|
- Read `implement/IMPLEMENT.md` if it exists. Count completed tasks (`- [x]`) vs total.
|
|
62
62
|
- Express as: `{completed}/{total} tasks`
|
|
63
63
|
|
|
64
|
+
### Activity Log
|
|
65
|
+
- Read `{feature_dir}/ACTIVITY.md` if it exists.
|
|
66
|
+
- Extract the last 3 activity entries.
|
|
67
|
+
- Extract quality scores from all entries — build a quality summary per phase:
|
|
68
|
+
- Research: {PASS|WEAK|FAIL|pending} (Atlas, Scout, Nexus scores)
|
|
69
|
+
- Plan: {PASS|WEAK|FAIL|pending} (Nexus interview, Mestre, Clara, adversarial scores)
|
|
70
|
+
- Implement: {PASS|WEAK|FAIL|pending} (Forge per-task scores)
|
|
71
|
+
- Simplify: {PASS|WEAK|FAIL|pending} (Razor score)
|
|
72
|
+
- Review: {PASS|WEAK|FAIL|pending} (Hawk, Shield, Sage, Nexus scores)
|
|
73
|
+
- Docs: {PASS|WEAK|FAIL|pending} (Quill score)
|
|
74
|
+
- Identify any WEAK or FAIL scores for alerts.
|
|
75
|
+
- Extract last activity timestamp for "last activity" display.
|
|
76
|
+
|
|
77
|
+
### Decisions
|
|
78
|
+
- Read `{feature_dir}/DECISIONS.md` if it exists.
|
|
79
|
+
- Count total decisions, count by impact (HIGH, MEDIUM, LOW).
|
|
80
|
+
- Extract the last 5 decisions (most recent = bottom of the file).
|
|
81
|
+
|
|
64
82
|
## Step 5: Display status
|
|
65
83
|
|
|
66
84
|
### If no specific feature requested (overview mode)
|
|
@@ -74,16 +92,38 @@ Output a status card per feature, sorted by phase (most advanced first):
|
|
|
74
92
|
Phase: {phase} {task_progress if applicable}
|
|
75
93
|
Verdict: {verdict}
|
|
76
94
|
Complexity: {complexity}
|
|
95
|
+
Last activity: {relative time, e.g. "2h ago" or "3 days ago"}
|
|
96
|
+
Quality: {phase_quality_summary, e.g. "Research PASS | Plan PASS | Implement 3/7"}
|
|
97
|
+
Decisions: {total} ({HIGH_count} HIGH, {MEDIUM_count} MEDIUM, {LOW_count} LOW)
|
|
77
98
|
|
|
78
99
|
## {feature-slug-2}
|
|
79
100
|
Phase: {phase}
|
|
80
101
|
Verdict: {verdict}
|
|
81
102
|
Complexity: {complexity}
|
|
103
|
+
Last activity: {relative time, e.g. "2h ago" or "3 days ago"}
|
|
104
|
+
Quality: {phase_quality_summary, e.g. "Research PASS | Plan PASS | Implement 3/7"}
|
|
105
|
+
Decisions: {total} ({HIGH_count} HIGH, {MEDIUM_count} MEDIUM, {LOW_count} LOW)
|
|
82
106
|
|
|
83
107
|
---
|
|
84
108
|
{total_count} feature(s) active
|
|
85
109
|
```
|
|
86
110
|
|
|
111
|
+
### Quality Alerts
|
|
112
|
+
|
|
113
|
+
After the feature cards, if any feature has WEAK or FAIL quality scores:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
## Alerts
|
|
117
|
+
|
|
118
|
+
- {feature}: {phase} quality WEAK — {agent} ({reason from activity log})
|
|
119
|
+
Suggestion: {actionable suggestion, e.g. "Re-run /rpi:research" or "Add context to REQUEST.md"}
|
|
120
|
+
|
|
121
|
+
- {feature}: {phase} quality FAIL — {agent} ({reason})
|
|
122
|
+
Suggestion: {actionable suggestion}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
If no alerts: omit this section entirely.
|
|
126
|
+
|
|
87
127
|
Phase display format:
|
|
88
128
|
- `request` → "request (awaiting research)"
|
|
89
129
|
- `research` → "research (awaiting plan)"
|
|
@@ -112,6 +152,7 @@ Complexity: {complexity}
|
|
|
112
152
|
- plan/pm.md: {exists/missing}
|
|
113
153
|
- plan/ux.md: {exists/missing}
|
|
114
154
|
- implement/IMPLEMENT.md: {exists/missing}
|
|
155
|
+
- DECISIONS.md: {exists/missing}
|
|
115
156
|
- delta/: {count of files in ADDED + MODIFIED + REMOVED}
|
|
116
157
|
|
|
117
158
|
## Tasks
|
|
@@ -122,6 +163,34 @@ Complexity: {complexity}
|
|
|
122
163
|
|
|
123
164
|
## Next
|
|
124
165
|
{Suggest the next command to run, e.g. "/rpi {slug}" or "/rpi:archive {slug}" if complete}
|
|
166
|
+
|
|
167
|
+
## Activity Log (last 5 entries)
|
|
168
|
+
{If ACTIVITY.md exists, show last 5 entries in reverse chronological order}
|
|
169
|
+
{If no ACTIVITY.md: "No activity log yet."}
|
|
170
|
+
|
|
171
|
+
## Key Decisions (last 5)
|
|
172
|
+
{If DECISIONS.md exists:}
|
|
173
|
+
| # | Phase | Decision | Impact |
|
|
174
|
+
|---|-------|----------|--------|
|
|
175
|
+
| {N} | {phase} | {summary} | {impact} |
|
|
176
|
+
|
|
177
|
+
Total: {N} decisions ({HIGH_count} HIGH, {MEDIUM_count} MEDIUM, {LOW_count} LOW)
|
|
178
|
+
Full log: rpi/features/{slug}/DECISIONS.md
|
|
179
|
+
|
|
180
|
+
{If no DECISIONS.md: "No decisions logged yet."}
|
|
181
|
+
|
|
182
|
+
## Quality Summary
|
|
183
|
+
{For each completed phase, show quality scores:}
|
|
184
|
+
- Research: Atlas {score} | Scout {score} | Nexus {score}
|
|
185
|
+
- Plan: Interview {score} | Mestre {score} | Clara {score} | Adversarial {score}
|
|
186
|
+
- Implement: {N}/{total} tasks, Forge avg quality {score}
|
|
187
|
+
- Simplify: Razor {score}
|
|
188
|
+
- Review: Hawk {score} | Shield {score} | Sage {score}
|
|
189
|
+
- Docs: Quill {score}
|
|
190
|
+
|
|
191
|
+
## Session Resume
|
|
192
|
+
Last activity: {timestamp and description of last logged action}
|
|
193
|
+
Next step: {suggest the next command based on current phase}
|
|
125
194
|
```
|
|
126
195
|
|
|
127
196
|
If the requested feature does not exist:
|
package/marketplace.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "Research → Plan → Implement. 7-phase pipeline with 13 named agents, delta specs, party mode, and knowledge compounding.",
|
|
8
|
-
"version": "2.
|
|
8
|
+
"version": "2.4.0"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "rpi-kit",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"description": "Research → Plan → Implement. 7-phase pipeline with 13 named agents, delta specs, party mode, and knowledge compounding.",
|
|
15
|
-
"version": "2.
|
|
15
|
+
"version": "2.4.0",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "Daniel Mendes"
|
|
18
18
|
},
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"./commands/rpi/docs.md",
|
|
25
25
|
"./commands/rpi/docs-gen.md",
|
|
26
26
|
"./commands/rpi/evolve.md",
|
|
27
|
+
"./commands/rpi/fix.md",
|
|
27
28
|
"./commands/rpi/implement.md",
|
|
28
29
|
"./commands/rpi/init.md",
|
|
29
30
|
"./commands/rpi/learn.md",
|
package/package.json
CHANGED