@juicesharp/rpiv-pi 2.0.0 → 2.1.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/README.md +121 -271
- package/agents/scope-tracer.md +1 -1
- package/docs/agents.md +70 -0
- package/docs/architecture.md +136 -0
- package/docs/lanes.md +82 -0
- package/docs/models-config.md +200 -0
- package/docs/skills.md +86 -0
- package/docs/workflows.md +109 -0
- package/package.json +7 -3
- package/skills/annotate-guidance/SKILL.md +1 -3
- package/skills/annotate-inline/SKILL.md +1 -3
- package/skills/architecture-review/SKILL.md +4 -4
- package/skills/blueprint/SKILL.md +4 -2
- package/skills/design/SKILL.md +4 -2
- package/skills/design-review/SKILL.md +1 -1
- package/skills/discover/SKILL.md +3 -4
- package/skills/research/SKILL.md +5 -4
- package/skills/resume-handoff/SKILL.md +1 -1
- package/skills/validate/SKILL.md +1 -1
|
@@ -138,10 +138,8 @@ You are tasked with generating CLAUDE.md files across a brownfield project. You
|
|
|
138
138
|
|
|
139
139
|
**Choosing question format:**
|
|
140
140
|
|
|
141
|
-
- **`ask_user_question` tool** —
|
|
141
|
+
- **`ask_user_question` tool** — use `ask_user_question` with 2-4 concrete hypotheses. State observed behavior, `file:line` evidence, impact, and the decision; the automatic `Type something.` row accepts unexpected detail.
|
|
142
142
|
|
|
143
|
-
- **Free-text with ❓ Question: prefix** — when the question is open-ended and options can't be predicted (discovery, "what am I missing?", corrections). Example:
|
|
144
|
-
"❓ Question: Integration scanner found no background job registration for this area. Is that expected, or is there async processing I'm not seeing?"
|
|
145
143
|
|
|
146
144
|
**Batching**: When you have 2-4 independent questions (answers don't depend on each other), you MAY batch them in a single `ask_user_question` call. Keep dependent questions sequential.
|
|
147
145
|
|
|
@@ -68,7 +68,7 @@ The final artifact is blueprint-consumable per phase.
|
|
|
68
68
|
|
|
69
69
|
### Step 1: Identify the Target
|
|
70
70
|
|
|
71
|
-
1. **Argument is empty:** use the `ask_user_question` tool with the following question: "What are we reviewing?". Header: "Target". Options: "Single module" (one package / project / crate / namespace directory); "Single subdirectory" (a subtree inside a module); "Single file" (deep review of one large file)
|
|
71
|
+
1. **Argument is empty:** use the `ask_user_question` tool with the following question: "What are we reviewing?". Header: "Target". Options: "Single module" (one package / project / crate / namespace directory); "Single subdirectory" (a subtree inside a module); "Single file" (deep review of one large file). The automatic `Type something.` row accepts a custom target.
|
|
72
72
|
|
|
73
73
|
2. **Validate the target exists**. Use `ls` via the Bash tool on the resolved path. If missing, ask for a corrected path.
|
|
74
74
|
|
|
@@ -235,7 +235,7 @@ Layers mirror dependency direction. Higher layers consume lower-layer vocabulary
|
|
|
235
235
|
{One paragraph: what unifies these findings, what the theme thread delivers when implemented, what the closing finding is if any.}
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
3. **Confirm grouping** via the `ask_user_question` tool: "{N} cross-cutting themes: {T1 — name; T2 — name; ...}. Approve grouping or adjust?". Header: "Themes". Options: "Approve grouping (Recommended)"; "Merge themes" (developer names which); "Split a theme" (developer names which)
|
|
238
|
+
3. **Confirm grouping** via the `ask_user_question` tool: "{N} cross-cutting themes: {T1 — name; T2 — name; ...}. Approve grouping or adjust?". Header: "Themes". Options: "Approve grouping (Recommended)"; "Merge themes" (developer names which); "Split a theme" (developer names which). The automatic `Type something.` row captures another grouping request.
|
|
239
239
|
|
|
240
240
|
### Step 8: Consolidated Polish Plan
|
|
241
241
|
|
|
@@ -275,7 +275,7 @@ Phases are agent-driven: each one will be handed to `blueprint` → `implement`.
|
|
|
275
275
|
Phase 6 (Public-API)
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
-
6. **Confirm the plan + flip status.** Use the `ask_user_question` tool: "{N} phases ({F} findings across {Files} files). Approve or adjust?". Header: "Plan". Options: "Approve (Recommended)" (**rebuild the `phases:` frontmatter array from the `### Phase N — name` headings** — one `{ n, title, depends_on, blast_radius, effort }` entry per heading, in body order: `depends_on` from the dependency graph (Step 5, earlier phases only), `blast_radius` the phase's widest of `internal`/`public-API`/`on-disk`/`cross-module` (Step 3), `effort` `S`/`M`/`L`; e.g. `phases: [{ n: 1, title: Foundation, depends_on: [], blast_radius: internal, effort: S }, { n: 2, title: Vocabulary, depends_on: [1], blast_radius: internal, effort: M }]`; then Edit frontmatter `status: in-progress` → `status: ready`, proceed to Step 9); "Adjust phase boundaries" (describe); "Resequence phases" (describe)
|
|
278
|
+
6. **Confirm the plan + flip status.** Use the `ask_user_question` tool: "{N} phases ({F} findings across {Files} files). Approve or adjust?". Header: "Plan". Options: "Approve (Recommended)" (**rebuild the `phases:` frontmatter array from the `### Phase N — name` headings** — one `{ n, title, depends_on, blast_radius, effort }` entry per heading, in body order: `depends_on` from the dependency graph (Step 5, earlier phases only), `blast_radius` the phase's widest of `internal`/`public-API`/`on-disk`/`cross-module` (Step 3), `effort` `S`/`M`/`L`; e.g. `phases: [{ n: 1, title: Foundation, depends_on: [], blast_radius: internal, effort: S }, { n: 2, title: Vocabulary, depends_on: [1], blast_radius: internal, effort: M }]`; then Edit frontmatter `status: in-progress` → `status: ready`, proceed to Step 9); "Adjust phase boundaries" (describe); "Resequence phases" (describe). The automatic `Type something.` row captures another adjustment.
|
|
279
279
|
|
|
280
280
|
### Step 9: Present and Chain
|
|
281
281
|
|
|
@@ -332,7 +332,7 @@ Spawn multiple agents in parallel when they're searching for different things. E
|
|
|
332
332
|
|
|
333
333
|
## Important Notes
|
|
334
334
|
|
|
335
|
-
- **All checkpoints are `ask_user_question`** — no prose "ask the user". The tool
|
|
335
|
+
- **All checkpoints are `ask_user_question`** — no prose "ask the user". The tool automatically appends the `Type something.` free-text row; do not author `Other` as an option.
|
|
336
336
|
- **Read all in-scope files FULLY** in Step 5.1 — no limit/offset on the Read tool. Selective reads bias findings toward what you happened to load.
|
|
337
337
|
- **Edit the artifact progressively in Step 5.4** — never batch all findings into one final write. The artifact is the durable checkpoint between sessions.
|
|
338
338
|
- **Critical ordering:**
|
|
@@ -170,13 +170,15 @@ Use the grounded-questions-one-at-a-time pattern. Use a **❓ Question:** prefix
|
|
|
170
170
|
- Lead with the most architecturally significant ambiguity.
|
|
171
171
|
- Every answer becomes a FIXED decision — no revisiting unless the developer explicitly asks.
|
|
172
172
|
|
|
173
|
+
- Every ambiguity checkpoint MUST be self-contained: state observed behavior, at least one `file:line` evidence reference, why the decision matters, and 2-4 concrete decision options in the question or option descriptions.
|
|
174
|
+
|
|
173
175
|
**Choosing question format:**
|
|
174
176
|
|
|
175
|
-
- **`ask_user_question` tool** —
|
|
177
|
+
- **`ask_user_question` tool** — concrete options include evidence and trade-offs in every description. The user can type a custom answer through the automatically appended `Type something.` row; do not author `Other`. Example:
|
|
176
178
|
|
|
177
179
|
> Use the `ask_user_question` tool with the following question: "Found 2 mapping approaches — which should new code follow?". Header: "Pattern". Options: "Manual mapping (Recommended)" (Used in OrderService (src/services/OrderService.ts:45) — 8 occurrences); "AutoMapper" (Used in UserService (src/services/UserService.ts:12) — 2 occurrences).
|
|
178
180
|
|
|
179
|
-
- **Open-ended**
|
|
181
|
+
- **Open-ended** — still use `ask_user_question`; supply 2-4 concrete hypotheses with behavior, `file:line` evidence, impact, and decision context, then let the automatic `Type something.` row capture unanticipated detail.
|
|
180
182
|
|
|
181
183
|
**Batching**: When you have 2-4 independent questions (answers don't depend on each other), you MAY batch them in a single `ask_user_question` call. Keep dependent questions sequential.
|
|
182
184
|
|
package/skills/design/SKILL.md
CHANGED
|
@@ -156,13 +156,15 @@ Use the grounded-questions-one-at-a-time pattern. Use a **❓ Question:** prefix
|
|
|
156
156
|
- Lead with the most architecturally significant ambiguity.
|
|
157
157
|
- Every answer becomes a FIXED decision — no revisiting unless the developer explicitly asks.
|
|
158
158
|
|
|
159
|
+
- Every ambiguity checkpoint MUST be self-contained: state observed behavior, at least one `file:line` evidence reference, why the decision matters, and 2-4 concrete decision options in the question or option descriptions.
|
|
160
|
+
|
|
159
161
|
**Choosing question format:**
|
|
160
162
|
|
|
161
|
-
- **`ask_user_question` tool** —
|
|
163
|
+
- **`ask_user_question` tool** — concrete options include evidence and trade-offs in every description. The user can type a custom answer through the automatically appended `Type something.` row; do not author `Other`. Example:
|
|
162
164
|
|
|
163
165
|
> Use the `ask_user_question` tool with the following question: "Found 2 mapping approaches — which should new code follow?". Header: "Pattern". Options: "Manual mapping (Recommended)" (Used in OrderService (src/services/OrderService.ts:45) — 8 occurrences); "AutoMapper" (Used in UserService (src/services/UserService.ts:12) — 2 occurrences).
|
|
164
166
|
|
|
165
|
-
- **Open-ended**
|
|
167
|
+
- **Open-ended** — still use `ask_user_question`; supply 2-4 concrete hypotheses with behavior, `file:line` evidence, impact, and decision context, then let the automatic `Type something.` row capture unanticipated detail.
|
|
166
168
|
|
|
167
169
|
**Batching**: When you have 2-4 independent questions (answers don't depend on each other), you MAY batch them in a single `ask_user_question` call. Keep dependent questions sequential.
|
|
168
170
|
|
|
@@ -54,7 +54,7 @@ The first tab-separated field is `<iso>` (use as `last_updated` when you edit a
|
|
|
54
54
|
|
|
55
55
|
Lead with the data types and interface surface — that is the contract the developer is signing off on.
|
|
56
56
|
|
|
57
|
-
3. **Ask the developer to accept or adjust** with the `ask_user_question` tool. Question: "Proposed design across {N} slices ({F} files). Accept, or adjust a slice?". Header: "Design". Options: "Accept (Recommended)" (Proceed to synthesis — merge the per-slice designs into the plan); "Adjust a slice" (Change a slice's approach, interfaces, data types, or scope before synthesis — describe which slice and what). The developer
|
|
57
|
+
3. **Ask the developer to accept or adjust** with the `ask_user_question` tool. Question: "Proposed design across {N} slices ({F} files). Accept, or adjust a slice?". Header: "Design". Options: "Accept (Recommended)" (Proceed to synthesis — merge the per-slice designs into the plan); "Adjust a slice" (Change a slice's approach, interfaces, data types, or scope before synthesis — describe which slice and what). The developer may use the automatically appended `Type something.` row to provide an unanticipated adjustment; do not author an `Other` option.
|
|
58
58
|
|
|
59
59
|
4. **On Adjust — apply surgically and cascade, then re-present (loop back to Step 2).** Classify the change:
|
|
60
60
|
|
package/skills/discover/SKILL.md
CHANGED
|
@@ -55,7 +55,7 @@ The final artifact is research-compatible — its Decisions block is translated
|
|
|
55
55
|
|
|
56
56
|
2. **Detect input shape** — parse the input:
|
|
57
57
|
- If the argument is an existing file path (resolves to a readable `.md` under `.rpiv/artifacts/`, or any path the user mentions for refinement context), read it FULLY using the Read tool WITHOUT limit/offset. Treat its content as baseline context — the interview surfaces gaps, missing requirements, and unstated assumptions relative to what's already documented.
|
|
58
|
-
-
|
|
58
|
+
- Plain free-text input → fresh-feature mode: the entire argument is the free-text feature description.
|
|
59
59
|
|
|
60
60
|
3. **Read any other files mentioned** in the prompt (tickets, docs, related artifacts, explicit `path:line` references) FULLY before proceeding.
|
|
61
61
|
|
|
@@ -71,8 +71,7 @@ Before any codebase probe, ask the foundational intent question. This is purely
|
|
|
71
71
|
- Frame: "What problem are you solving and who hits it?" / "What does success look like for the person experiencing this today?" — phrase it for the specific feature.
|
|
72
72
|
- **No `(Recommended)` option.** The developer should generate the framing, not pick from a proposal.
|
|
73
73
|
- **No `file:line` citations** — codebase has nothing to say about intent.
|
|
74
|
-
- Options should be open shapes (
|
|
75
|
-
- Always offer "Other" so the developer can free-text the real framing.
|
|
74
|
+
- Options should be open shapes (for example, "End user", "Maintainer", or "Operator") that route the answer, not solution shapes. The automatically appended `Type something.` row lets the developer supply a different framing; do not author an `Other` option.
|
|
76
75
|
|
|
77
76
|
2. **Capture the answer in the developer's own words.** This text feeds into the FRD's Problem & Intent section verbatim — do not paraphrase into agent prose.
|
|
78
77
|
|
|
@@ -132,7 +131,7 @@ Walk the lazy tree depth-first, parent before child. Expand the next layer (buil
|
|
|
132
131
|
|
|
133
132
|
2. **Recommended answer** (`scope` / `shape` / `detail`): derive from intent + Step 3 evidence + project conventions. Every non-intent question carries a recommendation labeled `(Recommended)`.
|
|
134
133
|
|
|
135
|
-
3. **Ask via `ask_user_question`.** Lead with the recommended option. The
|
|
134
|
+
3. **Ask via `ask_user_question`.** Lead with the recommended authored option. The automatic `Type something.` custom-answer row handles open-ended answers; do not author an `Other` option.
|
|
136
135
|
|
|
137
136
|
4. **Critical rules**:
|
|
138
137
|
- Ask ONE question at a time. Wait for the answer before asking the next.
|
package/skills/research/SKILL.md
CHANGED
|
@@ -144,7 +144,8 @@ Findings go into Precedents & Lessons. Otherwise skip and note "git history unav
|
|
|
144
144
|
|
|
145
145
|
2. **Developer checkpoint — grounded questions one at a time:**
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
- Every ambiguity checkpoint MUST be self-contained: state observed behavior, at least one `file:line` evidence reference, why the decision matters, and 2-4 concrete decision options in the question or option descriptions.
|
|
148
|
+
Start with grounded questions referencing real findings with `file:line` evidence. Ask ONE question at a time, waiting for the answer before the next. Use a **❓ Question:** prefix. Each question must pull NEW information from the developer — not confirm what you already found:
|
|
148
149
|
|
|
149
150
|
Every question MUST embed at least one `file:line` reference in the question text — not just in surrounding context. Examples:
|
|
150
151
|
|
|
@@ -162,15 +163,15 @@ Findings go into Precedents & Lessons. Otherwise skip and note "git history unav
|
|
|
162
163
|
- **Pattern conflict**: "Found 2 implementations of {X} — which is canonical?" with options citing `file:line` + occurrence count
|
|
163
164
|
- **Scope boundary**: "Question {N} references files {A,B,C} but analysis shows {D} is the real integration point. Extend scope?" with yes/no + "describe what I missed"
|
|
164
165
|
- **Priority override**: "Questions Q1 and Q2 have competing implications for {area}. Which is load-bearing?" with options
|
|
165
|
-
- **Integration ambiguity**: "Found no connection between {X} and {Y}.
|
|
166
|
+
- **Integration ambiguity**: "Found no connection between {X} and {Y} at `file:line`. This leaves {impact}. Should the feature wire through {A} or {B}?" — use `ask_user_question`; the automatically appended `Type something.` row captures unexpected custom input.
|
|
166
167
|
|
|
167
168
|
**Choosing question format:**
|
|
168
169
|
|
|
169
|
-
- **`ask_user_question` tool** — when your question has 2-4 concrete options from code analysis (pattern conflicts, integration choices, scope boundaries, priority overrides). The
|
|
170
|
+
- **`ask_user_question` tool** — when your question has 2-4 concrete options from code analysis (pattern conflicts, integration choices, scope boundaries, priority overrides). The automatically appended `Type something.` row captures custom input. Example:
|
|
170
171
|
|
|
171
172
|
> Use the `ask_user_question` tool with the following question: "Found 2 patterns for retry logic — which is canonical?". Header: "Pattern". Options: "Event-sourced retry (Recommended)" (`src/events/orders.ts:45-67` — 3 hooks, matches precedent commit `abc123`); "Direct retry loop" (`src/services/OrderService.ts:112` — single use, no event traceability).
|
|
172
173
|
|
|
173
|
-
- **Open-ended** (discovery, "what am I missing?", corrections) — still `ask_user_question`;
|
|
174
|
+
- **Open-ended** (discovery, "what am I missing?", corrections) — still use `ask_user_question`; supply 2-4 concrete hypotheses with behavior, `file:line` evidence, impact, and decision context, then let the automatic `Type something.` row capture unanticipated detail.
|
|
174
175
|
|
|
175
176
|
**Anti-pattern** — do NOT dump a verbose paragraph mixing analysis with a trailing question:
|
|
176
177
|
|
|
@@ -49,7 +49,7 @@ When this command is invoked:
|
|
|
49
49
|
2. **If no parameters provided**, branch on the `recent handoffs:` listing in the Metadata block:
|
|
50
50
|
- **Empty** — no handoffs exist; tell the user and ask for a path in prose.
|
|
51
51
|
- **Exactly one entry** — confirm with `ask_user_question`: "Resume this handoff?" with options "Resume `<filename>` (Recommended)" and "Pick a different path". Do NOT call `ask_user_question` with a single option (the tool requires ≥2).
|
|
52
|
-
- **Two or more entries** — present the top 4 filenames as `ask_user_question` options
|
|
52
|
+
- **Two or more entries** — present the top 4 filenames as `ask_user_question` options. The tool automatically appends a `Type something.` free-text row; do not list it manually.
|
|
53
53
|
|
|
54
54
|
Direct invocation alternative: `/skill:resume-handoff .rpiv/artifacts/handoffs/<filename>`
|
|
55
55
|
|
package/skills/validate/SKILL.md
CHANGED
|
@@ -62,7 +62,7 @@ When invoked:
|
|
|
62
62
|
- Otherwise, branch on the `recent plans:` listing in the Metadata block:
|
|
63
63
|
- **Empty** — no plans under `.rpiv/artifacts/plans/`; ask the user for a path in prose.
|
|
64
64
|
- **Exactly one entry** — confirm with `ask_user_question`: "Validate this plan?" with options "Validate `<filename>` (Recommended)" and "Pick a different path".
|
|
65
|
-
- **Two or more entries** — present the top 4 filenames as `ask_user_question` options
|
|
65
|
+
- **Two or more entries** — present the top 4 filenames as `ask_user_question` options. The tool automatically appends a `Type something.` free-text row; do not list it manually.
|
|
66
66
|
|
|
67
67
|
3. **Read the implementation plan** completely
|
|
68
68
|
|