Core component library and design system patterns. Use when building UI, using design tokens, or working with the component library.
Add this skill
npx mdskills install sickn33/core-componentsComprehensive design system documentation with clear examples and token-first patterns.
Use components from your core library instead of raw platform components. This ensures consistent styling and behavior.
NEVER hard-code values. Always use design tokens.
// CORRECT - Use tokens
// WRONG - Hard-coded values
| Token | Value |
|---|---|
$1 | 4px |
$2 | 8px |
$3 | 12px |
$4 | 16px |
$6 | 24px |
$8 | 32px |
// CORRECT - Semantic tokens
// WRONG - Hard-coded colors
| Semantic Token | Use For |
|---|---|
$textPrimary | Main text |
$textSecondary | Supporting text |
$textTertiary | Disabled/hint text |
$primary500 | Brand/accent color |
$statusError | Error states |
$statusSuccess | Success states |
| Token | Size |
|---|---|
$xs | 12px |
$sm | 14px |
$md | 16px |
$lg | 18px |
$xl | 20px |
$2xl | 24px |
Base layout component with token support:
{children}
Horizontal and vertical flex layouts:
Username
Title
Content
Typography with token support:
Hello World
Interactive button with variants:
Click Me
| Variant | Use For |
|---|---|
solid | Primary actions |
outline | Secondary actions |
ghost | Tertiary/subtle actions |
link | Inline actions |
Form input with validation:
Content container:
Card Title
Card content
const MyScreen = () => (
{/* Content */}
);
Submit
{title}
{subtitle}
// WRONG - Hard-coded values
// CORRECT - Design tokens
// WRONG - Raw platform components
import { View, Text } from 'react-native';
// CORRECT - Core components
import { Box, Text } from 'components/core';
// WRONG - Inline styles
// CORRECT - Token props
When creating components, use token-based props:
interface CardProps {
padding?: '$2' | '$4' | '$6';
variant?: 'elevated' | 'outlined' | 'filled';
children: React.ReactNode;
}
const Card = ({ padding = '$4', variant = 'elevated', children }: CardProps) => (
{children}
);
Install via CLI
npx mdskills install sickn33/core-componentsCore Components is a free, open-source AI agent skill. Core component library and design system patterns. Use when building UI, using design tokens, or working with the component library.
Install Core Components with a single command:
npx mdskills install sickn33/core-componentsThis downloads the skill files into your project and your AI agent picks them up automatically.
Core Components works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.