shaping
npx skills add https://github.com/rjs/shaping-skills --skill shaping
Agent 安装分布
Skill 文档
Shaping Methodology
A structured approach for collaboratively defining problems and exploring solution options.
Multi-Level Consistency (Critical)
Shaping produces documents at different levels of abstraction. Truth must stay consistent across all levels.
The Document Hierarchy (high to low)
- Big Picture â highest level, designed for quick context acquisition
- Shaping doc â ground truth for R’s, shapes, parts, fit checks
- Slices doc â ground truth for slice definitions, breadboards
- Individual slice plans (V1-plan, etc.) â ground truth for implementation details
The Principle
Each level summarizes or provides a view into the level(s) below it. Lower levels contain more detail; higher levels are designed views that help acquire context quickly.
Changes ripple in both directions:
- Change at high level â trickles down: If you flag a part as â ï¸ in the Big Picture, update the shaping doc’s parts table too.
- Change at low level â trickles up: If a slice plan reveals a new mechanism or changes the scope of a slice, the Slices doc and Big Picture must reflect that.
The Practice
Whenever making a change:
- Identify which level you’re touching
- Ask: “Does this affect documents above or below?”
- Update all affected levels in the same operation
- Never let documents drift out of sync
The Big Picture isn’t a static snapshot â it’s a live summary that must stay connected to its source documents. The system only works if the levels are consistent with each other.
Starting a Session
When kicking off a new shaping session, offer the user both entry points:
- Start from R (Requirements) â Describe the problem, pain points, or constraints. Build up requirements and let shapes emerge.
- Start from S (Shapes) â Sketch a solution already in mind. Capture it as a shape and extract requirements as you go.
There is no required order. Shaping is iterative â R and S inform each other throughout.
Working with an Existing Shaping Doc
When the shaping doc already has a selected shape:
- Display the fit check for the selected shape only â Show R Ã [selected shape] (e.g., R Ã F), not all shapes
- Summarize what is unsolved â Call out any requirements that are Undecided, or where the selected shape has â
This gives the user immediate context on where the shaping stands and what needs attention.
Core Concepts
R: Requirements
A numbered set defining the problem space.
- R0, R1, R2… are members of the requirements set
- Requirements are negotiated collaboratively – not filled in automatically
- Track status: Core goal, Undecided, Leaning yes/no, Must-have, Nice-to-have, Out
- Requirements extracted from fit checks should be made standalone (not dependent on any specific shape)
- R states what’s needed, not what’s satisfied â satisfaction is always shown in a fit check (R Ã S)
- Chunking policy: Never have more than 9 top-level requirements. When R exceeds 9, group related requirements into chunks with sub-requirements (R3.1, R3.2, etc.) so the top level stays at 9 or fewer. This keeps the requirements scannable and forces meaningful grouping.
S: Shapes (Solution Options)
Letters represent mutually exclusive solution approaches.
- A, B, C… are top-level shape options (you pick one)
- C1, C2, C3… are components/parts of Shape C (they combine)
- C3-A, C3-B, C3-C… are alternative approaches to component C3 (you pick one)
Shape Titles
Give shapes a short descriptive title that characterizes the approach. Display the title when showing the shape:
## E: Modify CUR in place to follow S-CUR
| Part | Mechanism |
|------|-----------|
| E1 | ... |
Good titles capture the essence of the approach in a few words:
- â “E: Modify CUR in place to follow S-CUR”
- â “C: Two data sources with hybrid pagination”
- â “E: The solution” (too vague)
- â “E: Add search to widget-grid by swapping…” (too long)
Notation Hierarchy
| Level | Notation | Meaning | Relationship |
|---|---|---|---|
| Requirements | R0, R1, R2… | Problem constraints | Members of set R |
| Shapes | A, B, C… | Solution options | Pick one from S |
| Components | C1, C2, C3… | Parts of a shape | Combine within shape |
| Alternatives | C3-A, C3-B… | Approaches to a component | Pick one per component |
Notation Persistence
Keep notation throughout as an audit trail. When finalizing, compose new options by referencing prior components (e.g., “Shape E = C1 + C2 + C3-A”).
Phases
Shaping moves through two phases:
Shaping â Slicing
| Phase | Purpose | Output |
|---|---|---|
| Shaping | Explore the problem and solution space, select and detail a shape | Shaping doc with R, shapes, fit checks, breadboard |
| Slicing | Break down for implementation | Vertical slices with demo-able UI |
Phase Transition
Shaping â Slicing happens when:
- A shape is selected (passes fit check, feels right)
- The shape has been breadboarded into concrete affordances
- We need to plan implementation order
You can’t slice without a breadboarded shape.
Big Picture Through Time
The Big Picture is a living document that reflects the current state of truth at lower levels:
| Stage | Big Picture Contains |
|---|---|
| Exploring shapes | Not needed yet â still comparing options |
| Shape selected | Frame + Shape (fit check, parts, breadboard) |
| Shape breadboarded | Same, with full wiring diagram |
| After slicing | Adds Slices section (sliced breadboard + grid) |
| During implementation | Updated as slices complete (â /â³ status) |
The Big Picture always summarizes what exists in the ground truth documents. It evolves as shaping and implementation progress.
Fit Check (Decision Matrix)
THE fit check is the single table comparing all shapes against all requirements. Requirements are rows, shapes are columns. This is how we decide which shape to pursue.
Format
## Fit Check
| Req | Requirement | Status | A | B | C |
|-----|-------------|--------|---|---|---|
| R0 | Make items searchable from index page | Core goal | â
| â
| â
|
| R1 | State survives page refresh | Must-have | â
| â | â
|
| R2 | Back button restores state | Must-have | â | â
| â
|
**Notes:**
- A fails R2: [brief explanation]
- B fails R1: [brief explanation]
Conventions
- Always show full requirement text â never abbreviate or summarize requirements in fit checks
- Fit check is BINARY â Use â for pass, â for fail. No other values.
- Shape columns contain only â or â â no inline commentary; explanations go in Notes section
- Never use â ï¸ or other symbols in fit check â â ï¸ belongs only in the Parts table’s flagged column
- Keep notes minimal â just explain failures
Comparing Alternatives Within a Component
When comparing alternatives for a specific component (e.g., C3-A vs C3-B), use the same format but scoped to that component:
## C3: Component Name
| Req | Requirement | Status | C3-A | C3-B |
|-----|-------------|--------|------|------|
| R1 | State survives page refresh | Must-have | â
| â |
| R2 | Back button restores state | Must-have | â
| â
|
Missing Requirements
If a shape passes all checks but still feels wrong, there’s a missing requirement. Articulate the implicit constraint as a new R, then re-run the fit check.
Macro Fit Check
A separate tool from the standard fit check, used when working at a high level with chunked requirements and early-stage shapes where most mechanisms are still â ï¸. Use when explicitly requested.
The macro fit check has two columns per shape instead of one:
- Addressed? â Does some part of the shape seem to speak to this requirement at a high level?
- Answered? â Can you trace the concrete how? Is the mechanism actually spelled out?
Format:
## Macro Fit Check: R Ã A
| Req | Requirement | Addressed? | Answered? |
|-----|-------------|:----------:|:---------:|
| R0 | Core goal description | â
| â |
| R1 | Guided workflow | â
| â |
| R2 | Agent boundary | â ï¸ | â |
Conventions:
- Only show top-level requirements (R0, R1, R2…), not sub-requirements
- No notes column â keep the table narrow and scannable
- Use â (yes), â ï¸ (partially), â (no) for Addressed
- Use â (yes) or â (no) for Answered
- Follow the macro fit check with a separate Gaps table listing specific missing parts and their related sub-requirements
Possible Actions
These can happen in any order:
- Populate R – Gather requirements as they emerge
- Sketch a shape – Propose a high-level approach (A, B, C…)
- Detail (components) – Break a shape into components (B1, B2…)
- Detail (affordances) – Expand a selected shape into concrete UI/Non-UI affordances and wiring
- Explore alternatives – For a component, identify options (C3-A, C3-B…)
- Check fit – Build a fit check (decision matrix) playing options against R
- Extract Rs – When fit checks reveal implicit requirements, add them to R as standalone items
- Breadboard – Map the system to understand where changes happen and make the shape more concrete
- Spike – Investigate unknowns to identify concrete steps needed
- Decide – Pick alternatives, compose final solution
- Create Big Picture – Once a shape is selected, create the Big Picture summary
- Slice – Break a breadboarded shape into vertical slices for implementation
Communication
Show Full Tables
When displaying R (requirements) or any S (shapes), always show every row â never summarize or abbreviate. The full table is the artifact; partial views lose information and break the collaborative process.
- Show all requirements, even if many
- Show all shape parts, including sub-parts (E1.1, E1.2…)
- Show all alternatives in fit checks
Why This Matters
Shaping is collaborative negotiation. The user needs to see the complete picture to:
- Spot missing requirements
- Notice inconsistencies
- Make informed decisions
- Track what’s been decided
Summaries hide detail and shift control away from the user.
Mark Changes with ð¡
When re-rendering a requirements table or shape table after making changes, mark every changed or added line with a ð¡ so the user can instantly spot what’s different. Place the ð¡ at the start of the changed cell content. This makes iterative refinement easy to follow â the user should never have to diff the table mentally.
Spikes
A spike is an investigation task to learn how the existing system works and what concrete steps are needed to implement a component. Use spikes when there’s uncertainty about mechanics or feasibility.
File Management
Always create spikes in their own file (e.g., spike.md or spike-[topic].md). Spikes are standalone investigation documents that may be shared or worked on independently from the shaping doc.
Purpose
- Learn how the existing system works in the relevant area
- Identify what we would need to do to achieve a result
- Enable informed decisions about whether to proceed
- Not about effort â effort is implicit in the steps themselves
- Investigate before proposing â discover what already exists; you may find the system already satisfies requirements
Structure
## [Component] Spike: [Title]
### Context
Why we need this investigation. What problem we're solving.
### Goal
What we're trying to learn or identify.
### Questions
| # | Question |
|---|----------|
| **X1-Q1** | Specific question about mechanics |
| **X1-Q2** | Another specific question |
### Acceptance
Spike is complete when all questions are answered and we can describe [the understanding we'll have].
Acceptance Guidelines
Acceptance describes the information/understanding we’ll have, not a conclusion or decision:
- â “…we can describe how users set their language and where non-English titles appear”
- â “…we can describe the steps to implement [component]”
- â “…we can answer whether this is a blocker” (that’s a decision, not information)
- â “…we can decide if we should proceed” (decision comes after the spike)
The spike gathers information; decisions are made afterward based on that information.
Question Guidelines
Good spike questions ask about mechanics:
- “Where is the [X] logic?”
- “What changes are needed to [achieve Y]?”
- “How do we [perform Z]?”
- “Are there constraints that affect [approach]?”
Avoid:
- Effort estimates (“How long will this take?”)
- Vague questions (“Is this hard?”)
- Yes/no questions that don’t reveal mechanics
Breadboards
Use the /breadboarding skill to map existing systems or detail a shape into concrete affordances. Breadboarding produces:
- UI Affordances table
- Non-UI Affordances table
- Wiring diagram grouped by Place
Invoke breadboarding when you need to:
- Map existing code to understand where changes land
- Translate a high-level shape into concrete affordances
- Reveal orthogonal concerns (parts that are independent of each other)
Tables Are the Source of Truth
The affordance tables (UI and Non-UI) define the breadboard. The Mermaid diagram renders them.
When receiving feedback on a breadboard:
- First â update the affordance tables (add/remove/modify affordances, update Wires Out)
- Then â update the Mermaid diagram to reflect those changes
Never treat the diagram as the primary artifact. Changes flow from tables â diagram, not the reverse.
CURRENT as Reserved Shape Name
Use CURRENT to describe the existing system. This provides a baseline for understanding where proposed changes fit.
Shape Parts
Flagged Unknown (â ï¸)
A mechanism can be described at a high level without being concretely understood. The Flag column tracks this:
| Part | Mechanism | Flag |
|---|---|---|
| F1 | Create widget (component, def, register) | |
| F2 | Magic authentication handler | â ï¸ |
- Empty = mechanism is understood â we know concretely how to build it
- â ï¸ = flagged unknown â we’ve described WHAT but don’t yet know HOW
Why flagged unknowns fail the fit check:
- â is a claim of knowledge â it means “we know how this shape satisfies this requirement”
- Satisfaction requires a mechanism â some part that concretely delivers the requirement
- A flag means we don’t know how â we’ve described what we want, not how to build it
- You can’t claim what you don’t know â therefore it must be â
Fit check is always binary â â or â only. There is no third state. A flagged unknown is a failure until resolved.
This distinguishes “we have a sketch” from “we actually know how to do this.” Early shapes (A, B, C) often have many flagged parts â that’s fine for exploration. But a selected shape should have no flags (all â resolved), or explicit spikes to resolve them.
Parts Must Be Mechanisms
Shape parts describe what we BUILD or CHANGE â not intentions or constraints:
- â
“Route
childType === 'letter'totypesenseService.rawSearch()” (mechanism) - â “Types unchanged” (constraint â belongs in R)
Avoid Tautologies Between R and S
R states the need/constraint (what outcome). S describes the mechanism (how to achieve it). If they say the same thing, the shape part isn’t adding information.
- â R17: “Admins can bulk request members to sign” + C6.3: “Admin can bulk request members to sign”
- â R17: “Admins can bring existing members into waiver tracking” + C6.3: “Bulk request UI with member filters, creates WaiverRequests in batch”
The requirement describes the capability needed. The shape part describes the concrete mechanism that provides it. If you find yourself copying text from R into S, stop â the shape part should add specificity about how.
Parts Should Be Vertical Slices
Avoid horizontal layers like “Data model” that group all tables together. Instead, co-locate data models with the features they support:
- â B4: Data model â Waivers table, WaiverSignatures table, WaiverRequests table
- â B1: Signing handler â includes WaiverSignatures table + handler logic
- â B5: Request tracking â includes WaiverRequests table + tracking logic
Each part should be a vertical slice containing the mechanism AND the data it needs.
Extract Shared Logic
When the same logic appears in multiple parts, extract it as a standalone part that others reference:
- â Duplicating “Signing handler: create WaiverSignature + set boolean” in B1 and B2
- â Extract as B1: Signing handler, then B2 and B3 say “â calls B1”
| **B1** | **Signing handler** |
| B1.1 | WaiverSignatures table: memberId, waiverId, signedAt |
| B1.2 | Handler: create WaiverSignature + set member.waiverUpToDate = true |
| **B2** | **Self-serve signing** |
| B2 | Self-serve purchase: click to sign inline â calls B1 |
| **B3** | **POS signing via email** |
| B3.1 | POS purchase: send waiver email |
| B3.2 | Passwordless link to sign â calls B1 |
Hierarchical Notation
Start with flat notation (E1, E2, E3…). Only introduce hierarchy (E1.1, E1.2…) when:
- There are too many parts to easily understand
- You’re reaching a conclusion and want to show structure
- Grouping related mechanisms aids communication
| Notation | Meaning |
|---|---|
| E1 | Top-level component of shape E |
| E1.1, E1.2 | Sub-parts of E1 (add later if needed) |
Example of hierarchical grouping (used when shape is mature):
| Part | Mechanism |
|---|---|
| E1 | Swap data source |
| E1.1 | Modify backend indexer |
| E1.2 | Route letters to new service |
| E1.3 | Route posts to new service |
| E2 | Add search input |
| E2.1 | Add input with debounce |
Detailing a Shape
When a shape is selected, you can expand it into concrete affordances. This is called detailing.
Notation
Use “Detail X” (not a new letter) to show this is a breakdown of Shape X, not an alternative:
## A: First approach
(shape table)
## B: Second approach
(shape table)
## Detail B: Concrete affordances
(affordance tables + wiring)
What Detailing Produces
Use the /breadboarding skill to produce:
- UI Affordances table â Things users see and interact with (inputs, buttons, displays)
- Non-UI Affordances table â Data stores, handlers, queries, services
- Wiring diagram â How affordances connect across places
Why “Detail X” Not “C”
Shape letters (A, B, C…) are mutually exclusive alternatives â you pick one. Detailing is not an alternative; it’s a deeper breakdown of the selected shape. Using a new letter would incorrectly suggest it’s a sibling option.
A, B, C = alternatives (pick one)
Detail B = expansion of B (not a choice)
Documents
Shaping produces up to four documents. Each has a distinct role:
| Document | Contains | Purpose |
|---|---|---|
| Big Picture | Frame summary, Fit Check, Parts, Breadboard, Sliced Breadboard, Slices grid | 10,000-foot view â quick context for driver and developer |
| Frame | Source, Problem, Outcome | The “why” â concise, stakeholder-level |
| Shaping doc | Requirements, Shapes (CURRENT/A/B/…), Affordances, Breadboard, Fit Check | The working document â exploration and iteration happen here |
| Slices doc | Slice details, affordance tables per slice, wiring diagrams | The implementation plan â how to build incrementally |
| Slice plans | V1-plan.md, V2-plan.md, etc. | Individual implementation plans for each slice |
Big Picture Document
The Big Picture is a one-page summary that shows the entire shaped feature at a glance. It helps:
- The driver see the whole thing and track what we’re doing
- The developer maintain context about requirements and shape while working in slices
When to create: After a shape is selected and breadboarded, optionally before slicing is complete. The Big Picture evolves as slicing and implementation progress.
Structure â Exactly Three Sections
# [Feature Name] â Big Picture
**Selected shape:** [Letter] ([Short description])
---
## Frame
### Problem
- [Pain points as bullet list]
### Outcome
- [Success criteria as bullet list]
---
## Shape
### Fit Check (R Ã [Selected Shape])
[Fit check table]
### Parts
[Parts table with Flag column]
### Breadboard
[Full Mermaid breadboard]
---
## Slices
[Sliced breadboard â Mermaid diagram with slice boundaries]
[Slices grid â markdown table]
Frame Section
Copy Problem and Outcome from the Frame doc or shaping doc. Use bullet lists.
## Frame
### Problem
- Users cannot search letter content to find what they're looking for
- When users navigate to a letter detail and come back, pagination state is lost
- Page refresh loses any filter state
### Outcome
- Users can search letters by content directly from the index page
- Search and scroll state survives page refresh
- Browser back button restores previous state
Shape Section
Contains three parts: Fit Check, Parts, and Breadboard.
Fit Check (R Ã [Shape]):
Show only the selected shape column. Full requirement text in every row.
### Fit Check (R Ã F)
| Req | Requirement | Status | F |
|-----|-------------|--------|---|
| R0 | Make letters searchable from the index page | Core goal | â
|
| R2 | Navigate back to pagination state when returning from post detail | Must-have | â
|
| R3 | Navigate back to search state when returning from post detail | Must-have | â
|
Parts table:
Include the Flag column for flagged unknowns. Use “Flag” as the header, â ï¸ in flagged rows. Center-align with :----:.
### Parts
| Part | Mechanism | Flag |
|------|-----------|:----:|
| **F1** | Create `letter-browser` widget (component, def, register in CMS) | |
| **F2** | URL state & initialization (read `?q=` `?page=`, restore on load) | |
| **F3** | Search input (debounce, min 3 chars, triggers search) | â ï¸ |
Breadboard:
Include the full Mermaid breadboard from the shaping doc. Use flowchart TB (top-to-bottom). Include:
- Place subgraphs (
subgraph lettersIndex["PLACE: Letters Index Page"]) - Component subgraphs nested inside places
- UI affordances (U1, U2…) and Non-UI affordances (N1, N2…)
- Wires Out as solid arrows (
-->) - Returns To as dashed arrows (
-.->) - Node styling (pink for UI, grey for Non-UI)
Always include a legend after the breadboard:
**Legend:**
- **Pink nodes (U)** = UI affordances (things users see/interact with)
- **Grey nodes (N)** = Code affordances (data stores, handlers, services)
- **Solid lines** = Wires Out (calls, triggers, writes)
- **Dashed lines** = Returns To (return values, data store reads)
Slices Section
Contains two parts: Sliced Breadboard and Slices Grid.
Sliced Breadboard:
A modified version of the main breadboard with slice boundaries shown as colored subgraphs.
Key patterns:
- Slice subgraphs:
subgraph slice1["V1: SLICE NAME"]â wrap each slice’s affordances - Invisible links for ordering:
slice1 ~~~ slice2â forces V1 before V2 in layout - Colored fills: Each slice gets a distinct fill color and matching stroke
- Transparent nested subgraphs: Components inside slices use
fill:transparentto inherit the slice color
flowchart TB
subgraph slice1["V1: WIDGET WITH REAL DATA"]
subgraph letterBrowser1["letter-browser"]
U2["U2: loading spinner"]
U3["U3: no results msg"]
N3["N3: performSearch"]
end
N4["N4: rawSearch"]
end
subgraph slice2["V2: SEARCH WORKS"]
U1["U1: search input"]
N1["N1: activeQuery.next"]
end
%% Force slice ordering (invisible links)
slice1 ~~~ slice2
%% Cross-slice wiring
U1 -->|type| N1
N1 --> N3
N3 --> N4
%% Slice boundary styling (colored fills)
style slice1 fill:#e8f5e9,stroke:#4caf50,stroke-width:2px
style slice2 fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
%% Nested subgraphs transparent (inherit slice color)
style letterBrowser1 fill:transparent,stroke:#888,stroke-width:1px
%% Node styling
classDef ui fill:#ffb6c1,stroke:#d87093,color:#000
classDef nonui fill:#d3d3d3,stroke:#808080,color:#000
class U1,U2,U3 ui
class N1,N3,N4 nonui
Slice color palette (use consistently):
- V1:
fill:#e8f5e9,stroke:#4caf50(green) - V2:
fill:#e3f2fd,stroke:#2196f3(blue) - V3:
fill:#fff3e0,stroke:#ff9800(orange) - V4:
fill:#f3e5f5,stroke:#9c27b0(purple) - V5:
fill:#fff8e1,stroke:#ffc107(yellow) - V6:
fill:#fce4ec,stroke:#e91e63(pink)
Slices Grid:
A markdown table with an empty header row. Aim for 2 rows à 3 columns (6 slices) or 3 rows à 3 columns (9 slices).
Each cell contains:
- Linked title:
**[V1: SLICE NAME](./feature-v1-plan.md)**(link to slice plan file) - Status:
â COMPLETEorâ³ PENDING - Bullet list: 3-4 key items using
â¢(bullet + space) - Demo: Italicized description of what can be demoed
- Use
<br>for line breaks within cells - Use
⢠as a spacer bullet to equalize cell heights
| | | |
|:--|:--|:--|
| **[V1: WIDGET WITH REAL DATA](./letter-search-v1-plan.md)**<br>â
COMPLETE<br><br>⢠Create letter-browser widget<br>⢠Register in CMS system<br>⢠rawSearch() with parentId<br>⢠Loading, empty, results UI<br><br>*Demo: Widget shows real letters* | **[V2: SEARCH WORKS](./letter-search-v2-plan.md)**<br>â
COMPLETE<br><br>⢠Search input + activeQuery<br>⢠Debounce 90ms, min 3 chars<br>⢠Query passed to rawSearch()<br>⢠<br><br>*Demo: Type "dharma", results filter live* | **[V3: INFINITE SCROLL](./letter-search-v3-plan.md)**<br>â
COMPLETE<br><br>⢠Intercom scroll subscription<br>⢠appendNextPage()<br>⢠Re-arm scroll detection<br>⢠<br><br>*Demo: Scroll down, more letters load* |
| **[V4: URL STATE](./letter-search-v4-plan.md)**<br>â
COMPLETE<br><br>⢠?q= and ?page= in URL<br>⢠initializeState() on load<br>⢠Router.navigate() on change<br>⢠Back button restores state<br><br>*Demo: Search, refresh, back all restore state* | **[V5: COMPACT MODE](./letter-search-v5-plan.md)**<br>â
COMPLETE<br><br>⢠data.compact config<br>⢠Conditional scroll subscribe<br>⢠"See all X results" link<br>⢠Navigate with ?q=query<br><br>*Demo: compact=true shows fixed items + "See all" link* | **V6: CUTOVER**<br>ⳠPENDING<br><br>a) Local validation + R14<br>b) Deploy code (safe)<br>c) CMS cutover<br>d) Code cleanup<br><br>*TODO: Typesense index job* |
Note: Slices that are pending don’t need links yet. Add links when the slice plan is created.
Creating a Big Picture â Step by Step
-
Create the file:
[feature]-big-picture.mdin the shaping docs folder -
Add header: Feature name and selected shape with short description
-
Frame section: Copy Problem and Outcome from Frame doc or shaping doc
-
Shape section:
- Copy Fit Check from shaping doc, showing only selected shape column
- Copy Parts table, add Flag column if not present (mark any unknowns with â ï¸)
- Copy full Mermaid breadboard from shaping doc
- Add legend after breadboard
-
Slices section (after slicing is complete):
- Create sliced breadboard by wrapping affordances in slice subgraphs
- Add invisible links between slices for ordering
- Add colored fills to slice subgraphs
- Make nested component subgraphs transparent
- Create slices grid table with linked titles, status, bullets, demos
-
Maintain consistency: When lower-level docs change, update the Big Picture to reflect those changes (see Multi-Level Consistency)
Document Lifecycle
Frame (problem/outcome)
â
Shaping (explore, detail, breadboard)
â
Slices (plan implementation)
â
Big Picture (summarizes all of the above)
Frame can be written first â it captures the “why” before any solution work begins. It contains:
- Source â Original requests, quotes, or material that prompted the work (verbatim)
- Problem â What’s broken, what pain exists (distilled from source)
- Outcome â What success looks like (high-level, not solution-specific)
Capturing Source Material
When the user provides source material during framing (user requests, quotes, emails, slack messages, etc.), always capture it verbatim in a Source section at the top of the frame document.
## Source
> I'd like to ask again for your thoughts on a user scenario...
>
> Small reminder: at the moment, if I want to keep my country admin rights
> for Russia and Crimea while having Europe Center as my home center...
> [Additional source material added as received]
---
## Problem
...
Why this matters:
- The source is the ground truth â Problem/Outcome are interpretations
- Preserves context that may be relevant later
- Allows revisiting the original request if the distillation missed something
- Multiple sources can be added as they arrive during framing
When to capture:
- User pastes a request or quote
- User shares an email or message from a stakeholder
- User describes a scenario they were told about
- Any raw material that informs the frame
Shaping doc is where active work happens. All exploration, requirements gathering, shape comparison, breadboarding, and fit checking happens here. This is the working document and ground truth for R, shapes, parts, and fit checks.
Slices doc is created when the selected shape is breadboarded and ready to build. It contains the slice breakdown, affordance tables per slice, and detailed wiring.
Big Picture is created once a shape is selected. It summarizes the Frame, Shape, and (once slicing is done) Slices. It stays in sync with the ground truth documents throughout implementation.
File Management
- Shaping doc: Update freely as you iterate â this is the ground truth
- Slices doc: Created when ready to slice, updated as slice scope clarifies
- Slice plans: Individual files (V1-plan.md, etc.) with implementation details
- Big Picture: Created when shape is selected, updated to reflect lower-level changes
Keeping Documents in Sync
See Multi-Level Consistency at the top of this document. Changes at any level must ripple to affected levels above and below.
Slicing
After a shape is breadboarded, slice it into vertical implementation increments. Use the /breadboarding skill for the slicing process â it defines what vertical slices are, the procedure for creating them, and visualization formats.
The flow:
- Parts â high-level mechanisms in the shape
- Breadboard â concrete affordances with wiring (use
/breadboarding) - Slices â vertical increments that can each be demoed (use
/breadboardingslicing section)
Key principle: Every slice must end in demo-able UI. A slice without visible output is a horizontal layer, not a vertical slice.
Document outputs:
- Slices doc â slice definitions, per-slice affordance tables, sliced breadboard
- Slice plans â individual implementation plans (V1-plan.md, V2-plan.md, etc.)
Example
User is shaping a search feature:
## Requirements (R)
| ID | Requirement | Status |
|----|-------------|--------|
| R0 | Make items searchable from index page | Core goal |
| R1 | State survives page refresh | Undecided |
| R2 | Back button restores state | Undecided |
---
## C2: State Persistence
| Req | Requirement | Status | C2-A | C2-B | C2-C |
|-----|-------------|--------|------|------|------|
| R0 | Make items searchable from index page | Core goal | â | â | â |
| R1 | State survives page refresh | Undecided | â
| â
| â |
| R2 | Back button restores state | Undecided | â
| â
| â
|
**Notes:**
- C2-C fails R1: in-memory state lost on refresh
- C2-B satisfies R2 but requires custom popstate handler