Agent skill

Core Component Library Patterns

by ChrisWiles in ChrisWiles/claude-code-showcase

Reference for building UI with a token-based core component library: spacing, color and typography tokens, Box, stacks, Text, Button, Input and Card, plus layout patterns.

No licenceAuto-check passedFrontend & Design

Install Core Component Library Patterns

skills CLI
$ npx skills add ChrisWiles/claude-code-showcase --skill core-components -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ChrisWiles/claude-code-showcase core-components --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ChrisWiles/claude-code-showcase.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/core-components .claude/skills/core-components && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
core-components
GitHub stars
6.1k
Used in
7 other repos
Token cost
~1.2k tokens
SKILL.md length
176 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
None found

At a glance

Reference for building UI with a token-based core component library: spacing, color and typography tokens, Box, stacks, Text, Button, Input and Card, plus layout patterns.

  • Building a screen with the core component library
  • SKILL.md covers Design System Overview, Design Tokens, Core Components and Layout Patterns, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Replacing hard-coded spacing or colors with design tokens

What it does

The skill tells the agent to use components from the core library instead of raw platform components, and never to hard-code values but always to use design tokens. Spacing tokens run from $1 up to $8, semantic color tokens name roles such as primary, secondary and tertiary text, the brand color and error or success status, and typography tokens give a size scale from xs to 2xl.

The documented components are Box, a base layout element that accepts token props, HStack and VStack for horizontal and vertical flex layouts, Text, Button with solid, outline, ghost and link variants, Input with validation, and Card with header and content parts. Layout patterns show a screen with a header and a form built from a VStack of inputs. The examples are written in TSX.

When your agent uses it

  • Building a screen with the core component library
  • Replacing hard-coded spacing or colors with design tokens
  • Choosing the right Button variant for an action
  • Laying out a form with stacks and inputs

Example prompts

  • “Build a profile screen with the core components and tokens instead of raw Views.”
  • “Replace the hard-coded paddings and hex colors in this file with design tokens.”
  • “Which Button variant should I use for the secondary action in this modal?”

What it can do on your machine

Read from SKILL.md and the folder at commit a95518f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Core Component Library Patterns loads about 1.2k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 176 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 176 words (~1,199 tokens).

“Use components from your core library instead of raw platform components. This ensures consistent styling and behavior.”

— opening of SKILL.md by ChrisWiles
name
core-components

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/core-components of ChrisWiles/claude-code-showcase.

Open the folder on GitHubat commit a95518f

Used in 7 other repositories

We found 23 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 7 other GitHub owners. This page covers the copy in ChrisWiles/claude-code-showcase, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Core Component Library Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Core Component Library Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Core Component Library Patterns this skillChrisWiles/claude-code-showcase6.1k7 repos~1.2kAutomated safety check: PassNone
Chakra UI v3 Builderchakra-ui/chakra-ui41k—~3.1kAutomated safety check: PassMIT
Skillshare UI Website Stylerunkids/skillshare2.7k—~4.5kAutomated safety check: PassMIT
Design Systemflornkm/personal-site149—~1.6kAutomated safety check: PassNone
Shadcn Tailwind UILiarMTTT/TavernWeave148—~1.7kAutomated safety check: PassCustom licence
Shift UI Componentsshift-editor/shift343—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Chakra UI v3 Builder

    chakra-ui/chakra-ui

    Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.

    41k GitHub stars~3.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Skillshare UI Website Style

    runkids/skillshare

    Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/).

    2.7k GitHub stars~4.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Design System

    flornkm/personal-site

    How to build UI in this repo — compose classes with cn, use the CSS-variable design tokens (never raw hex/px), reuse the typographic and ui/ primitives, and define variants with cva like the…

    149 GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Shadcn Tailwind UI

    LiarMTTT/TavernWeave

    Build, restyle, or review accessible React interfaces that use shadcn/ui, Radix UI primitives, and Tailwind CSS.

    148 GitHub stars~1.7k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Shift UI Components

    shift-editor/shift

    Guides design, implementation and review of Shift interface work: shared Base UI wrappers, Tailwind v4 theme tokens, Figma matching and accessible interaction states.

    343 GitHub stars~2.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Official

    Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/).

    363 GitHub stars~3.1k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed

