@juicesharp/rpiv-pi 2.4.0 → 2.5.1
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 +6 -6
- package/docs/architecture.md +3 -3
- package/docs/skills.md +3 -1
- package/docs/workflows.md +8 -2
- package/extensions/rpiv-core/built-in-workflows.ts +277 -243
- package/extensions/rpiv-core/built-ins/index.ts +27 -0
- package/extensions/rpiv-core/built-ins/markdown-fence.ts +108 -0
- package/extensions/rpiv-core/built-ins/shared.ts +153 -0
- package/extensions/rpiv-core/lane-console.ts +9 -1
- package/extensions/rpiv-core/lane-list.ts +43 -6
- package/extensions/rpiv-core/lane-progress.ts +49 -4
- package/extensions/rpiv-core/pipeline-pointer.ts +1 -1
- package/extensions/rpiv-core/run-lane-registry.ts +46 -21
- package/package.json +3 -3
- package/skills/quick-plan/SKILL.md +165 -0
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
Turn "build this feature" into a run of named stages — discover → research → design →
|
|
13
13
|
plan → implement → validate → code-review → commit — each one writing a reviewable
|
|
14
|
-
Markdown artifact under `.rpiv/artifacts/` that the next stage consumes. rpiv-pi adds
|
|
15
|
-
skills, 15 specialist subagents, and
|
|
14
|
+
Markdown artifact under `.rpiv/artifacts/` that the next stage consumes. rpiv-pi adds 29
|
|
15
|
+
skills, 15 specialist subagents, and four ready-made `/wf` pipelines to
|
|
16
16
|
[Pi Agent](https://github.com/badlogic/pi-mono), and runs every stage in a detached child
|
|
17
17
|
session you watch from a lane dock below your editor. It is for developers who want
|
|
18
18
|
structured, reviewable multi-stage work instead of one very long chat turn.
|
|
@@ -76,7 +76,7 @@ Prefer one stage at a time? Every skill also stands alone:
|
|
|
76
76
|
- **Questions that never get lost** — when a detached stage needs input it parks the
|
|
77
77
|
question on its lane with a badge instead of hijacking your prompt; `⏎` on the flagged
|
|
78
78
|
lane arms it inline.
|
|
79
|
-
- **
|
|
79
|
+
- **Four pipelines out of the box** — `build`, `vet`, `polish`, and `ship`, so
|
|
80
80
|
you never have to author a workflow to get value.
|
|
81
81
|
- **Cheap models for cheap stages** — `/rpiv-models` sets model and reasoning-effort
|
|
82
82
|
overrides per skill, per stage, per workflow, or per subagent, with a typo-catcher for
|
|
@@ -100,9 +100,9 @@ no overrides.
|
|
|
100
100
|
|
|
101
101
|
## Reference
|
|
102
102
|
|
|
103
|
-
- [docs/skills.md](./docs/skills.md) — all
|
|
103
|
+
- [docs/skills.md](./docs/skills.md) — all 29 skills: what each consumes, what it writes,
|
|
104
104
|
and which ones the model may pick on its own.
|
|
105
|
-
- [docs/workflows.md](./docs/workflows.md) — the
|
|
105
|
+
- [docs/workflows.md](./docs/workflows.md) — the four `/wf` pipelines stage by stage,
|
|
106
106
|
plus hand-driven recipes for when you don't want a whole pipeline.
|
|
107
107
|
- [docs/lanes.md](./docs/lanes.md) — the dock, the lane browser's full key map, parked
|
|
108
108
|
questions, and the lane environment variables.
|
|
@@ -120,7 +120,7 @@ no overrides.
|
|
|
120
120
|
| [Pi Agent](https://github.com/badlogic/pi-mono) | The host. Install it globally so `pi` is on your PATH |
|
|
121
121
|
| A model provider | Pi's own `/login` or `~/.pi/agent/models.json` — see [docs/models-config.md](./docs/models-config.md) |
|
|
122
122
|
| [`@tintinweb/pi-subagents`](https://www.npmjs.com/package/@tintinweb/pi-subagents) | Supplies the `Agent` tool. Without it the parallel-analysis skills cannot dispatch. Installed by `/rpiv-setup` |
|
|
123
|
-
| [`@juicesharp/rpiv-workflow`](https://www.npmjs.com/package/@juicesharp/rpiv-workflow) | Supplies `/wf`. Without it the
|
|
123
|
+
| [`@juicesharp/rpiv-workflow`](https://www.npmjs.com/package/@juicesharp/rpiv-workflow) | Supplies `/wf`. Without it the four built-in workflows do not register. Installed by `/rpiv-setup` |
|
|
124
124
|
| `git` *(optional)* | Branch, commit, and user context. If it fails, injection is skipped and nothing else changes |
|
|
125
125
|
| Node.js 22+ | Runtime for Pi and rpiv-pi's bundled scripts |
|
|
126
126
|
|
package/docs/architecture.md
CHANGED
|
@@ -9,7 +9,7 @@ extending the package.
|
|
|
9
9
|
```
|
|
10
10
|
rpiv-pi/
|
|
11
11
|
├── extensions/rpiv-core/ the one extension: hooks, commands, lanes, guidance, model config
|
|
12
|
-
├── skills/
|
|
12
|
+
├── skills/ 29 contract-carrying skills, one directory each
|
|
13
13
|
├── agents/ 15 subagent profiles, copied to ~/.pi/agent/agents/ at runtime
|
|
14
14
|
└── scripts/ deterministic helpers skills shell out to (Node built-ins only)
|
|
15
15
|
```
|
|
@@ -39,7 +39,7 @@ the siblings contribute capability.
|
|
|
39
39
|
| `/rpiv-models` | always | Interactive only |
|
|
40
40
|
| `/lanes` | always | No-ops with a notice when nothing is running |
|
|
41
41
|
| `ctrl+q` | conditionally | Skipped entirely when `RPIV_LANES_HOTKEY` disables it |
|
|
42
|
-
| `/skill:<name>` ×
|
|
42
|
+
| `/skill:<name>` × 29 | Pi, from the manifest | |
|
|
43
43
|
| `--rpiv-debug` flag | always | Reveals the hidden injected messages below |
|
|
44
44
|
|
|
45
45
|
Session events subscribed: `session_start`, `session_compact`, `session_shutdown`,
|
|
@@ -80,7 +80,7 @@ changes. When `git config user.name` is empty, `$USER` is used, then `unknown`.
|
|
|
80
80
|
|
|
81
81
|
## Pipeline pointer
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
20 of the 29 skills set `disable-model-invocation: true`, which hides them from the
|
|
84
84
|
model's skill list so it cannot wander into a design pass mid-conversation. To keep them
|
|
85
85
|
discoverable, a roughly 120-token stage index is injected at `session_start` — hidden
|
|
86
86
|
by default, visible under `--rpiv-debug`.
|
package/docs/skills.md
CHANGED
|
@@ -8,7 +8,7 @@ whether the model may reach for it on its own.
|
|
|
8
8
|
- **Invoke** — `/skill:<name>` from inside a Pi session, or as a stage of a `/wf`
|
|
9
9
|
workflow (see [workflows.md](./workflows.md)).
|
|
10
10
|
- **Auto** — ✓ means the model may select the skill by itself from your prompt.
|
|
11
|
-
|
|
11
|
+
20 of the 29 skills set `disable-model-invocation: true` and are marked —;
|
|
12
12
|
those run *only* on an explicit `/skill:<name>` or a workflow dispatch. A short
|
|
13
13
|
stage index is injected at session start so the model still knows they exist and
|
|
14
14
|
can suggest one.
|
|
@@ -42,6 +42,7 @@ whether the model may reach for it on its own.
|
|
|
42
42
|
| --- | :---: | --- | --- | --- |
|
|
43
43
|
| `plan` | — | a `design` artifact | `plans/` | Converts a design into parallelized atomic phases with explicit success criteria. Prefer it when a straightforward phased breakdown is enough. |
|
|
44
44
|
| `blueprint` | — | `research` or `solutions` (optional) | `plans/` | Fuses design + plan in one pass: vertical-slice decomposition with developer micro-checkpoints between phases, emitting an implement-ready plan. Lighter subagent fan-out than `design` — it trusts the research artifact's integration and precedent sections. |
|
|
45
|
+
| `quick-plan` | — | a `research` artifact (+ the verbatim `goal` brief under `ship`) | `plans/` | One lightweight plan for a small, well-understood task: at most a single targeted `codebase-pattern-finder` dispatch, then a single `status: ready` phased plan — no slice decomposition, no risk flags, no questions; goal asks it doesn't cover are explicitly deferred under `## Out of Scope`. The `ship` pipeline's plan stage. |
|
|
45
46
|
| `elaborate` | — | a `plan` artifact | `elaborations/` | Writes implement-ready code into ONE phase of a synthesized plan. A fanout unit; the results are stitched back into the plan. |
|
|
46
47
|
| `revise` | — | a `plan` (+ optional `reviews`) | `plans/` | Surgically updates an existing plan after review feedback, a mid-implement blocker, or a scope change — preserving structure instead of rewriting. |
|
|
47
48
|
| `amend` | — | one artifact + its `grade` verdicts | same artifact | Fixes only the failing dimensions a grade panel flagged and re-emits the artifact in place. Single-pass, no subagents; a gate's revise stage. |
|
|
@@ -52,6 +53,7 @@ whether the model may reach for it on its own.
|
|
|
52
53
|
| --- | :---: | --- | --- | --- |
|
|
53
54
|
| `implement` | — | a `plan` artifact | code changes | Executes a plan phase by phase, verifying each phase against its success criteria before moving on. |
|
|
54
55
|
| `validate` | — | a `plan` + the working tree | `validation/` | Runs each phase's success criteria against the working tree and reports a `pass` / `fail` verdict. |
|
|
56
|
+
| `remediate` | — | a `plan` + its failing `validation` | side-effect | The `validate` repair arm's body: re-runs each failed `verify-at-implement` risk ruling's own prescribed procedure, applies the minimal fix grounded in the failing report, and confirms the procedure passes. Workflow-dispatched only — `build`'s `validate-fix` stage. |
|
|
55
57
|
| `code-review` | ✓ | the working tree, a branch, or a PR | `reviews/` | Parallel specialist agents audit the diff, compare against peer code, and verify claims. Emits `blockers_count` plus severity-tagged findings. Scope argument accepts `staged`, `working`, a hash, `A..B`, or a branch; empty scope defaults to feature-branch vs default-branch. |
|
|
56
58
|
| `architecture-review` | — | a file, directory, or module path | `architecture-reviews/` | Top-down, layer-by-layer audit with a uniform 10-dimension checklist per layer, triaged through a developer checkpoint. Emits a phased polish plan `blueprint` can consume per phase. Language-agnostic. |
|
|
57
59
|
| `grade` | — | one artifact + one dimension name | `verdicts/` | Judges ONE artifact along ONE named quality dimension and writes a verdict JSON. It only judges — no fixes. A panel member, not standalone. |
|
package/docs/workflows.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Workflows and recipes
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
The four `/wf` pipelines `@juicesharp/rpiv-pi` contributes, and the hand-driven
|
|
4
4
|
skill chains to reach for when you don't want a whole pipeline.
|
|
5
5
|
|
|
6
6
|
`/wf` itself ships with [`@juicesharp/rpiv-workflow`](https://www.npmjs.com/package/@juicesharp/rpiv-workflow),
|
|
@@ -19,7 +19,7 @@ session start; if the runner is not installed, the built-ins simply do not appea
|
|
|
19
19
|
A run appears as a lane in the dock under your editor. You keep typing in the main
|
|
20
20
|
session while it works — see [lanes.md](./lanes.md).
|
|
21
21
|
|
|
22
|
-
## The
|
|
22
|
+
## The four built-in workflows
|
|
23
23
|
|
|
24
24
|
### `vet`
|
|
25
25
|
|
|
@@ -45,6 +45,12 @@ slices, designs each in parallel, takes one consolidated developer checkpoint on
|
|
|
45
45
|
proposed interfaces, synthesizes hierarchically, and grades the plan before and after
|
|
46
46
|
code is elaborated into it. Three automated gates plus one human checkpoint.
|
|
47
47
|
|
|
48
|
+
### `ship`
|
|
49
|
+
|
|
50
|
+
`goal → research → plan → plan-cite-check → grade → implement → implement-scope-check → reconcile → validate → commit`
|
|
51
|
+
|
|
52
|
+
Ship a small, well-understood task in one lightweight forward pass. The verbatim brief is the goal artifact; a trimmed research stage (at most two `codebase-analyzer` dispatches — not a full `/skill:research` pass) grounds a single unsliced plan from `quick-plan`, which receives the verbatim goal alongside the research doc and must explicitly defer any goal ask it narrows out; a deterministic citation floor and one tier-independent three-dimension grade (correctness, completeness, architecture-fit — architecture-fit cannot be dropped from a light roster) gate the plan before `implement`. Every gate is stop-on-fail — no fix loops, confirm panels, snapshots, or code-elaboration lane — and a red gate surfaces as `stopped at <gate>: <reason>` in the end-of-run toast and lane recap (never a ✓); a goal-anchored `validate` judges the landing before `commit`. Best for tasks small enough to plan in one pass; prefer `build` for anything needing decomposition.
|
|
53
|
+
|
|
48
54
|
## Review loops
|
|
49
55
|
|
|
50
56
|
`vet` and `polish` gate on the numeric `blockers_count` a `code-review`
|