mcpField
U
ui-craft

ui-craft

github.com/pedronauckDesign & UI647293 installsUpdated 1w ago
Repository

About ui-craft

UI Craft is a skill for making and reviewing interface changes in line with a project's design rules, existing components, and runtime behavior. It provides focused references for accessibility, interaction, visual systems, copy, and performance.

Key features

  1. 01Guidance for reusing design tokens and primitives
  2. 02Accessibility and keyboard-focus checks
  3. 03Component-state and interaction patterns
  4. 04References for copy, motion, dark mode, and performance
  5. 05Optional helpers for contrast and token drift

Use cases

  1. 01Editing an existing interface component
  2. 02Designing a new interface surface
  3. 03Reviewing an interaction for accessibility
  4. 04Auditing visual consistency and token use

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pedronauck/skills --skill ui-craft

After installing, type/ui-craftin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/
pre-ship-checklist.md
state-matrix.md
ui-audit-template.md
references/
accessibility-floor.md
ai-slop-patterns.md
anti-defaults.md
archetypes.md
component-patterns.md
dark-mode.md
design-system-integration.md
human-ai-ux.md
microcopy-quality.md
motion-patterns.md
performance.md
usability-foundations.md
visual-craft.md
scripts/
check-contrast.mjs
detect-token-drift.mjs
validate-metadata.py

Details

From the project README

UI Craft

Use the project's visual and copy authorities, shipped primitive inventory, and real runtime behavior. Preserve keyboard/focus operation, supported states, meaningful labels, contrast, reduced motion, and token ownership.

For a small edit, inspect the affected component/state and reuse existing decisions. A new surface or substantial redesign may need a short user job, scene, register, or visual dials when those resolve an actual design choice; they are not required artifacts for every tweak.

  • Read the relevant design/token/copy contract. When generated documentation and runtime tokens disagree, follow the project's canonical-source rule and regenerate through its owning tool.
  • Reuse existing primitives and supported states. Do not invent controls, metrics, helper copy, brand variants, or host chrome to satisfy a prototype.
  • Match verification to changed interaction/visual behavior: render the affected states, check keyboard/focus where interaction changes, and compare a named reference when required. Reuse current evidence; whole-surface matrices and all-breakpoint sweeps need corresponding scope.
  • Review actual hierarchy, overflow, token drift, misleading interaction, and accessibility defects. Avoid a fixed scorecard that turns subjective preferences into universal merge blockers.
  • Update design authorities only for an actual token/pattern change, through their generator when owned by codegen. A missing optional reference does not justify scaffolding a new design system.

References by Need

Use the matching section and its necessary dependencies. The table is a lookup, not a list to load in full. assets/state-matrix.md, assets/pre-ship-checklist.md, and assets/ui-audit-template.md are optional working formats for substantial design/audit tasks; ordinary changes can use concise evidence.

WhenFileCovers
Designing a novel surface / auditing usabilityreferences/usability-foundations.mdNielsen 10, Laws of UX, progressive disclosure, mental models
Any interactive widget (dialog, menu, combobox, tabs, slider)references/accessibility-floor.mdWCAG 2.2 AA non-negotiables, ARIA patterns, verification recipes
Buttons/inputs/dialogs/nav/tables/cards/dropdowns/tabs/toastsreferences/component-patterns.mdStates, keyboard contract, a11y, and slop per component
Writing or reviewing user-visible textreferences/microcopy-quality.mdBanned vocabulary, per-surface tone, error/empty/CTA templates
Auditing AI-generated UIreferences/ai-slop-patterns.mdBefore/after + remediation for the 14 patterns, detection prompts
A design choice needs reconsiderationreferences/anti-defaults.mdContextual alternatives for hierarchy, legibility, and interaction
Building an AI/agent surfacereferences/human-ai-ux.mdMicrosoft 18 + IBM 4 pillars, streaming/citation/confidence UI
Reading/extending DESIGN.md, tokens, shadcn/Radix, codegen rulesreferences/design-system-integration.mdDESIGN.md sections, token discipline, Figma/Code Connect
No token system, or extending a scalereferences/visual-craft.mdType/color/spacing/radius/elevation/motion defaults
Adding or reviewing animationreferences/motion-patterns.mdDuration bands, easing, CSS/Framer/@starting-style, reduced-motion
Implementing or reviewing dark modereferences/dark-mode.mdSurface-lightness elevation, accent desaturation, dangerous pairs
Observed slowdown, performance-sensitive change, or requested auditreferences/performance.mdMeasurement, loading feedback, relevant optimizations, project budgets
"We need a [Linear/Notion]-like X"references/archetypes.md7 archetypes, each a six-slot signature contract

Helpers

Resolve these from the actual skill directory (<ui-craft-dir>); run only for the question in scope:

  • node <ui-craft-dir>/scripts/check-contrast.mjs — read-only contrast calculation for changed rendered colors.
  • node <ui-craft-dir>/scripts/detect-token-drift.mjs — read-only drift scan; use project lint/codegen evidence when it already owns the invariant.
  • python3 <ui-craft-dir>/scripts/validate-metadata.py — authoring metadata validation.

Follow explicit user decisions and project authorities for trade-offs. Record material limitations honestly; do not force a scene interview, design audit, or another approval solely because this skill was used.

Comments

Markdown supported