Skip to content
Back to skills

Ui Component

ASecurity

Add or extend a component in packages/ui from the spec §8 inventory and prototype recipe, with CSS Modules from tokens, stories for every variant/state, keyboard/focus test, and axe check.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 8, 2026
ai-agentsbash

Security analysis

A100/100

Scanned October 8, 2026

npx -y skills add NicholasFlemmer/styx-app --skill ui-component --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ui Component?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ui Component
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nicholasflemmer-ui-component/badge)](https://www.skillsdirectory.com/skills/nicholasflemmer-ui-component)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ui-component
description: Add or extend a component in packages/ui from the spec §8 inventory and prototype recipe, with CSS Modules from tokens, stories for every variant/state, keyboard/focus test, and axe check.
argument-hint: '<ComponentName> [variant]'
allowed-tools: Read, Grep, Glob, Edit, Write, Bash(pnpm:*), Bash(grep:*), Bash(sed:*)
---

# UI component: $ARGUMENTS

1. Read the §8 row (`/spec-lookup 8`) and grep `design/handoff/Styx.dc.html` for 2–3 instances; copy the inline recipe (padding, font, border, hover, attributes).
2. Scaffold `packages/ui/src/<group>/<Name>/{<Name>.tsx,<Name>.module.css,<Name>.stories.tsx,<Name>.test.tsx,index.ts}`; export from `src/index.ts`.
3. Props: semantic props + `inv?`, `on?`, `disabled?`, `className?`; render `data-inv`/`data-on` only when true; forward `ref`.
4. CSS in `@layer components`, token vars only; hover = instant `background: var(--s2)`; no radius/shadow/transition. Hit target ≥28px (`::after` inset for compact buttons).
5. Stories: one per variant × state + a `Matrix` story; a11y addon enabled.
6. Test: renders, keyboard activation, `aria-*`, focus ring visibility.
7. `pnpm test -F @styx/ui && pnpm typecheck` and `pnpm storybook:test` when available.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.