Install
$ agentstack add skill-kreek-consult-ui-design ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
UI Design
Iron Law
START FROM THE USER TASK AND HIERARCHY; EVERY ELEMENT EARNS ITS PLACE.
When to Use
- Building or changing any user-facing UI surface: layout, components, design
systems, typography, color, motion, responsive behavior, or frontend structure. Simple forms, single-page apps, and "just basic styling" all qualify; the polished-product threshold is too high a bar.
When NOT to Use
- Backend API shape; use
api. - Accessibility-specific implementation or review; use
accessibility. - Frontend runtime debugging or tests only; pair with
proofand browser
tooling.
- Performance profiling beyond UI design choices; use
performance.
Core Ideas
- One screen has one primary action and a clear information order.
- Use a small token system for spacing, type, color, radius, and motion.
Apply tokens consistently; avoid stray one-off values.
- Accessibility is a design input, not a later review pass. Design keyboard,
focus, contrast, reduced motion, touch targets, and screen-reader flow up front.
- Component APIs express intent and state, not implementation convenience.
- Modern CSS should reduce JavaScript and layout hacks when browser support
allows it.
Workflow
- Identify the user, task, device constraints, and primary action. Choose
existing framework/design-system patterns before inventing new ones.
- Define hierarchy, layout, states, empty/error/loading behavior, and
responsive rules.
- Apply tokens consistently. Remove elements that do not improve
comprehension, trust, or action.
- Verify with real rendering, keyboard navigation, contrast, and
reduced-motion behavior.
Verification
- [ ] Hierarchy survives a squint/blur test, and one primary action is
visually dominant per screen.
- [ ] Token system covers spacing, type, color, radius, motion; no stray
one-off values in committed CSS.
- [ ] Accessibility inputs were considered at design time, not patched after:
keyboard reach, focus order, contrast, reduced motion, touch target, screen-reader flow.
- [ ] UI states exist for loading, empty, error, disabled, and success where
applicable.
Tripwires
| Trigger | Do this instead | False alarm | |---|---|---| | "Add a card/section so it looks richer" | Start from the user task and hierarchy. Remove elements that do not improve comprehension, trust, or action. | The card groups repeated peer items or frames a real tool surface. | | "We'll add loading/error/empty states later" | Define the required states with the layout. | The component cannot load, fail, or be empty. | | "One-off spacing fixes this screen" | Use or extend the token system intentionally. | A browser or platform quirk needs a documented local fix. | | "Custom control first, semantics later" | Start with native controls and route accessibility-specific behavior to accessibility. | The existing design system control already proves semantics and keyboard behavior. | | "Pick the frontend framework before the interaction model" | Define the UI task, state, and flow first; use existing repo patterns where possible. | The user explicitly asked to compare frameworks. |
Handoffs
- Use
prooffor UI behavior tests and browser-verified flows. - Use
accessibilityfor WCAG, ARIA, semantic HTML, keyboard, focus, contrast,
screen-reader, and inclusive-design work.
- Use
performancefor measured Core Web Vitals or rendering regressions. - Use
documentationfor design-system usage docs and ADRs.
References
references/canon.md: design principles, product/tool defaults, common
failure modes.
references/frameworks.md: frontend framework tradeoffs.references/platforms.md: platform and government design systems.references/css.md: modern CSS capabilities.references/typography.md: Bringhurst-informed typography for product UI.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: kreek
- Source: kreek/consult
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.