interface-craft
Skill1 starsChanged 24 days agoMITView on GitHub
Build or refine production-ready browser interfaces with semantic structure, complete states, deliberate hierarchy, and working interactions.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- GalvinGao/skillstheir own version, first seen Nov 29, 2026
- ios3kov/codex-skillstheir own version, first seen Nov 29, 2026
- Thoven-CORP/agent-skillstheir own version, first seen Nov 29, 2026
- Innei/artidecktheir own version, first seen Nov 29, 2026
- emadabdulrahim/claude-skillstheir own version, first seen Nov 16, 2026
- persiyanov/skillstheir own version, first seen Nov 15, 2026
Used with
Projects with it also use brainstorming.
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.
OpenAISkillbrainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- Innei/ryugi★ 1.1ksame name
- Innei/artideck★ 1.1ksame name
- persiyanov/skills★ 2same name
- bfernandois059/dev-workflow-skills★ 1same name
- deanayoung3-droid/interface-craft★ 1same name
- dnywh/skills★ 1same name
- erik-kroon/skills★ 1same name
- GalvinGao/skills★ 1same name
- Thoven-CORP/agent-skills★ 1same name
- betterjally-oss/interface-craft★ 0same name
7 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 repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibilitySkill
- asset-imageSkill
- browser-acceptanceSkill
- clean-build-coreSkill
- clean-build-runtimeSkill
- clean-build-verificationSkill
- clean-build-webSkill
- color-systemsSkill
- design-directionSkill
- editorial-articleSkill
- knowledge-retrievalSkill
- loading-experienceSkill
- motion-showreelSkill
- performanceSkill
- product-copySkill
- release-deliverySkill
- responsive-mobileSkill
- routerSkill
- seo-securitySkill
- style-atlasSkill
- web-presentationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
42 rules. 0 are common, 37 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
37
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Verify keyboard, focus, touch, and reduced motion.
- Distinctive: line 38
Use native elements before custom roles.
- Distinctive: line 39
Use buttons for actions and anchors for navigation.
- Distinctive: line 41
Keep DOM order aligned with reading and focus order.
- Distinctive: line 42
Use cards only when grouping or interaction requires a boundary.
- Distinctive: line 43
Remove sections and controls that have no real job.
- Distinctive: line 47
Every enabled control must perform a real action.
- Distinctive: line 49
Every relevant control needs:
- Distinctive: line 66
Use a small token set:
- Distinctive: line 88
Keep native wheel and touch scrolling.
- Very specific: line 92
Prefer transform and opacity.
- Very specific: line 93
Do not use transition: all.
- Very specific: line 94
Do not leave broad will-change declarations active.
- Distinctive: line 95
Do not delay ready content for an entrance sequence.
- Distinctive: line 113
place focus inside the overlay.
- Distinctive: line 114
keep Tab and Shift+Tab within the overlay.
- Distinctive: line 117
remove every temporary style and inert state on close, route change, or unmount.
- Very specific: line 120
Do not apply overflow: hidden without testing scroll restoration, layout shift, nested scroll, and iOS touch behavior.
- Distinctive: line 132
Keep selection and callouts available for:
- Distinctive: line 138
Use scoped CSS rather than global JavaScript blockers:
- Very specific: line 158
Do not block copy, contextmenu, keyboard shortcuts, or paste globally.
- Distinctive: line 170
Do not communicate status by color alone.
- Distinctive: line 175
Use whitespace to group and separate content.
- Distinctive: line 176
Keep the active palette restricted.
- Distinctive: line 177
Use typography for hierarchy, not decoration.
- Distinctive: line 178
Avoid uniform card grids when content importance differs.
- Distinctive: line 179
Avoid decorative badges, repeated arrows, fake terminals, generic gradients, and default three-step sections.
- Distinctive: line 180
Use shadow, glow, glass, patterns, and texture only with a written purpose.
- Distinctive: line 181
Keep one repeated identity motif.
- Distinctive: line 188
Keep checkbox and radio labels within the hit area.
- Distinctive: line 190
Keep submit available until the request begins.
- Distinctive: line 195
Keep tokens in one source of truth.
- Distinctive: line 196
Prefer grid and flex over layout measurement.
- Distinctive: line 197
Avoid transition on all properties.
- Distinctive: line 199
Do not patch source or CSS through string-replacement scripts.
- Distinctive: line 200
Do not add code comments unless the user explicitly requests them.
- Distinctive: line 201
Keep files and component names descriptive.
- Distinctive: line 206
No fabricated content or claims.
- Distinctive: line 207
No broken theme or state.
- Distinctive: line 208
No inaccessible custom control.
- Distinctive: line 213
No layout that depends on hidden overflow.
- Distinctive: line 214
No visual decision that lacks a reason.
“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
Interface Craft
Use when
- implementing a visual design in HTML, CSS, JavaScript, or a frontend framework;
- refining hierarchy, spacing, typography, transition choreography, or interaction feedback;
- building drawers, dialogs, overlays, scroll locking, focus return, or direction-aware reveals;
- preventing accidental mobile selection, touch callouts, tap flashes, or image dragging on interface chrome;
- completing component states and behavior;
- replacing template-like UI with content-driven composition.
Required input
- approved direction or a clearly labeled draft direction;
- real content or honest placeholders;
- target stack and viewport range;
- known routes, interactions, and protected contracts.
Implementation order
- Build semantic structure and source order.
- Apply design tokens.
- Establish layout and responsive reflow.
- Add real interactions.
- Add complete states.
- Add purposeful motion.
- Verify keyboard, focus, touch, and reduced motion.
- Run browser checks.
Structure
- Use native elements before custom roles.
- Use buttons for actions and anchors for navigation.
- Give each page a language, unique title, landmarks, primary heading, and logical heading order.
- Keep DOM order aligned with reading and focus order.
- Use cards only when grouping or interaction requires a boundary.
- Remove sections and controls that have no real job.
Interaction completeness
Every enabled control must perform a real action. Valid actions include navigation, state change, form submission, dialog operation, download, or an external destination.
Every relevant control needs:
- default state;
- hover state;
- visible focus state;
- active state;
- disabled state when applicable;
- accessible name;
- pointer and touch affordance;
- keyboard operation.
Dialogs must manage focus and close with Escape. Destructive actions need confirmation or undo.
Motion choreography
Motion must explain state, direction, hierarchy, or continuity. Do not animate merely because an element exists.
Use a small token set:
:root {
--ease-premium: cubic-bezier(.16, 1, .3, 1);
--motion-fast: 180ms;
--motion-state: 380ms;
--motion-reveal: 700ms;
}Preferred patterns:
- state change: opacity and a 4 to 12 pixel translation over 180 to 380 milliseconds;
- section reveal: opacity plus a 24 to 48 pixel directional translation over 500 to 800 milliseconds;
- stagger: 40 to 90 milliseconds between related children, capped so the last item does not feel delayed;
- shared continuity: FLIP-style translation from measured origin to final position only when the two states represent the same object;
- icon or label morph: overlap old and new states, then transition opacity, translation, scale, or rotation;
- scroll reveal: use
IntersectionObserver; do not run layout work on every scroll event; - direction-aware reveal: enter from below while scrolling down and from above while scrolling up;
- replay: default to once; replay only after the element has fully left for a meaningful interval or when repetition explains navigation.
Keep native wheel and touch scrolling. Do not add inertial scrolling or lerp over the page unless the user explicitly requests it and accessibility has been evaluated.
Implementation rules:
- Prefer
transformandopacity. - Do not use
transition: all. - Do not leave broad
will-changedeclarations active. - Do not delay ready content for an entrance sequence.
- Cancel or replace stale animations when state changes.
- Preserve final state when animation is interrupted.
- Under reduced motion, render the final state immediately or use one short opacity transition.
Overlay and scroll-lock contract
Classify an overlay before locking the page:
- modal dialog, blocking drawer, and lightbox lock background scroll;
- non-modal inspector, popover, tooltip, and toast do not lock the page by default.
A blocking overlay must:
- record the current page scroll position;
- compensate for scrollbar removal so the layout does not shift;
- lock the document without losing the recorded position, including mobile Safari behavior;
- mark background content inert;
- place focus inside the overlay;
- keep Tab and Shift+Tab within the overlay;
- close with Escape when closure is safe;
- restore the previous scroll position and trigger focus;
- remove every temporary style and inert state on close, route change, or unmount;
- contain touch overscroll inside scrollable overlay content.
Do not apply overflow: hidden without testing scroll restoration, layout shift, nested scroll, and iOS touch behavior.
Accidental-selection shielding
This is interaction shielding, not security. It prevents unintended blue selection, mobile touch callouts, tap flashes, and image dragging on interface chrome.
Apply shielding selectively to:
- buttons, tabs, navigation labels, icon controls, drag handles, badges, and compact control cards;
- decorative images and illustrations that are not intended for drag or save behavior;
- labels whose long press would expose a browser copy or search callout instead of a useful action.
Keep selection and callouts available for:
- articles, descriptions, addresses, reference values, code, logs, generated output, and other useful text;
- inputs, textareas, contenteditable regions, and explicit copy targets;
- any content whose selection is needed for accessibility or the primary task.
Use scoped CSS rather than global JavaScript blockers:
[data-ui-shield] {
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
}
[data-copyable],
input,
textarea,
[contenteditable="true"] {
-webkit-user-select: text;
user-select: text;
-webkit-touch-callout: default;
}Do not block copy, contextmenu, keyboard shortcuts, or paste globally. Do not describe this as copy protection.
Data and async states
A data view is incomplete without:
- empty state that explains what to do next;
- loading state that communicates progress;
- error state that explains recovery;
- success or ready state;
- disabled or permission state when the workflow requires it.
Do not communicate status by color alone.
Visual discipline
- One focal point per screen.
- Use whitespace to group and separate content.
- Keep the active palette restricted.
- Use typography for hierarchy, not decoration.
- Avoid uniform card grids when content importance differs.
- Avoid decorative badges, repeated arrows, fake terminals, generic gradients, and default three-step sections.
- Use shadow, glow, glass, patterns, and texture only with a written purpose.
- Keep one repeated identity motif.
Forms
- Visible label for every field.
- Correct name, type, inputmode, and autocomplete.
- Never block paste.
- Keep checkbox and radio labels within the hit area.
- Show errors near fields and focus the first invalid field.
- Keep submit available until the request begins.
- Preserve unsaved work or warn before navigation.
Code quality
- Keep tokens in one source of truth.
- Prefer grid and flex over layout measurement.
- Avoid transition on all properties.
- Avoid unnecessary libraries.
- Do not patch source or CSS through string-replacement scripts.
- Do not add code comments unless the user explicitly requests them.
- Keep files and component names descriptive.
Completion check
- No dead controls.
- No fabricated content or claims.
- No broken theme or state.
- No inaccessible custom control.
- Blocking overlays preserve scroll, contain focus, and restore both on close.
- Interface chrome resists accidental selection without blocking useful text, input, copy, or paste.
- Direction-aware reveals use bounded transforms and preserve their final state.
- Reduced motion keeps every interaction complete and understandable.
- No layout that depends on hidden overflow.
- No visual decision that lacks a reason.
Human documentation: ../../docs/guides/interface-craft.md.
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.

