juicesharp/rpiv-mono/design
Claude Code and agent skill by juicesharp/rpiv-mono
- community
Checking that the SKILL.md file is still in the repository.
Design complex features by decomposing them into vertical slices, generating and verifying one slice per session, and producing a resumable design artifact (architecture decisions, slice breakdown, file map) in .rpiv/artifacts/designs/. The design feeds the plan or blueprint skill. Use for complex multi-component features touching 6+ files across multiple layers, when the user wants a feature designed before implementation. Requires a research artifact or a solutions artifact (from explore); resume an in-progress design with --resume. Prefer design over plan or blueprint when the focus is architecture and decomposition rather than phased execution steps.
Install
npx vskill@latest install juicesharp/rpiv-mono/designSKILL.md
The same SKILL.md was published earlier as juicesharp/rpiv-mono/design.
Design
You are tasked with designing how code will be shaped for a feature or change. This iterative variant decomposes features into vertical slices and generates code slice-by-slice with developer micro-checkpoints between slices. The design artifact feeds directly into plan, which sequences it into phases.
Input
$ARGUMENTS takes two forms:
- Start — path to a research artifact (
.rpiv/artifacts/research/*.md) or a solutions artifact (.rpiv/artifacts/solutions/*.md). - Resume —
--resume <path-to-.rpiv/artifacts/designs/*.md>. The design must havestatus: in-progress; the artifact, not a compaction summary, is authoritative for locked slices and the next pending slice.
Metadata
Copy values verbatim — do not reformat the timezone offset.
Flow
- Input → 2. Research → 3. Dimension sweep → 4. Checkpoint → 5. Decompose → 6. Generate slices (code + Success Criteria) → 7. Finalize → 8. Present artifact → 9. Handle follow-ups
The final artifact is plan-compatible: ## Slices boundaries become phase boundaries 1:1, and Success Criteria pass through unchanged. Post-finalization code + coverage review runs inside /skill:plan Step 4.
Steps
Step 1: Input Handling
When this command is invoked:
- Resume mode first — when
$ARGUMENTScontains--resume:
- Parse exactly one design artifact path after the flag. If it is missing, outside
.rpiv/artifacts/designs/, unreadable, or notstatus: in-progress, print the specific error and stop. - Read the design artifact FULLY. Extract Decisions, Architecture, Slices, Verification Notes, Developer Context, and Design History.
- Find the first Design History entry still marked
pending. Treat every earlierapprovedentry and its persisted code fences/Success Criteria as locked; never reconstruct them from conversation or a compaction summary. - Read the current source files for that pending slice FULLY, plus Architecture entries for files the slice shares with locked predecessors.
- Skip Steps 2–5. Enter Step 6 at the pending slice. If no slice is pending, go directly to Step 7.
- Read research artifact:
Research artifact provided (argument contains a path to a .md file in .rpiv/artifacts/):
- Read the research artifact FULLY using the Read tool WITHOUT limit/offset
- Extract: Summary, Code References, Integration Points, Architecture Insights, Precedents & Lessons, Developer Context, Open Questions
- Read the key source files from Code References into the main context — especially hooks, shared utilities, and integration points the design will depend on. Read them FULLY. This ensures you have complete understanding before proceeding.
- These become starting context — no need to re-discover what exists
- Research Developer Context Q/As = inherited decisions (record in Decisions, never re-ask); Open Questions = starting ambiguity queue, filtered by dimension in Step 3
No arguments provided, branch on the recent research: and recent solutions: listings in the Metadata block:
- Both empty — no upstream artifacts available; tell the user and suggest running
/skill:research(or/skill:explorefor option comparison) first. - Exactly one entry total — confirm with
ask_user_question: "Design from this artifact?" with options "Design from[<source>] <filename>(Recommended)" and "Pick a different path". - Two or more entries total — present up to 4 most-recent across both listings as
ask_user_questionoptions, each prefixed[research]or[solutions]to flag source class.
- Read any additional files mentioned — tickets, related designs, existing implementations. Read them FULLY before proceeding.
Step 2: Targeted Research
This is NOT a discovery sweep. Focus on DEPTH (how things work, what patterns to follow) not BREADTH (where things are).
- Spawn parallel research agents using the Agent tool — all in a single assistant message with multiple Agent calls (concurrent, synchronous). Never `run_in_background`: its completion can't re-drive a workflow session, so the skill ends its turn before writing the design and the stage fails with no artifact.
- Use codebase-pattern-finder to find existing implementations to model after — the primary template for code shape
- Use codebase-analyzer to understand HOW integration points work in detail
- Use integration-scanner to map the wiring surface — inbound refs, outbound deps, config/DI/event registration
- Use precedent-locator to find similar past changes in git history — what commits introduced comparable features, what broke, and what lessons apply to this design. Only when
commitis available (notno-commit); otherwise skip and note "git history unavailable" in Verification Notes.
Novel work (new libraries, first-time patterns, no existing codebase precedent):
- Add web-search-researcher for external documentation, API references, and community patterns
- Instruct it to return LINKS with findings — include those links in the final design artifact
Agent prompts should focus on (labeled by target agent):
- codebase-pattern-finder: "Find the implementation pattern I should model after for {feature type}"
- codebase-analyzer: "How does {integration point} work in detail"
- integration-scanner: "What connects to {component} — inbound refs, outbound deps, config"
NOT: "Find all files related to X" — that's discovery's job, upstream of this skill.
- Read all key files identified by agents into the main context — especially the pattern templates you'll model after.
- Wait for ALL agents to complete before proceeding.
- Analyze and verify understanding:
- Cross-reference research findings with actual code read in Step 1
- Identify any discrepancies or misunderstandings
- Note assumptions that need verification
- Determine true scope based on codebase reality
Step 3: Identify Ambiguities — Dimension Sweep
Walk Step 2 findings, inherited research Q/As, and carried Open Questions through six architectural dimensions that map 1:1 to the downstream phased plan's section coverage — the sweep guarantees downstream completeness. Add migration as a seventh dimension only if the feature changes persisted schema.
- Data model — types, schemas, entities
- API surface — signatures, exports, routes
- Integration wiring — mount points, DI, events, config
- Scope — in / explicitly deferred
- Verification — tests, assertions, risk-bearing behaviors
- Performance — load paths, caching, N+1 risks
For each dimension, classify findings into three classes:
- simple — one valid option, obvious from codebase, no directional weight. Record in Decisions with
file:lineevidence; do not ask. - directional — obvious fit, but the choice encodes a direction: propagates an existing pattern across new files, picks extend-vs-replace, or spreads a convention the project may be moving off. Queue for the directional confirm (Step 4, one batched ask).
- genuine ambiguity — multiple valid options, conflicting patterns, scope questions, novel choices. Queue for Step 4, one-at-a-time.
Inherited research Q/As land as simple unless directional; Open Questions filter by dimension — architectural survives, implementation-detail defers.
Pre-validate every option before queuing it against research constraints and runtime code behavior. Eliminate or caveat options that contradict Steps 1-2 evidence. Coverage check: every Step 2 file read appears in at least one decision, directional confirm, or ambiguity; every dimension is addressed (silently-resolved valid, skipped-unchecked not).
Step 4: Developer Checkpoint
Use the grounded-questions-one-at-a-time pattern. Use a ❓ Question: prefix so the developer knows their input is needed. Each question must:
- Reference real findings with
file:lineevidence - Present concrete options (not abstract choices)
- Pull a DECISION from the developer, not confirm what you already found
- Keep
Header≤16 characters (MAX_HEADER_LENGTH = 16— longer values are rejected).
Directional confirms first. Before the one-at-a-time questions, clear every directional finding from Step 3 in a single batched ask_user_question (up to 4 per call). Do not mark the "follow" option Recommended.
Question: "About to follow {pattern X} (file:line, used ×N) across {the N new files} — confirm that's the direction, or moving off it?". Header: "Direction". Options: "Follow {X}" (propagate as-is); "Moving off {X}" (deliberate departure).
Follow records the decision as stated. Moving off promotes the finding to a genuine ambiguity — ask it one-at-a-time below with the alternative in view.
Question patterns by ambiguity type:
- Pattern conflict: "Found 2 patterns for {X}: {pattern A} at
file:lineand {pattern B} atfile:line. They differ in {specific way}. Which should the new {feature} follow?" - Missing pattern: "No existing {pattern type} in the codebase. Options: (A) {approach} modeled after {external reference}, (B) {approach} extending {existing code at file:line}. Which fits the project's direction?"
- Scope boundary: "The {research/description} mentions both {feature A} and {feature B}. Should this design cover both, or just {feature A} with {feature B} deferred?"
- Integration choice: "{Feature} can wire into {point A} at
file:lineor {point B} atfile:line. {Point A} matches the {existing pattern} pattern. Agree, or prefer {point B}?" - Novel approach: "No existing {X} in the project. Options: (A) {library/pattern} — {evidence/rationale}, (B) {library/pattern} — {evidence/rationale}. Which fits?"
Critical rules:
- Ask ONE question at a time. Wait for the answer before asking the next.
- Lead with the most architecturally significant ambiguity.
- Every answer becomes a FIXED decision — no revisiting unless the developer explicitly asks.
- Every ambiguity checkpoint MUST be self-contained: state observed behavior, at least one
file:lineevidence reference, why the decision matters, and 2-4 concrete decision options in the question or option descriptions.
Choosing question format:
- `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 authorOther. Example:
> 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).
- Open-ended — still use
ask_user_question; supply 2-4 concrete hypotheses with behavior,file:lineevidence, impact, and decision context, then let the automaticType something.row capture unanticipated detail.
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.
Classify each response:
Decision (e.g., "use pattern A", "yes, follow that approach"):
- Record in Developer Context. Fix in Decisions section.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 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
- SKILL.md in the repositoryCheckingpackages/rpiv-pi/skills/design/SKILL.md
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
[](https://verified-skill.com/skills/juicesharp/rpiv-mono/design)