ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
UI craftsmanship: animation rules, easing, micro-interactions, state polish. Triggers: animation, transition, ease-out, motion, micro-interaction, hover, loading state, UI polish.
$ npx -y skills add softspark/ai-toolkit --skill design-engineering --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/design-engineeringContext preview
The summary Claude sees to decide when to auto-load this skill.
UI craftsmanship: animation rules, easing, micro-interactions, state polish. Triggers: animation, transition, ease-out, motion, micro-interaction, hover, loading state, UI polish.
name: design-engineering description: "UI craftsmanship: animation rules, easing, micro-interactions, state polish. Triggers: animation, transition, ease-out, motion, micro-interaction, hover, loading state, UI polish." effort: medium user-invocable: false allowed-tools: Read
Based on Emil Kowalski's design engineering philosophy — UI polish, component craftsmanship, and the compound value of invisible details.
Defaults that signal machine-generated UI ("AI slop"). Each is a falsifiable rule to uphold:
Before marking any UI output complete, score it 1–5 on these six axes (score <3 on any axis triggers a revision pass):
| # | Axis | Assessment | |---|---|---| | **P** | **Philosophy** | Clear position and intent ("why"), not just arbitrary decoration | | **H** | **Hierarchy** | Clear primary / secondary / tertiary weight distinguishable in 2 seconds | | **E** | **Execution** | Exact rule weights, contrast ratios, focus rings, zero layout shifts | | **S** | **Specificity** | Tailored specifically to this brief, not a generic interchangeable template | | **R** | **Restraint** | Removed anything unearned (decorative bloat, redundant cards, excess padding) | | **V** | **Variety** | Structurally distinct from previous layouts in the project (not just a color swap) |
Every interactive element (button, input, select, card, tab, switch) must explicitly handle all 8 states in code. Styling only default + hover is an immediate defect:
| State | Trigger | Required Treatment | |---|---|---| | **1. Default** | At rest | Clean base styling, defined token bindings | | **2. Hover** | Pointer over (`@media (hover: hover)`) | Subtle background shift (4–6%) or 1px translate, no layout jump | | **3. Focus** | Keyboard navigation | Visible `:focus-visible` ring (2px solid, 1–2px offset), instant appearance | | **4. Active** | Pressed | Pressed-in feel: slight darken, `transform: translateY(1px)` or `scale(0.98)` | | **5. Disabled** | Inactive (`disabled`, `aria-disabled`) | 3 channels: `opacity: 0.55`, `cursor: not-allowed`, muted token color | | **6. Loading** | Async in-flight (`data-state="loading"`) | Inline spinner replacing icon/badge, label preserved, submit disabled | | **7. Error** | Validation failure (`aria-invalid="true"`) | Distinct error token border/message, helper text replaced, error icon | | **8. Success** | Operation completed (`data-state="success"`) | Quiet confirmation: subtle green/accent indicator or checkmark, auto-dismiss |
Input fields, textareas, and selects are where almost-right UIs break:
Verify every layout at **320px, 375px, 414px, and 768px**:
AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.
Repo: softspark/ai-toolkit
Mandatory engineering, security, testing, git, performance, quality, and response rules.…
Searches past coding sessions for observations, decisions, context. Triggers: mem-search,…
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG,…
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent,…
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report,…
API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe…