/builder-design:ai-states-requiredfrom builder-design
Use before writing any code for an AI feature's UI. All 7 states must be designed and documented before implementation begins. Blocks "we'll add loading states later" completions.
Ships in builder-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AN AI FEATURE WITHOUT DESIGNED STATES IS HALF A FEATURE.
"We'll add error states later" means users see broken UI in production.
"The happy path looks great" is not a UI design — it is a demo.
All 7 states designed, documented, and approved IS a complete AI feature design.
Every AI feature touchpoint must have a designed state for each:
| State | When It Appears | What Users Need |
|---|---|---|
| Loading | Request sent, waiting for first token | Progress signal, estimated wait, cancel option |
| Streaming | Tokens arriving, response building | Readable partial content, clear "generating" signal |
| Success | Generation complete, full response available | Result, confidence signal, actions (copy, retry, share) |
| Error | API failure, timeout, server error | Human error message, recovery action, no raw stack trace |
| Partial | Model answered but incompletely | Clear indication of incompleteness, option to continue |
| Uncertain | Low confidence, hedged response | Uncertainty signal, source citation, human review option |
| Empty | No input yet / no history / first run | Guidance, examples, prompt suggestions — not a blank void |
Trigger before:
Map every place the user will see model output in this feature:
Each touchpoint needs its own 7-state design.
For each state, define:
State: Error
Visual: Red border on output area, error icon (⚠), inline message
Copy: "Something went wrong generating your response. Try again or refresh."
Actions: [Try again] [Dismiss]
Transition: Retry → Loading state; Dismiss → Empty state
Create design/ai-states/<feature-name>.md with the state map:
## Feature: <name>
### Touchpoint: <main output area>
| State | Visual | Copy | Actions | Transition |
|---|---|---|---|---|
| Loading | Skeleton (3 lines) | "Generating..." | [Cancel] | Cancel → Empty; First token → Streaming |
| Streaming | Streaming cursor, partial text | Live text | [Stop] | Complete → Success; Error → Error |
| Success | Full response | — | [Copy] [Retry] [👍 👎] | Retry → Loading |
| Error | Red border, inline message | "Something went wrong. Try again." | [Try again] | → Loading |
| Partial | Dashed border, "▾ Response cut off" | "Response was cut off. Continue?" | [Continue] [Accept] | Continue → Loading |
| Uncertain | Amber border, ⚠ badge | "Low confidence — verify this." | [Show sources] | — |
| Empty | Prompt suggestions, example queries | "Ask anything about X…" | [Example 1] [Example 2] | User types → Loading |
Before sign-off, verify each of these works:
These thoughts mean states were not designed — stop:
When ai-states-required is satisfied, state it like this:
AI states designed.
Feature: <name>
Touchpoints covered: <N>
State map: design/ai-states/<feature>.md ✓
All 7 states documented for each touchpoint (must match state map file — no vague descriptions):
Loading: <named element: skeleton/spinner/pulse + exact copy text> ✓
Streaming: <cursor type + exact copy text> ✓
Success: <actions listed: Copy / Retry / 👍 👎 + copy text if any> ✓
Error: <border colour + icon + exact error copy + recovery action label> ✓
Partial: <dashed/truncated indicator + exact copy + continuation action label> ✓
Uncertain: <amber bar / ⚠ badge + exact verify copy + next-action label> ✓
Empty: <illustration type + exact heading copy + N example prompts listed> ✓
Edge cases reviewed: stream interruption, empty response, duplicate submit ✓
AI features fail visually in ways deterministic software does not. A form either submits or fails. An LLM call can stream, stall, truncate, hallucinate, refuse, or produce an empty response — and users see all of these. Designing only the success state means every other state ships as broken UI.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/accessible-ai-outputUse before shipping any UI that renders AI-generated content. Dynamic model output requires ARIA live regions, reading order, and cognitive load review that static content does not. Blocks "we'll do accessibility later" completions./ai-component-patternsUse when designing or implementing any of the 6 core AI UI components. Each has specific patterns, pitfalls, and required sub-components that generic UI components don't address./ai-onboarding-designUse when designing first-run flows and empty states for AI features. AI onboarding has specific requirements — model capability communication, trust building, and graceful degradation when the model doesn't know — that generic onboarding patterns miss.Other plugins' skills for the same job
builder-design@rbraga01 is listed by rbraga01/a-team — review the source before installing
npx claudepluginhub rbraga01/a-team --plugin builder-design