setup-registry-workflow
БесплатноЗапускает вложенные скриптыНе проверенRegistry hooks + component taxonomy + consumer drift analysis. Use when maintain shadcn component registry, design system, or analyze drift between consumer…
от redpanda-data★ 34 звезды на GitHubОб этом скилле
Setup Registry Workflow
Hooks
- PostToolUse (
ui-registry-warn.sh): warn once/session when edit UI component dirs | prompt upstream PR - Stop (
registry-check.sh): block if redpanda-ui modified without updateregistry.json+ add changeset
Component Taxonomy (Atomic Design)
Classify 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.
Consumer Drift Analysis
Compare consumer repo components against registry source. Run on upstream sync.
Process
- Discovery -- scan
packages/registry/src/components/| match against consumer dirs - Comparison --
git diff --no-index --ignore-all-spaceper component | skip empty diffs - Filtering -- apply rules below each non-empty diff
- Categorization -- assign one status per component
Filter Rules
| 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 |
Business Logic Red Flags
| 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').
Output Statuses
| 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 |
Steps
- Copy
scripts/ui-registry-warn.sh+scripts/registry-check.sh->.claude/hooks/|chmod +x - Configure
.claude/settings.json:- PostToolUse (Edit|Write):
ui-registry-warn.sh - Stop:
registry-check.sh
- PostToolUse (Edit|Write):
Verify
- Both hooks executable
- Edit
components/ui/orredpanda-ui/trigger warning - Modify
redpanda-ui/withoutregistry.jsonupdate -> Stop block - Modify
redpanda-ui/withregistry.jsonbut no changeset -> Stop block
Установить setup-registry-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл setup-registry-workflow?
Registry hooks + component taxonomy + consumer drift analysis. Use when maintain shadcn component registry, design system, or analyze drift between consumer repos + registry.
Как установить скилл setup-registry-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup-registry-workflow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic