一键导入
statechart
Turn a selected stateful portion of a breadboard into a transition table and Mermaid statechart without changing the breadboard's authority.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Turn a selected stateful portion of a breadboard into a transition table and Mermaid statechart without changing the breadboard's authority.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Prepare relevant planning artifacts, including optional statechart and Dumplink context, for agent implementation work without overloading context.
Collaboratively shape a problem and compare solution directions before implementation.
Create a framing document from notes, messages, or conversation transcripts.
Map a chosen solution into places, affordances, consequences, stores, and wiring.
Reconcile an attached image, screenshot, wireframe, mockup, whiteboard, or hand-drawn sketch with existing frame, shaping, and breadboard artifacts. Use when a user drops in a visual, says "see this sketch" or "we are missing something," asks what the visual changes, or wants visual evidence incorporated without silently changing requirements, scope, or the selected shape.
Reflect on a breadboard by syncing it to implementation and finding design smells.
| name | statechart |
| description | Turn a selected stateful portion of a breadboard into a transition table and Mermaid statechart without changing the breadboard's authority. |
Use this skill when an accepted breadboard contains meaningful state complexity and the team needs a more precise behavioral view before implementation.
Derive a bounded statechart from selected breadboard rows so humans and agents can see:
The output is a derived view. The breadboard tables remain the source of truth.
Use a statechart for a selected scope or slice with behavior such as:
Do not use this skill for a simple navigation sequence when the breadboard already makes the behavior clear.
Use:
Do not derive a statechart from raw notes when no breadboard has been accepted.
Breadboard tables = source of truth
State-transition table = derived behavioral interpretation
Mermaid statechart = visual projection
Preserve breadboard IDs. Never silently add behavior to the breadboard.
When the statechart requires an event, guard, effect, or state that is missing from the breadboard:
A meaningful condition in which the user or system has a distinct set of possible next actions or outcomes.
A state may come from:
Do not turn every place, component, or stored field into a state.
Something that may cause a transition.
Classify the trigger when useful:
user — a person actsautomatic — the system proceeds as soon as conditions are metmessage — an external system or asynchronous process respondstime — a deadline, delay, or timeout occursA condition that must be true before the transition can occur.
Examples:
The product-relevant consequence of taking the transition.
Examples:
A change from one state to another caused by an event, optionally constrained by a guard and accompanied by an effect.
Use parent states only when they make a complex stateful area easier to collapse and understand.
Do not invent hierarchy from visual proximity alone. Ground it in breadboard places, subplaces, chunks, or an explicitly selected scope.
Wires Out, and Returns To rows.ST1, while preserving the source breadboard IDs.Name the selected breadboard scope or slice and the source artifact.
| State ID | Source breadboard IDs | State | Parent state | Meaning | Status |
|---|---|---|---|---|---|
| ST1 | P2 | Autopay setup | Billing | User is configuring Autopay | explicit |
Use Status values:
explicit — directly supported by the breadboardinferred — reasonable interpretation that requires confirmationmissing — needed for a complete model but absent from the breadboard| Transition ID | From | Trigger type | Event | Guard | Effect | To | Source wiring | Status |
|---|---|---|---|---|---|---|---|---|
| TR1 | ST1 | user | Submit | Details valid | Request authorization | ST2 | U4 → N4 | explicit |
Use stateDiagram-v2 and preserve the state IDs from the inventory.
stateDiagram-v2
ST1: Autopay setup
ST2: Authorization pending
ST3: Autopay active
ST4: Authorization failed
ST1 --> ST2: Submit [details valid]
ST2 --> ST3: Provider approves
ST2 --> ST4: Timeout
When imported canonical IDs contain hyphens, Mermaid identifiers may replace them with underscores, but labels and tables must retain the canonical IDs.
For every unsupported inference, state:
Before finishing, verify:
Do not:
# [Project / scope] — Statechart
## Source
- Breadboard:
- Scope or slice:
## State inventory
[table]
## Transition table
[table]
## Mermaid statechart
[diagram]
## Gaps and proposed breadboard updates
- ...