More from ChrisWiles/claude-code-showcase

  • React UI State Patterns

    ChrisWiles/claude-code-showcase

    Sets patterns for React interfaces: when to show loading spinners or skeletons, how to surface errors, how to disable buttons during async work and how to handle empty lists.

    6.1k GitHub starsUsed in 7 repos~1.6k tokens
    Auto-check passed
  • Jest Testing Patterns

    ChrisWiles/claude-code-showcase

    Jest patterns for React Native style tests: TDD discipline, mock factory functions, module and GraphQL hook mocking, custom render helpers and anti-patterns to avoid.

    6.1k GitHub starsUsed in 7 repos~1.5k tokens
    Auto-check passed
  • Formik Form Patterns

    ChrisWiles/claude-code-showcase

    Shows how to build forms with Formik and Yup validation, including conditional rules, field helpers, GraphQL submission, edit forms and multi-step flows.

    6.1k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • GraphQL Operations with Codegen

    ChrisWiles/claude-code-showcase

    Sets the rules for writing GraphQL queries and mutations in .gql files, running codegen, and using generated Apollo hooks with proper error and loading handling.

    6.1k GitHub starsUsed in 3 repos~1.5k tokens
    Auto-check passed
  • Systematic Debugging

    ChrisWiles/claude-code-showcase

    Applies a four-phase debugging routine that finds the root cause of a bug or failing test before any fix is written.

    6.1k GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed

Questions about Core Component Library Patterns

What does Core Component Library Patterns do?

Reference for building UI with a token-based core component library: spacing, color and typography tokens, Box, stacks, Text, Button, Input and Card, plus layout patterns. The skill tells the agent to use components from the core library instead of raw platform components, and never to hard-code values but always to use design tokens. Spacing tokens run from $1 up to $8, semantic color tokens name roles such as primary, secondary and tertiary text, the brand color and error or success status, and typography tokens give a size scale from xs to 2xl.

When should I use Core Component Library Patterns?

Core Component Library Patterns fits situations like: building a screen with the core component library; replacing hard-coded spacing or colors with design tokens; choosing the right Button variant for an action; laying out a form with stacks and inputs.

How do I install Core Component Library Patterns in Claude Code?

Run `npx skills add ChrisWiles/claude-code-showcase --skill core-components -a claude-code`. Or copy the skill folder (.claude/skills/core-components in ChrisWiles/claude-code-showcase) into .claude/skills/core-components in your project. Claude Code loads it when a task matches its description.

How do I install Core Component Library Patterns in Codex?

Run `npx skills add ChrisWiles/claude-code-showcase --skill core-components -a codex`. Or copy the skill folder (.claude/skills/core-components in ChrisWiles/claude-code-showcase) into .agents/skills/core-components in your project. Codex loads it when a task matches its description.

Can I use Core Component Library Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ChrisWiles/claude-code-showcase --skill core-components -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/core-components, .gemini/skills/core-components, .github/skills/core-components and .opencode/skills/core-components in your project.

What does Core Component Library Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Core Component Library Patterns is instructions for the agent only.

Does Core Component Library Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Core Component Library Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Core Component Library Patterns use?

No licence was found for Core Component Library Patterns or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Core Component Library Patterns use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Core Component Library Patterns?

Skills that share tags, products or a category with Core Component Library Patterns: Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars), Skillshare UI Website Style (runkids/skillshare, 2.7k stars), Design System (flornkm/personal-site, 149 stars) and Shadcn Tailwind UI (LiarMTTT/TavernWeave, 148 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Core Component Library Patterns?

ChrisWiles (a GitHub user) maintains it in ChrisWiles/claude-code-showcase, which has 6,072 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on January 6, 2026.

Source: ChrisWiles/claude-code-showcase on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.