juicesharp/rpiv-mono/synthesize

Claude Code and agent skill by juicesharp/rpiv-mono

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Merge N independent per-slice designs (plus the research they rest on) into ONE coherent phased plan in .rpiv/artifacts/plans/ — reconciling cross-slice overlaps, wiring inter-slice integration, and ordering phases by slice dependencies. Single-pass, no subagents, no self-review. The fan-in barrier of a fanout-and-synthesize flow — one phase per slice, plan-compatible so implement/validate consume it unchanged. For large slice maps it also runs hierarchically — as a per-cluster partial (`--as-subplan` turns designs into a subplan) and as the root merge (`--subplans` turns subplans into a plan) — so no single pass must hold every design at once. Use after a per-slice design fanout.

Install

npx vskill@latest install juicesharp/rpiv-mono/synthesize

SKILL.md

The same SKILL.md was published earlier as juicesharp/rpiv-mono/synthesize.

Synthesize

You merge several independent per-slice designs into one coherent phased plan. One pass. You do not redesign a slice or write code — you reconcile and sequence what the slice designs already decided. This is the fan-in barrier: each design was produced blind to the others, so your job is to make them fit together. No subagents, no self-review — the workflow's grade panel judges the merged plan.

Input

$ARGUMENTS — flags (the orchestrator wires them from the fan-in):

  • --designs <path> (repeats) — per-slice design docs from the design fanout.
  • --subplans <path> (repeats) — partial sub-plans from a cluster fanout (root mode).
  • --research <path> (optional) — the research the slices rest on, for cross-slice constraints.
  • --as-subplan (flag) — emit a sub-plan (partial mode) instead of a full plan.
  • --cluster <k> (optional, partial mode) — the ordinal written into the sub-plan's _cluster-<k>.md filename. The cluster fanout supplies it; for manual partial invocation pick an unused <k> (scan .rpiv/artifacts/subplans/ for existing *_cluster-<k>.md and take the next unused positive integer) so a re-dispatched pass writes a distinct file and never clobbers a sibling sub-plan.
  • --goal <path> (optional, root/flat) — the verbatim brief. Every ask it names is implemented by a phase or deferred under ## Out of Scope with a reason. Partial mode ignores it.
  • --acceptance <path> (optional, root/flat) — the frozen acceptance inventory (items:, ids a1…). Every id is disposed in the frontmatter acceptance: block (step 3b). Partial mode ignores it; missing or unreadable → omit the block.

If neither --designs nor --subplans is present, print an error and stop.

Modes

Pick the mode from the flags — the work is the same fan-in reconciliation at three scales:

ModeSelected byReadsWrites toOutput kind
Flat (default)--designs onlyevery design.rpiv/artifacts/plans/full plan
Partial (per-cluster)--designs … --as-subplanone cluster's designs.rpiv/artifacts/subplans/sub-plan
Root (merge)--subplans …the cluster sub-plans.rpiv/artifacts/plans/full plan

Hierarchical synthesis (partial → root) bounds each pass's context: a partial sees only its cluster's designs and exports the seams other clusters integrate with; the root merges the compact sub-plans (their summary + exports + phases), never re-reading every design. Flat mode is the single-pass form for small slice maps.

Metadata

!
node "${SKILL_DIR}/../_shared/now.mjs"
echo
node "${SKILL_DIR}/../_shared/git-context.mjs"

Copy values verbatim. <iso> is the first tab-separated field; <slug> is the second.

