Skip to main content
skill

core-components — Claude Code skill: design tokens and UI

A Claude skill that keeps the agent on your own component library and design tokens instead of raw platform primitives.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/core-components
Open on GitHub

What core-components does

The skill sets rules for building UI. The agent imports Box, Text, HStack, VStack, Button, Input and Card from components/core rather than pulling View and Text straight from react-native. Spacing, colour and type scale come from tokens: $4 in place of 16, $textPrimary in place of #333333.

Inside are token tables and ready layouts for a screen, a form and a list row. An anti-patterns section spells out what counts as a mistake: inline styles, literal colour values, direct platform imports. Component props get the same treatment — the skill suggests typing them against tokens, as in padding?: '$2' | '$4' | '$6'.

It assumes your project already has a library reachable at components/core with tokens named this way. Point it at a codebase that uses different names or plain CSS and the tables stop matching, so the agent will reference components that do not exist.

What it helps with

  • swap hard-coded spacing and colours for design tokens
  • move a screen off raw View and Text onto library components
  • build a form from Input and Button with one layout
  • type component props against token values
  • catch inline styles and other anti-patterns in markup

Example prompts for the agent

  • Build the profile screen with Box and VStack, spacing from tokens only
  • Rewrite this component without inline styles or hard-coded colours
  • Make a list row with an avatar and subtitle using the skill's layout

How to install core-components

1claude-code-templates

npx claude-code-templates@latest --skill development/core-components

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill core-components -a claude-code

3Manually: put the files in place

~/.claude/skills/core-components/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/core-components/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about core-components

How do I install core-components in Claude Code?

Run npx claude-code-templates@latest --skill development/core-components. Or use npx skills add davila7/claude-code-templates --skill core-components -a claude-code. The skill then sits at ~/.claude/skills/core-components/SKILL.md.

What does the core-components skill do?

It tells the agent to build UI from your library and to set sizes, colours and fonts through tokens. It also ships layouts for a screen, a form and a list row.

Does it work with other skills?

It points to react-ui-patterns for UI states, testing-patterns for mocking components and storybook for documenting variants.

Similar skills

Everything for Frontend and UI →

From the same set361

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor