RE

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.zip

Installs 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.
128 chars✓ has a “when” trigger
Beginner

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

You give it
Component file path
You get back
Updated registry.json entry

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

  1. Type - Use registry:component for single components, registry:block for layouts
  2. retro.css required - Always include in files array
  3. Target path - Use same path for source and target
  4. Categories - Use gaming for retro-themed components
  5. Dependencies - List base shadcn/ui components (not 8-bit versions)
  6. Description - Clear, concise description for CLI output

Adding a New Component

  1. Create component in components/ui/8bit/component.tsx
  2. Update registry.json with entry (copy existing component as template)
  3. Include retro.css dependency
  4. 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

pnpm

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.

SkillInstallsUpdatedSafetyDifficulty
registry-component-patterns (this skill)17moNo flagsBeginner
web-artifacts-builder493moReviewIntermediate
radix-ui-design-system332moReviewIntermediate
figma-integration237moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

49162

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.

33130

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.

23129

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.

2460

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.

530

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.

430

Search skills

Search the agent skills registry