Steps

  1. Read every input fully — each --designs doc (flat/partial) or --subplans doc (root), plus --research if given.
  • For a design note its slice_n, slice_title, depends_on, File Map, Key Interfaces, Integration Points, Success Criteria.
  • For a sub-plan note its summary, exports (the seams it owns), depends_on clusters, and its phases.
  1. Reconcile across the inputs — this is the whole point of the barrier:
  • Overlap — when two inputs touch the same file/symbol, merge them into a single coherent change (or split into ordered phases) rather than emitting contradictory edits.
  • Integration — wire the seams: an input that depends on another's interface must reference the real shape the other defines. In root mode, this is where each sub-plan's exports get connected.
  • Conflict — when two inputs make incompatible decisions, resolve to one, and record the resolution in Synthesis Notes (the grade panel's correctness/architecture-fit members will check it).
  • Risk flags — a decision you're not confident is correct (an unverified assumption, an edge case wanting a second opinion) goes in the frontmatter risks: array as a { id, claim } entry (stable id; claim = the one-line assertion to rule on) plus a ## Risk Flags line — never buried in prose. This is the first-class channel grade and validate are REQUIRED to rule on; flag anything you'd otherwise write "flagging this so the grade panel can weigh in" about. Two optional fields tighten what "passing" means, so the gate can refuse a confident-but-ungrounded assertion (the honest-lazy class — a confident pass that never opened a file):
  • `claim_type: mechanics` — the claim asserts a verified mechanism (a behavior that holds because code was checked). A grade panel ruling it pass MUST cite the checked file:line in that ruling's evidence, else the gate demotes the pass as un-grounded. Use it for risks like "the revert is byte-identical" or "the helper no-ops on absent fields" where the assertion is checkable against code right now. Do not pair it with verify-at-implement for a claim about code a phase has not written yet; a deferred flag carries only the procedure duty.
  • `disposition: verify-at-implement` — the panel may defer the risk to a later phase rather than rule it in this panel. A deferred pass is accepted ONLY when the flag ALSO carries a concrete `procedure` (the named command/test the owner phase runs to discharge it) and an `owner` (the phase n that runs that step); a bare "verify later" with no procedure demotes. Use it for risks that genuinely need the shipped tree (a real build run, a coverage gate) the plan-grade panel cannot run.
  • Default (no claim_type, no disposition) stays the ordinary { id, claim } shape — the panel rules it on the artifact as today, with no evidence or procedure duty.
  1. Sequence phases — one phase per slice (flat/partial) or carry the sub-plans' phases through (root), ordered so a phase never precedes one it depends_on. Tightly-coupled units may merge into one phase; note any merge. Populate each entry's files: from that phase's ### Changes paths (every repo-root-relative path the phase creates or edits) and depends_on only for semantic ordering NOT visible in files: (a phase that needs an earlier phase to run first despite no shared file) — lower n only.

3b. Dispose every acceptance id (root/flat, --acceptance given): one acceptance: entry per inventory id, in order — implemented + phase (its command exits 0 as written on that phase's tree) or deferred + reason + an ## Out of Scope line. Every id once; no invented ids; prose is not a disposition. rebound + phase + command + reason when the substance is delivered but the frozen command pins a mechanism the design changed (a file or helper name, a count): the replacement command measures the SAME observable as the item's statement/expect, reuses a check the phase's own AV runs, and drops no conjunct without saying why; substance not delivered ⇒ deferred, never rebound.

  1. Write the output (below), status: ready:
  • Flat / root → a standard plan in .rpiv/artifacts/plans/ — phases with concrete changes and Success Criteria that pass through unchanged to implement/validate.
  • Partial (--as-subplan) → a sub-plan in .rpiv/artifacts/subplans/ — the same phase shape PLUS a summary and an exports block naming the seams (files/symbols/interfaces this cluster owns) the root will wire other clusters into. Keep it compact: the root reads it instead of your cluster's designs.
  1. Print the path, then a one-line summary: <N> phases from <M> {slices|sub-plans} (note the mode).

This skill is non-interactive: when a conflict can't be cleanly resolved, make the most defensible call, record it in Synthesis Notes, and let the grade panel catch a bad merge. Do not ask the user.

Output document

Flat / root mode → Path: .rpiv/artifacts/plans/<slug>_<topic>.md. Partial mode (--as-subplan) → Path: .rpiv/artifacts/subplans/<slug>_cluster-<k>.md — <k> is the verbatim --cluster <k> value (the cluster fanout always supplies it; for manual partial invocation pick an unused <k>: scan .rpiv/artifacts/subplans/ for existing *_cluster-<k>.md and take the next unused positive integer, so a re-dispatched pass never clobbers a sibling sub-plan). Same body shape plus a summary: scalar and an exports: list in frontmatter, e.g.:

yaml
summary: "<one-paragraph what this cluster delivers>"
exports:
- "src/foo.ts:Foo — the interface other clusters call"
depends_on_clusters: []

The frontmatter must carry a phases: array and phase_count equal to both the array length and the number of ## Phase N: headings in the body (a downstream derive-check rejects a mismatch) — for sub-plans too. acceptance: appears ONLY with --acceptance in root/flat mode; sub-plans never carry it.

markdown
---
date: <iso>
author: <author>
repository: <repo>
branch: <branch>
commit: <commit>
topic: "<topic>"
status: ready
phase_count: <N>
phases:
-{ n: 1, title: "<title>", slice: 1, files: ["path/to/file.ts"], depends_on: [] }
-{ n: 2, title: "<title>", slice: 2, files: ["path/to/other.ts"], depends_on: [1] }
risks:
-{ id: r1, claim: "<a decision you want the grade panel + validate to rule on>" }
-{ id: r2, claim: "<a checkable mechanism>", claim_type: mechanics }
-{ id: r3, claim: "<needs the shipped tree to discharge>", disposition: verify-at-implement, procedure: "<named command/test>", owner: <phase n> }
acceptance:
-{ id: a1, disposition: implemented, phase: 1 }
-{ id: a2, disposition: deferred, reason: "<one line, mirrored by an ## Out of Scope line>" }
sources: [<each --designs path>, <--research path>]
tags: [plan, synthesized]
---
# Plan: <topic>
## Synthesis Notes
-<cross-slice overlaps merged, conflicts resolved, integration seams wired — with file refs>
## Risk Flags
<!-- One entry per `risks:` frontmatter id. Omit the section AND the frontmatter array when there are genuinely no risks. -->
-**r1** — <the claim, and what a reviewer should verify to rule it pass or fail>
## Phase 1: <title>
### Changes
-`path/to/file.ts` — <what to do>
<!-- Every `file:line` uses the repo-root-relative path, never a subdirectory-relative form or a bare basename. -->
### Success Criteria
#### Automated Verification:
-[ ] <command / assertion>
#### Manual Verification:
-[ ] <check>
## Phase 2: <title>
...

Hard rules

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
658
Repository forks
121
7-day trend score
32

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/juicesharp/rpiv-mono/synthesize/badge)](https://verified-skill.com/skills/juicesharp/rpiv-mono/synthesize)

Something wrong with this skill or its page? Tell us.