Back to Skills

create-component

majiayu000
Updated Today
12 views
58
9
58
View on GitHub
Metadesign

About

The `create-component` skill adds a new component to the design system's UI package. It guides developers on common patterns like state variants and prefix/suffix slots. After creating the component, you must also generate its documentation using the `create-documentation` skill.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/majiayu000/claude-skill-registry
Git CloneAlternative
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/create-component

Copy and paste this command in Claude Code to install this skill

Documentation

Create Component

When creating Equality components,

Common Patterns

States

We commonly use the following states for components:

  • Neutral (Default)
  • Primary (A hierarchical increase, uses the primary brand color)
  • Success (Something has worked correctly)
  • Warning (The user should be informed that something may not be working as intended or requires attention)
  • Danger (Destructive actions or serious errors)

Prefix and Suffix Slots

Components like "Button" and "Input" have prefix and suffix slots to place icons or buttons before, or after the primary component content.

Documentation

After creating the component in the "ui" package, always create a corresponding docs MDX under packages/demo/src/content/components.

Review the create-documentation skill for instructions on how to format the docs.

GitHub Repository

majiayu000/claude-skill-registry
Path: skills/create-component

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

creating-opencode-plugins

Meta

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

cloudflare-turnstile

Meta

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

View skill