ui-craft
Skill1 starsChanged 13 days agoMITView on GitHub
Design, refine, redesign, or audit web interfaces through five separated passes: token system (DESIGN.md), per-route visual thesis, craft-floor build, fresh-eyes critique with accessibility audit, and live 390px/1440px browser proof (--refine, --redesign, --audit, --focus, --brake). Apply when building a new web UI, polishing or redesigning an existing interface, fixing layout or accessibility regressions, or auditing visual craft. Do not trigger for single-line CSS edits. Use verify-app for long-term functional flow maps, seo-audit for crawl/meta/GEO, and trl for launch-readiness loops.
23 other projects use a version of this.
Adopted by
Most recently taken up by
- lyricat/agent-skillstheir own version, first seen Nov 29, 2026
- compozy/compozytheir own version, first seen Nov 28, 2026
- fruge365/forma-frontend-design-studiotheir own version, first seen Nov 16, 2026
- najeebafridi/ui-crafttheir own version, first seen Nov 16, 2026
- morochena/skillstheir own version, first seen Nov 15, 2026
- MrCipherSmith/goodai-basetheir own version, first seen Nov 8, 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 versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- compozy/compozy★ 2.9ksame name
- pedronauck/skills★ 659same name
- educlopez/ui-craft★ 490same name
- podo/design-agent-skills★ 39same name
- mofirojean/angular-ui-skills★ 33same name
- ConnorGriffin/skills★ 21same name
- Suge8/friedbun★ 13same name
- Achref23illi/ui-craft★ 7same name
- joaoguirunas/team-os★ 7same name
- alexderz/agentic-toolbox★ 5same name
13 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 repository95 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/changelog.mdcCursor rule
- .cursor/rules/seo-ai-search.mdcCursor rule
- agent-readySkill
- authoring-skills-and-rulesSkill
- blinded-evalSkill
- cloakbrowser-fallbackSkill
- deep-deliberationSkill
- design-rationaleSkill
- dissectSkill
- documentation-writerSkill
- everything-seoSkill
- executeSkill
- inceptionSkill
- kit-workflowsSkill
- marketing-psychologySkill
- media-genSkill
- notebooklmSkill
- proving-change-safetySkill
- release-deploySkill
- seo-auditSkill
- startup-marketing-brainSkill
- subsystem-walkthroughSkill
- trlSkill
- verify-appSkill
- agent-readySkill
- authoring-skills-and-rulesSkill
- blinded-evalSkill
- cloakbrowser-fallbackSkill
- deep-deliberationSkill
- design-rationaleSkill
- dissectSkill
- documentation-writerSkill
- everything-seoSkill
- executeSkill
- inceptionSkill
- kit-workflowsSkill
- marketing-psychologySkill
- media-genSkill
- notebooklmSkill
- proving-change-safetySkill
- release-deploySkill
- seo-auditSkill
- startup-marketing-brainSkill
- subsystem-walkthroughSkill
- trlSkill
- ui-craftSkill
- verify-appSkill
- agent-readySkill
- authoring-skills-and-rulesSkill
- blinded-evalSkill
- cloakbrowser-fallbackSkill
- deep-deliberationSkill
- design-rationaleSkill
- dissectSkill
- documentation-writerSkill
- everything-seoSkill
- executeSkill
- inceptionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
0
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
- Very specific: line 94
When --focus <axis> is passed with --refine or --audit, run steps 1, 2 (reconstruct only), 4 (unless --audit), 5, 6, and 7 scoped to that …
“Common” is measured: kept by at least 6 in 10 of the 20 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
Leading words: brief wins, surface intent, token contract, craft floor, three-proof gate, fresh-eyes critique, rendered proof, refine preserves, redesign replaces.
Generic AI interfaces happen when one pass invents tokens, picks a voice, writes markup, and ships unverified. This playbook splits those five hats into gated passes with real DOM and viewport proof.
Operating contract
- Brief wins. Honor explicit user aesthetics, eras, palettes, or fonts even when they overlap common defaults. Never override a clear brief with contrarian taste.
- Refine preserves, redesign replaces. In
--refine, keep the incumbent brand, tokens, copy, and features. In--redesign, keep product truth, features, and factual copy, treat the old look as anti-reference, and replaceDESIGN.mdcleanly rather than half-polishing the old look. - Visual authority is evidence. An existing app without
DESIGN.mdis not greenfield. Inspect live routes, CSS, and existing component primitives first. - Keep workflow state silent. Track mode, route intents, scores, and fixes
in session todos and
DESIGN.md. Never emit internal state blocks in chat.
Modes and modifiers
$ARGUMENTS| Flag | Role | Behavior |
(default / build) | Workflow | Build a new app or surface end-to-end through all five passes. |
--refine | Workflow | Tighten an existing surface while preserving its visual identity and tokens. |
--redesign | Workflow | Keep features and factual copy, replace DESIGN.md and the visual world. |
--audit | Workflow | Read-only critique, accessibility audit, and live viewport probe. Zero code edits. |
--focus <axis> | Modifier | Narrow --refine or --audit to type, layout, a11y, states, motion, or responsive. |
--brake | Modifier | Pause after Phase 2 (DESIGN.md and visual thesis, or audit plan) for user approval before editing UI code. |
Auto-detecting mode when no workflow flag is passed:
- New app, new page, or blank canvas →
build - Improve, clean up, polish, or fix an existing UI →
refine - Rebrand or overhaul visuals while keeping behavior →
redesign - Review, critique, or audit without edits →
audit
Per-route surface intents
Assign one intent to each route, never one intent for the whole app. A tool's landing page still persuades, and a studio's settings page still operates.
| Intent | Typical surfaces | Primary job |
| Persuade | Landing pages, pricing, campaigns | Earn attention and action. Bold visual voice and focal hero carry the page. |
| Operate | Dashboards, forms, tables, editors, settings | Complete tasks fast. Scanability, restraint, tabular-nums, and native patterns beat flair. |
| Read | Docs, guides, articles, changelogs | Support comprehension. Measure, hierarchy, and calm rhythm lead. |
| Showcase | Portfolios, galleries, interactive demos | Put the artifact first. Interface chrome recedes. |
Pipeline
Copy these steps into the session todo list verbatim before starting. A step
you omit stays in the list with skip: <reason> or n/a: <reason>.
- Scope and route map. Parse mode,
--focus, and--brakefrom$ARGUMENTS. Inspect the repo's routes, framework, styling layer, existing tokens, and component primitives. Assign one Surface Intent to each in-scope route. - Token contract and direction. Load references/design-system.md.
- In
buildorredesign: write or replaceDESIGN.mdwith tiered tokens (primitive, semantic, component), WCAG contrast ratios, display-vs-data typography split, and a domain cliché ban. Run the Swap Test against the brief. - In
refineoraudit: reconstruct the governing local system from the active runtime path without rewritingDESIGN.md.
- In
- Direction checkpoint (
--brakeor ambiguous brief). Present the direction summary if--brakeis set or a greenfield brief is ambiguous. Ask via the host's native structured question tool (AskUserQuestion,AskQuestion,question,request_user_input,vscode_askQuestions, orask_user). Fall back to a numbered list only when zero question tools exist. Keep options ≤4, end option 1 with(Recommended), and putSay this in plain Englishlast. Stop after approval if--brakestops before edits. - Build or refine on the craft floor. (In
--audit, markskip: audit-only.) Load references/craft-floor.md immediately before editing UI code. Implement or refine every in-scope route against the locked tokens and craft invariants. Honor--focuswhen set. Preserve features and factual copy inrefineandredesign. - Fresh-eyes critique and accessibility audit. Load references/critique-and-a11y.md. Spawn a blind read-only critic subagent when the host supports subagents (cold-read pass otherwise). Score every in-scope route on the 5 axes and the cognitive-load check (≤4-choice rule). Filter findings through the Three-Proof Gate (contract, runtime, single correction). Audit semantic HTML, keyboard focus clearance, forms, touch targets, and motion. Fix all High and Medium findings in non-audit modes without breaking tokens. Re-check until zero High findings remain.
- Rendered viewport proof (
390pxand1440px). Load references/viewport-proof.md. Start or attach to the real app, then wait for rendered state and fonts. Run the DOM audit probe on every in-scope route at390×844and1440×900. Inspect full-page screenshots and exercise interactive controls. Batch-fix every defect in non-audit modes and re-shoot changed routes to prove the fix. Kill only processes you started. - Report. Return the final summary matching the reply contract below.
Focus shortcuts (--focus)
When --focus <axis> is passed with --refine or --audit, run steps 1, 2
(reconstruct only), 4 (unless --audit), 5, 6, and 7 scoped to that axis:
--focus | Active checks |
type | Scale contrast, 60–75ch measure, text-wrap, tabular-nums, punctuation, small-size legibility. |
layout | Grouping proximity, heading spacing, card fatigue, h-dvh, min-w-0, fixed z-index layers. |
a11y | Native controls, focus rings, sticky-bar focus clearance, ARIA labels, contrast ratios, forms. |
states | Empty, loading skeletons, inline errors with recovery, disabled states, destructive dialogs. |
motion | Compositor-only props, ≤200ms feedback, interruptibility, prefers-reduced-motion, focal restraint. |
responsive | 390px overflow, clipping, touch targets ≥44px, safe-area-inset, mobile nav reachability. |
Reply contract
End every run with these fields (skip unused lines only when n/a):
- Mode & Scope: mode, active modifiers, and route list with Surface Intents.
- System:
DESIGN.mdcreated/updated path (or reconstructed local owners inrefine/audit). - Critique Scorecard: per-route
X/40score (5 axes) + cognitive-load failure count. - Audit Results: High/Medium/Low counts before and after fixes (or
file:linelist in--audit). - Viewport Proof:
390×844and1440×900probe results, screenshot confirmation, interactive checks verified, and any step skipped withskip: <reason>.
References
| File | Load when |
| references/design-system.md | Phase 2: writing DESIGN.md, choosing Surface Intents, running the Swap Test, or tracing local tokens. |
| references/craft-floor.md | Phase 4: immediately before editing any UI file. |
| references/critique-and-a11y.md | Phase 5: blind critique rubric, cognitive load check, Three-Proof Gate, and accessibility audit. |
| references/viewport-proof.md | Phase 6: live browser proof at 390px and 1440px plus stack-agnostic DOM audit probe. |
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.

