/frontend-skills:setup-registry-workflowfrom frontend-skills
Maintains shadcn component registries: enforces registry.json updates via git hooks, classifies components by atomic design taxonomy, and analyzes drift between consumer repos and registry source.
Ships in frontend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
ui-registry-warn.sh): warn once/session when edit UI component dirs | prompt upstream PRregistry-check.sh): block if redpanda-ui modified without update registry.json + add changesetClassify every registry component one level. Drive test depth.
| Level | useState | Registry imports | Custom kbd handlers | Portal | Test count |
|---|---|---|---|---|---|
| Atom | 0-1 | 0 | 0 | No | 3-4 |
| Molecule | 2 | 1-2 | 1-10 lines | Maybe | 5-8 |
| Organism | 3+ | 3+ | 10+ lines | Often | 8-15 |
Tiebreaker: highest-scoring signal win. Radix-provided kbd nav no count.
Atom: Single-responsibility primitives | one semantic HTML element/Radix primitive | zero or one controlled/uncontrolled toggle. Examples: Button, Badge, Input, Label, Separator, Spinner, Skeleton, Checkbox, Switch
Molecule: Combine 2-3 atoms | limited local state (open/closed, selected index) | simple portals. Examples: CopyButton, InputGroup, ButtonGroup, Field, Accordion, Breadcrumb, Card, Tabs
Organism: Multiple molecules+atoms | significant state (3+ vars or useReducer) | custom kbd nav | portal rendering. Examples: Combobox, MultiSelect, DataTable, Dialog, DropdownMenu, Sheet, Sidebar, AutoForm
Component evolve between levels -> verify heuristics | expand tests new minimum | review FP compliance.
Compare consumer repo components against registry source. Run on upstream sync.
packages/registry/src/components/ | match against consumer dirsgit diff --no-index --ignore-all-space per component | skip empty diffs| Rule | Detect | Action |
|---|---|---|
| Import noise | Only @/->../ path changes, 'use client' directives, biome comments | Skip-Import-Only |
| Staleness | Registry changelog newer than consumer file | Skip-Outdated -- consumer sync FROM registry |
| Business logic | String equality (=== 'admin'), feature flags, API endpoints, route logic, analytics, env checks | Skip-Business-Logic -- never upstream app-specific code |
| Pattern | Example |
|---|---|
| String equality checks | title === 'Users' |
| Hard-coded business data | tier === 'enterprise' |
| Feature flags | featureFlagEnabled |
| API endpoints | fetch('/api/console/users') |
| Route-specific logic | pathname.includes('/dashboard') |
| Analytics/tracking | analytics.track(...) |
Safe: prop-based logic (variant === 'destructive', size === 'lg').
| Status | Meaning |
|---|---|
| Upstream | Real functional diff, safe merge into registry |
| Skip-Import-Only | Only import path/directive noise |
| Skip-Outdated | Registry newer -- consumer pull, not push |
| Skip-Business-Logic | App-specific logic -- re-implement cleanly if needed |
scripts/ui-registry-warn.sh + scripts/registry-check.sh -> .claude/hooks/ | chmod +x.claude/settings.json:
ui-registry-warn.shregistry-check.shcomponents/ui/ or redpanda-ui/ trigger warningredpanda-ui/ without registry.json update -> Stop blockredpanda-ui/ with registry.json but no changeset -> Stop blockWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redpanda-data/ui-harness --plugin frontend-skills69 skills in this plugin
/brainstormingUse when exploring design options, starting new features, or needing to think before coding. Two modes: design (explore approaches with trade-offs) and challenge (stress-test decisions). No implementation until design is approved./cavemanUltra-compressed reply mode. Use when user asks be brief or /caveman./codex-compatGenerate Codex hooks.json and AGENTS.md from Claude Code hooks. Maps supported hooks directly, including Edit|Write apply_patch aliases, and keeps Stop batch checks only as fallback. Use when setting up Codex compatibility or dual-agent support./commit-pushAnalyze changes, create categorized conventional commits, and push. Use when user asks to commit and push, invokes `/commit-push`, or requests conventional commits without a PR./commit-push-prAnalyze changes, create categorized conventional commits, push, and open a PR. Use when user asks to open a PR, invokes `/commit-push-pr`, or requests a full commit -> push -> PR flow with CI monitoring./design-an-interfaceDEPRECATED. Prefer `/prototype` for design exploration and runnable UI variations. Do not use unless user explicitly says `/design-an-interface` or asks for legacy skill.Other plugins' skills for the same job