Communitygithub.com

Bandersnatch0x/design-playbook

Design I/O plugin for Claude Code & coding agents — declarations + contracts that make UI generation constrained, reviewable, and recirculatable. Not a style pack; composes with ui-ux-pro-max + frontend-design.

O que é design-playbook?

design-playbook is a Claude Code agent skill that design I/O plugin for Claude Code & coding agents — declarations + contracts that make UI generation constrained, reviewable, and recirculatable. Not a style pack; composes with ui-ux-pro-max + frontend-design.

Funciona comClaude Code~Codex CLI~Cursor
npx skills add Bandersnatch0x/design-playbook

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

ux-spec

Write a six-layer spec.md: the functional declaration for what must be true. Visual skin, tokens, and Badge-vs-Tag choices are out of scope.

Steps

1. Pin L1

From the ask, fix the user-visible goal, target user, in-scope scenes, non-goals, and always/ask/never boundaries. Ask only when a missing answer materially changes one of them; otherwise record a conservative assumption.

Done when: a stranger could state the intended outcome, what the page is not for, and which actions require a user decision.

2. Expand L2–L4

  • L2 regions and duties
  • L3 states and transitions
  • L4 control behavior per relevant state

Use the headings in references/spec-template.md.

Done when: every primary user job has a state path; every region has an owner duty.

3. Force L5–L6

  • L5: empty, loading, error, permission — each with what the user can do next
  • L6: checkable acceptance; every top-level item explicitly contains Given, then When, then Then, with the proof required for that item

Evidence is criterion-shaped: visible states require rendered inspection at named target viewports; behavior requires an interaction trace or automated check; implementation health uses the relevant tests, type/lint checks, or affected build when available. Planning-only work names the future proof instead of claiming it exists. Where the proof is a runtime state, name the capture seed — the state to capture (e.g. "error-state screenshot") and the capture type. This is the seed the observe* step derives a capture plan from (Given/When → state+actions, Then → required); do not write selectors, URLs, or actions here — those are derived later.

Done when: L5 is not a single word (“loading”); every L6 item is a top-level list item that uses Given -> When -> Then in that order, can be ticked pass/fail without taste debate, and says what evidence will prove it (naming the capture seed where the proof is a runtime state).

4. Emit

Output the full spec.md using the template structure. Stop. Do not scaffold UI or pick components here.

Done when: one complete markdown spec exists for the next pipeline step (ui-picker / fill).

Scope fence

InOut →
Functional truth, flows, edges, acceptanceColor/type/motion → design / craft-guard
Risk/secrets meaning → domain
Component identity → ui-picker / components

Habilidades Relacionadas