design
The build helper for creating good UI with the Agentic Experience Platform (AXP). A collaborator that clarifies intent, composes the interface from the AXP references, and pressure-tests it against its real states.
- License 许可
- Apache-2.0
- 所属仓库
- torkelo/scenes2
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- design
- metadata
- { "source": ".hatch/_skills/design/SKILL.md", "generated": "hatch@v1.2.0" }
- description
- The build helper for creating good UI with the Agentic Experience Platform (AXP). A collaborator that clarifies intent, composes the interface from the AXP references, and pressure-tests it against its real states.
03 SKILL.md 正文
design
The helper for building good UI with the Agentic Experience Platform (AXP). Not a documentation index — the AXP references are served through the MCP for that. This is the workflow: clarify what's being built, compose the interface from the AXP references, and pressure-test it against its real states. Build one solution and iterate on it with the user. Work with them, not ahead of them.
Clarify before you build
Don't guess at a brief. If any of these isn't specified, ask the user and wait for the answer — a wrong assumption here wastes the whole build:
- Who is the user, and what are they trying to get done on this screen?
- What is the single primary action? What's secondary?
- What does the real data look like, and what's its worst case — the longest name, none at all, hundreds of rows?
- Which states must exist: empty, loading, error, partial, success?
- New screen, or a change to an existing one? If a change, what must stay as it is?
Ask the questions you can't answer from the task, then build once they're settled. Asking a good question is not a failure to act; guessing wrong is.
Build in this order
Each step names the reference that settles it. Fetch that reference with get_styling_doc({ name })
(the slug for each name is in The references below) before you build the step; the early decisions
constrain the later ones.
- Inventory primitives: if
@grafana/base-uiis installed, calllist_base_ui_componentsandget_componentfor the primitives you need. → Components & controls - Read the screen — the data, the task, what comes first. → Foundations
- Pick the page type — list, detail, settings, overview, entity, creation. → Page structure
- Frame it — the fixed shell, the one region that scrolls, the measure, the regions. → Page structure
- Place things on surfaces — page, tray, card, popover; and what must never nest. → Surfaces & depth
- Apply the detail — color for meaning, type for hierarchy, the row / badge / selection treatments, motion. → Color · Typography · Components & controls · Motion
Throughout, hold the result against Taste (design-taste) — the judgment that raises a correct
page to a good one.
Test with your worst content
Before calling it done, render it with the content that breaks layouts: the longest name, a two-line title, an empty list, a failed request, forty rows. Why: dynamic content is where interfaces fail, and finding it now costs a token — finding it in production costs a user.
Hard rules
Orientation only; each is settled in its reference.
- The viewport is a fixed frame: one region scrolls, chrome stays put — never a whole document that scrolls. → Page structure
- Tokens only: every color, space, radius, and type value comes from
getDesignTokens(). Never a raw hex, never a hand-writtenvar(--…). → Surfaces & depth, Color - Error / failed uses the same 15% tint recipe as success:
red, orBadge variant="destructive". Neverlegacy.colors.error.*. → Color - Color carries meaning; neutral is the default. An accent on something that isn't a state, a selection, or a link is wrong. → Color
- Edges are soft: a step in fill, a 1px ring, or a quiet hairline. Never a hard or black border. → Surfaces & depth
- Hierarchy is weight and tone before size. → Typography
The references
Fetch any with get_styling_doc({ name }), or read under docs/design/.
- Foundations (
design-foundations) — how to read a screen, and the cross-cutting principles. - Page structure (
design-page-structure) — the six page types, the fixed shell and single scroll region, the measure, region dividers, empty states. - Surfaces & depth (
design-surfaces) — surface roles, the tray, what never nests, soft edges, concentric radii, dark-mode collisions. - Color (
design-color) — functional color, status tones, badges, links, selection color. - Typography (
design-typography) — the size steps, weight hierarchy, tabular numerals. - Components & controls (
design-components) — control surfaces, and the row, selection, badge, hover, and inline-message treatments. - Motion (
design-motion) — durations, easing, and the reduced-motion guard. - Taste (
design-taste) — the judgment tier that raises a correct page to a good one: expression, craft, deliberate composition, the reference family. Read it as a baseline, not a step.
04 同仓库更多 Skills
validate-plugin
validate a Grafana plugin using the official Grafana plugin validator
build-plugin
build a Grafana plugin using the standard build process (frontend and backend if applicable)
validate-plugin
暂无简介
build-plugin
暂无简介
stop-slop
Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.
snag-fixer
Lightweight agent for quick fixes, tweaks, and small improvements. Optimized for single-task focused work without bloating context. Used by snag workflow for sequential fix processing.