registry-component-patterns
Automates the registration of custom 8-bit components into the shadcn/ui registry.
Install
mkdir -p .claude/skills/registry-component-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3801" && unzip -o skill.zip -d .claude/skills/registry-component-patterns && rm skill.zipInstalls to .claude/skills/registry-component-patterns
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Register components in registry.json for shadcn/ui add command. Apply when adding new 8-bit components to the component library.Key capabilities
- →Register 8-bit components in registry.json
- →Define component and block entry patterns
- →Enforce retro.css inclusion
- →Assign gaming-specific categories
- →Map source and target paths for components
How it works
It updates the registry.json file with specific metadata and file paths to ensure components are discoverable via the shadcn CLI.
Inputs & outputs
When to use registry-component-patterns
- →Registering a new pixel-art button
- →Adding game UI blocks
- →Updating component registry
About this skill
Registry Component Patterns
Register 8-bit components in registry.json for discovery via shadcn add @8bitcn/[component-name].
Component Entry Pattern
{
"name": "button",
"type": "registry:component",
"title": "8-bit Button",
"description": "A simple 8-bit button component",
"registryDependencies": ["button"],
"files": [
{
"path": "components/ui/8bit/button.tsx",
"type": "registry:component",
"target": "components/ui/8bit/button.tsx"
},
{
"path": "components/ui/8bit/styles/retro.css",
"type": "registry:component",
"target": "components/ui/8bit/styles/retro.css"
}
]
}
Block Entry Pattern
For pre-built layouts like game UIs:
{
"name": "chapter-intro",
"type": "registry:block",
"title": "8-bit Chapter Intro",
"description": "A cinematic chapter/level intro with pixel art background.",
"registryDependencies": ["card"],
"categories": ["gaming"],
"files": [
{
"path": "components/ui/8bit/blocks/chapter-intro.tsx",
"type": "registry:block",
"target": "components/ui/8bit/blocks/chapter-intro.tsx"
},
{
"path": "components/ui/8bit/styles/retro.css",
"type": "registry:component",
"target": "components/ui/8bit/styles/retro.css"
},
{
"path": "components/ui/8bit/card.tsx",
"type": "registry:component",
"target": "components/ui/8bit/card.tsx"
}
]
}
Required retro.css
Always include retro.css in registry entries:
"files": [
{
"path": "components/ui/8bit/new-component.tsx",
"type": "registry:component",
"target": "components/ui/8bit/new-component.tsx"
},
{
"path": "components/ui/8bit/styles/retro.css",
"type": "registry:component",
"target": "components/ui/8bit/styles/retro.css"
}
]
Categories
Use gaming-specific categories:
"categories": ["gaming"]
Available categories: gaming, layout, form, data-display, feedback, navigation, overlay.
Registry Dependencies
List base shadcn dependencies:
"registryDependencies": ["button", "dialog"]
For blocks with multiple components:
"registryDependencies": ["card", "button", "progress"]
Key Principles
- Type - Use
registry:componentfor single components,registry:blockfor layouts - retro.css required - Always include in files array
- Target path - Use same path for source and target
- Categories - Use
gamingfor retro-themed components - Dependencies - List base shadcn/ui components (not 8-bit versions)
- Description - Clear, concise description for CLI output
Adding a New Component
- Create component in
components/ui/8bit/component.tsx - Update
registry.jsonwith entry (copy existing component as template) - Include
retro.cssdependency - Test with:
pnpm dlx shadcn@latest add @8bitcn/component
When not to use it
- →When adding non-8-bit components
- →When the component does not require retro.css
Prerequisites
Limitations
- →Limited to 8-bit component library structure
- →Requires manual testing with shadcn CLI
How it compares
It enforces a strict 8-bit theme pattern and retro.css dependency requirement compared to standard shadcn component registration.
Compared to similar skills
registry-component-patterns side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| registry-component-patterns (this skill) | 1 | 7mo | No flags | Beginner |
| web-artifacts-builder | 49 | 3mo | Review | Intermediate |
| radix-ui-design-system | 33 | 2mo | Review | Intermediate |
| figma-integration | 23 | 7mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by TheOrcDev
View all by TheOrcDev →You might also like
web-artifacts-builder
anthropics
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
radix-ui-design-system
sickn33
Build accessible design systems with Radix UI primitives. Headless component customization, theming strategies, and compound component patterns for production-grade UI libraries.
figma-integration
duongdev
Guides design-to-code workflow using Figma integration. Helps extract designs, analyze components, and generate implementation specs. Auto-activates when users mention Figma URLs, design implementation, component conversion, or design-to-code workflows. Works with /ccpm:planning:design-ui, design-approve, design-refine, and /ccpm:utils:figma-refresh commands.
figma-implement-design
openai
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma specs. Requires a working Figma MCP server connection.
react-flow-node-ts
microsoft
Create React Flow node components with TypeScript types, handles, and Zustand integration. Use when building custom nodes for React Flow canvas, creating visual workflow editors, or implementing node-based UI components.
frontend-ui-dark-ts
microsoft
Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.