Skip to content
Back to skills

Ui Picker

ASecurity

UI shell and component semantics. Use when building a product page (list, dashboard, settings, detail, agent-admin), or when the wrong template and Badge-Tag pairing is about to be coded.

  • 4 stars
  • 0 votes
  • 1 copy
  • 8 views
  • Added September 5, 2026
ai-agentspythonrustgoshellapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add Bandersnatch0x/design-playbook --skill ui-picker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ui Picker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ui Picker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bandersnatch0x-ui-picker/badge)](https://www.skillsdirectory.com/skills/bandersnatch0x-ui-picker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ui-picker
description: UI shell and component semantics. Use when building a product page (list, dashboard, settings, detail, agent-admin), or when the wrong template and Badge-Tag pairing is about to be coded.
---

# ui-picker

Before code: map the job to a **template** (shell) and **component semantics**. Appearance follows meaning.

## Steps

### 1. Density + scene

Choose density (console-tight vs marketing-loose) and scene class (list / detail / settings / dashboard / editor / agent-admin / …).

When a verified `.scratch/<run>/design-baseline/state.json` binds a baseline (`status: ready` from `design_baseline.verify`), read that binding path first (`baseline.path`, usually `DESIGN.md` or `.stitch/DESIGN.md`). It is the project-specific authority for atmosphere, visual roles, density, layout, motion, and component conventions. Preserve it unless the requested change explicitly revises the baseline.

Collect read-only component candidates from two sources, in this order:

1. observed component paths in a verified baseline's `## Component Stylings` declaration, when that declaration exists;
2. non-duplicate paths from run-local `design-baseline/evidence.json` `components`, when that file exists.

Use the second source when it is present, including waived or draft runs that never produced a `status: ready` binding. Those paths remain candidates only; they never substitute for a ready baseline or become design authority.

When `.scratch/<run>/reference/contract.md` exists (ADR-0011), read its **Visual cues for ui-picker**, Keep and Change, and Do not copy / exclusions. Use them as input for density, scene, region weight, and risks, never as hex tokens or as a license to copy brand chrome.

**Done when:** one scene label and one density choice are explicit. A bound baseline is cited by path + SHA-256. If a reference contract exists, the decision report's risks or exclusions surface its Do not copy / brand risks (path citation is enough).

### 2. Template

Read [`references/template.md`](references/template.md). Assign main / side / action / status regions.

**Done when:** each region maps to a duty from `spec` L2 (or a stated gap in the spec).

### 3. Components

Read [`references/components.md`](references/components.md). For each field and action, pick by **role** (status vs category vs confirm vs detail).

For each material role, match the candidate list against source evidence and repository conventions. Then record one of these outcomes inside the existing
`components:` value in the decision report:

- `reuse <path> (<one-line matching reason>)` when the declared component fits;
- `extend <path> (<one-line missing-variant reason>)` when it is close but needs
  a documented variant. Or
- `new (<one-line gap reason>)` when no trustworthy candidate exists.

Include the candidate path in the value when one exists. A weak or missing
candidate takes the explicit `new` path. Do not invent a reuse claim. Do not
edit, move, publish, extract, or commit a component during this step, and do
not add a new top-level decision-report key or component repository.

Load only if needed:

- For business risk and desensitization, read [`references/domain.md`](references/domain.md)
- For token roles while deciding surfaces, read verified `<binding.path>` first, then generic fallback [`references/design.md`](references/design.md)

**Done when:** every primary datum and action has a named component role. Each material role records `reuse`, `extend`, or `new` inside `components:` with a candidate path or an explicit gap reason. Easy-mix pairs (Badge and Tag, Dialog and Drawer, Dropdown, Menu, and Command) are resolved in writing.

### 4. Decision report

Write, then wait for confirmation if the user is in the loop:

```text
design-baseline: <binding.path> sha256:<digest> | waived:<reason>
scene:
density:
template:
regions: …
components: primary-action -> reuse src/ui/Button.tsx (matching primary variant); status -> extend src/ui/Badge.tsx (needs warning state); empty-state -> new (no declared candidate)
baseline-changes: none | <explicitly approved change>
risks: …
```

`baseline-changes: none` tolerates a trailing same-line note (the machine face reads the `none` value token). Substantive commentary goes on its own line instead.

**Done when:** the report exists, records the bound baseline or explicit waiver, carries the precheck lines below, and coding has not started without it. Machine check right after writing the report: `python scripts/g10_design_decisions.py .scratch/<run>/decision-report.md`, do not wait for the end-of-run `validate_run.py` sweep.

#### Precheck (record-only)

After the existing top block and before any DD entry, record the five precheck dimensions below. Use the available brief, baseline, region plan, and candidate descriptions. Do not claim rendered inspection before Fill. These record-only checks add no gate and never change a DD tier.

| Dimension | Judgment question |
| --- | --- |
| Brief fit | Does every region and material style choice trace to a named brief fact or contract field? |
| Information order | Does the reading order match the order in which the user makes decisions in this task? |
| Action completeness | Does each primary action have its next state and a recovery path? |
| Product specificity | Would this same shell and component set serve an unrelated brief unchanged? |
| Visual restraint | Does emphasis stay inside the declared hierarchy budget? |

Each line takes `pass`, `at-risk`, or `not-applicable`, plus one sentence of evidence. `not-applicable` needs an observable reason.

```text
precheck:
  brief-fit: pass — <evidence>
  information-order: at-risk — <evidence>
  action-completeness: pass — <evidence>
  product-specificity: at-risk — <evidence>
  visual-restraint: not-applicable — <reason>
```

Keep each `at-risk` result in the report's risks line with its evidence. A risk is not proof of a default template. When comparison shows the same composition would serve an unrelated brief unchanged, revisit the candidate deck and add a brief-specific alternative. Compare it within the existing DD tier and answer `DECIDE-01@1` for compare or explore entries.

#### DD entry blocks (append after the top block)

The top block above is the Fill consumption face and stays byte-identical. When a choice needs a record a reviewer could challenge, append versioned DD entry blocks after it (`## DD-0001, <question>` + one yaml field block each. Format and gate rules in [`references/decisions.md`](references/decisions.md)). Tier every recorded decision first:

| Tier | Trigger | Who decides | Recording duty |
| --- | --- | --- | --- |
| record (R) | single reasonable choice, or local implementation inside confirmed declarations | agent | one-line rationale + constraint reference |
| compare (C) | 2-3 substantive candidates inside the baseline, no E criterion hit | agent | candidates + comparison axes + trade-off + rejection reasons |
| explore (E) | any E criterion: identity drift from the bound baseline, region and weight re-composition, a T3 route from shaping, an R3 challenge, or a baseline conflict | **user** | full entry + user confirmation |

Every compare or explore entry answers the **Anti-default check** with brief-specific facts inside the entry. Ask "is this the direction I would produce for any similar brief?" Signals and the dated default observations live in `DECIDE-01@1` ([`../design-playbook/references/rules.md`](../design-playbook/references/rules.md)). Record-tier entries and point-fix runs are exempt. An explore entry's rationale also names the direction's **Memorable element**, the one thing this direction is remembered by.

Baseline-internal small choices never trigger full exploration. E-tier confirmation rides the preview transaction when the adapter is present (`options` = candidate labels, `report_ref` = this report; link the entry to the transaction `decision_id`). When absent, record `kind: user` + `report-batch` in the entry's confirmation block. R3 challenges revise by a new entry that `supersedes` the retired one, history is never rewritten. `scripts/g10_design_decisions.py` (G10, via `validate_run.py`) checks the machine face.

### 5. State coverage enumeration

Before acceptance, enumerate the reachable states on a **temporary route** that is not part of the shipped route table, and render `empty`, `loading`, `error`, `permission`, and `dense`. Each render yields one **candidate L6 evidence row** — criterion text plus artifact path — for `ux-spec` to declare and `ui-evaluator` to accept or reject. A state that cannot be rendered records an observable gap reason instead of disappearing.

**Done when:** each of the five states has a render path or an observable gap reason. This is the step that keeps "happy path only" from arriving at acceptance; the resulting observable routes home through the recirculate map's R2 row, never a fresh penalty.

### Branch, structure still open

If template is underdetermined, offer 2–3 IA variants (same `spec`, different main-region weight), one-line tradeoff each, pick one, then complete step 4. This branch is the C tier above: record it as a `tier: compare` DD entry instead of leaving the trade-off in conversation only.

## Defaults that hold

- Brand color as token and role, not a hex literal.
- Easy-mix pair semantics and shell prohibition rules live in `references/components.md` and `references/template.md`, resolve against those tables, not from memory.

Files in this skill

  • SKILL.md6.8 KB
  • references/components.md1.1 KB
  • references/decisions.md8.6 KB
  • references/design.md660 B
  • references/domain.md836 B
  • references/template.md878 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.