ui-craft
Skill0 starsChanged 5 months agoMITView on GitHub
Use when: building or restyling UI (page, screen, component set) and the result must look designed rather than AI-generated — tokens first, real content, every state, purposeful motion, WCAG 2.2 AA, verified in a real browser. Builds from DESIGN.md (run ui-direction first when none exists). Stack-agnostic: adapts to the project's Tailwind / CSS modules / component library. Triggers: "build this page", "сверстай", "make this UI look good", "implement the design", "restyle", "/ui-craft". NOT for: choosing the visual concept (ui-direction), reviewing a diff (review-ui-ux), React/MobX architecture (review-frontend), or measuring layout regressions (review-layout).
18 other projects use a version of this.
Adopted by
Most recently taken up by
- Markssuave/Markssuave-Agent-skillstheir own version, first seen Nov 8, 2026
- podo/design-agent-skillstheir own version, first seen Nov 8, 2026
- twglhk/gamedev-agent-skillstheir own version, first seen Nov 8, 2026
- compozy/compozytheir own version, first seen Nov 7, 2026
- joaoguirunas/team-ostheir own version, first seen Nov 1, 2026
- mofirojean/angular-ui-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use writing-for-agents, prototype and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillwriting-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
Also in 3 projects that use this
GoogleSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
- +1 more from google
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- compozy/compozy★ 2.9ksame name
- pedronauck/skills★ 649same name
- educlopez/ui-craft★ 441same name
- mofirojean/angular-ui-skills★ 33same name
- podo/design-agent-skills★ 32same name
- ConnorGriffin/skills★ 21same name
- Suge8/friedbun★ 12same name
- Achref23illi/ui-craft★ 7same name
- joaoguirunas/team-os★ 6same name
- alexderz/agentic-toolbox★ 5same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autodoc-analystSkill
- autodoc-architectSkill
- autodoc-assemblerSkill
- autodoc-orchestratorSkill
- autodoc-scannerSkill
- autodoc-writerSkill
- brainstormSkill
- brd-creatorSkill
- caveman-modeSkill
- changelogSkill
- claude-md-managementSkill
- code-ai-reviewSkill
- code-boss-reviewSkill
- code-mobx-store-reviewSkill
- code-reviewSkill
- code-style-reviewSkill
- code-verifierSkill
- commitSkill
- constraint-driven-developmentSkill
- context-collectorSkill
- db-migrateSkill
- dependency-updateSkill
- deploySkill
- doubt-driven-developmentSkill
- feature-analyzerSkill
- feature-devSkill
- fsd-creatorSkill
- gproject-consistency-checkerSkill
- gproject-discoverySkill
- gproject-orchestratorSkill
- gproject-patterns-researcherSkill
- gproject-plannerSkill
- gproject-problem-definerSkill
- gproject-spec-writerSkill
- gproject-stack-advisorSkill
- hookifySkill
- iagoSkill
- interviewerSkill
- interviewSkill
- issue-analyzerSkill
- job-documenterSkill
- job-orchestratorSkill
- perf-checkSkill
- plan-gatekeeperSkill
- prd-creatorSkill
- pr-issue-documenterSkill
- pr-review-commentsSkill
- prSkill
- pushSkill
- review-architectureSkill
- review-backendSkill
- review-clean-codeSkill
- review-core-boundariesSkill
- review-flow-graphSkill
- review-frontend-conventionsSkill
- review-frontendSkill
- review-greptileSkill
- review-highloadSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 69
Before any component, define or extend semantic tokens:
- Distinctive: line 73
No raw hex in components.
- Very specific: line 104
Every interactive element: default, hover (only where clickable), :focus-visible, active, disabled, loading.
- Distinctive: line 133
Look at the screenshots, not at the code.
- Distinctive: line 139
No browser available → say so explicitly and list the checks that were not run.
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI Craft — build it designed, then look at it
Implementation skill. The concept lives in DESIGN.md; the guard rails live in
rules/core/ui-anti-slop.mdc (~/goodai-base/rules/core/ui-anti-slop.mdc when running outside goodai-base). This skill turns both into code and refuses to call it done
until it has looked at real renders.
Workflow
ui-craft Progress:
- [ ] Step 0: Gate — DESIGN.md exists (else run ui-direction or derive a minimal one)
- [ ] Step 1: Read the stack and existing tokens/components
- [ ] Step 2: Tokens first
- [ ] Step 3: First screen at desktop + phone
- [ ] Step 4: Remaining sections/screens with varied structure
- [ ] Step 5: States, forms, interaction
- [ ] Step 6: Motion and accessibility pass
- [ ] Step 7: Browser verification loop (≤3 rounds)
- [ ] Step 8: Pre-delivery checklist and honest reportStep 0 — Gate
DESIGN.mdpresent → read it fully; it overrides personal taste and this skill's defaults.- Absent and the task is a new surface or a redesign → stop and offer
ui-direction. - Absent and the task is a small addition to an existing UI → derive a 10-line direction from
the existing tokens and screens, write it to
DESIGN.md, and state that you did.
Step 1 — Read the stack
Find the styling system (Tailwind config, CSS variables, CSS modules, styled-components,
AntD/MUI/shadcn theme), the component library, and two or three existing screens. Adapt the
rules below to that stack — never introduce a second styling system. If the project has
convention docs (CLAUDE.md, STYLING.md, THEMING.md), they win over this skill.
Step 2 — Tokens first
Before any component, define or extend semantic tokens:
- Color — the DESIGN.md palette as semantic roles (
--color-ground,--color-ink,--color-accent,--color-muted,--color-danger…), light and dark tuned separately. No raw hex in components. - Type — families, the modular scale (≤5 sizes), weights at the extremes, body 16–20px / 1.45–1.6, display tracking −0.02 to −0.05em.
- Space — one scale (4/8/12/16/24/32/48/64/96/128). No one-off pixel values.
- Radius — a scale by role; nested radius concentric (child ≤ parent).
- Elevation — shadow tokens for floating layers only (menus, popovers, dialogs).
- Motion — durations (fast ~100ms, base ~200ms, slow ~300ms) and easings (ease-out enter, ease-in exit).
With a component library: override its theme tokens instead of fighting each component. Library defaults left untouched are a tell.
Step 3 — First screen first
Build the first screen at desktop and 390px before anything else. It must answer the visitor's first question in large type, carry the signature element from DESIGN.md, and offer one primary action with an outcome label. Check it in the browser (Step 7 method) before continuing — direction mistakes are cheapest here.
Step 4 — The rest
- Each section is a claim with its proof; delete sections without a claim.
- Neighbor sections use different structures. Structure follows content: tables for tabular data, lists for lists, one large proof instead of three small cards.
appsurfaces: quiet panels, aligned figures,tabular-nums, color reserved for data and status, navigation that folds away on phones.- Real copy from the brief. Missing content → clearly-marked sample content, listed in the report. Never invent stats, logos, testimonials, or customers.
Step 5 — States, forms, interaction
Every interactive element: default, hover (only where clickable), :focus-visible, active,
disabled, loading. Every data view: loading, empty, error, sparse, dense.
- Loading: indicator after ~150–300ms; spinner for 2–10s; percent-done + cancel for ≥10s; skeletons with final dimensions.
- Empty: specific reason + direct action. Never "No results" while still loading.
- Errors: next to the source, plain language, what happened + how to fix, input preserved.
- Forms: visible label on every field (placeholder is never the label), correct
type/inputmode/autocomplete, paste allowed, submit enabled until submission starts, focus the first error, inputs ≥16px on mobile. - Destructive actions: confirm or an Undo window. Optimistic updates roll back on failure.
- Behavior stays conventional:
<a>navigates,<button>acts, Enter submits, Esc closes.
Step 6 — Motion and accessibility
- Motion: animate
transform/opacityonly, nevertransition: all; 100–400ms; one orchestrated moment at most; every animation has aprefers-reduced-motionvariant that keeps content and drops travel; nothing loops for >5s without a pause control. - WCAG 2.2 AA floor: text ≥4.5:1, large text and UI boundaries ≥3:1, color never the only
signal, focus ring visible and not obscured by sticky bars (
scroll-padding), targets ≥24px (≥44px on touch), drag has a click alternative, reflow at 320px, zoom never disabled, icon-only buttons have accessible names,aria-live="polite"for toasts/inline validation, heading order and a skip link.
Step 7 — Browser verification loop
Open the result in a real browser (built-in browser / Playwright / preview server):
- Screenshot at 1440, 768, 390 px, light and dark if supported.
- Look at the screenshots, not at the code. Squint test: the intended focal element still dominates when blurred. Five-second test: what is this and what do I do?
- Score against the tell catalog in
ui-anti-slop.mdc; measure contrast and target sizes on the render, not from class names. - Fix the top 3 problems. Repeat — at most 3 rounds; then report what remains.
No browser available → say so explicitly and list the checks that were not run.
Step 8 — Pre-delivery checklist and report
- Tokens only; no raw hex or one-off spacing in components
- DESIGN.md signature element present; exactly one
- No T1 tells; slop score ≤3 (or exemptions recorded in DESIGN.md)
- All states implemented for every interactive element and data view
- WCAG 2.2 AA floor met on the render
- Reduced-motion variant for every animation
- Verified at 1440 / 768 / 390 (or stated as not run)
- Before finishing: removed one element
Report: what was built, screenshots or their paths, slop score with remaining tells, sample
content to replace, checks not run. Offer review-ui-ux for an independent pass.
Iron Laws
| Rule | Why |
| DESIGN.md wins over taste | The concept was chosen deliberately; drifting back is re-convergence |
| Never "done" without looking at renders | Slop is invisible in code and obvious on screen |
| Never invent proof | Fake numbers and logos destroy trust and are a T1 tell |
| One styling system | Mixed systems drift into inconsistent tokens |
| Don't claim unrun checks | An honest gap is fixable; a false pass ships |
Red Flags
| Thought | Reality |
| "I'll add states later" | Later never comes; missing states are behavioral slop |
"rounded-2xl shadow-lg looks nice everywhere" | One radius + one shadow everywhere is the SaaS card kit |
| "A gradient will make the hero pop" | It makes it look like every other generated hero |
| "The library default button is fine" | Untouched library defaults are a tell |
| "Looks right in the code" | Open the browser |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

