Agent skills

Teach Claude Code, Codex, Cursor and other AI agents to use SlabUI.

Skills are instructions that AI agents load when a task needs them. The SlabUI skill teaches the agent to search the registry before writing a component, to install and update with the CLI, and to style with the theme tokens.

Skills use the skills.sh format and are versioned in the registry like any other item, so slabui tells you when one changes.

SkillWhat it teaches
slabuiThe CLI, the MCP server, Pro items, the theme tokens and components
slabui-setupThe start of a project: the name of the product, its logo and a theme generated from your brand color
slabui-prototypePrototyping: throwaway screens built from the registry with mocked data, and variants and states switchable from the URL

See Prototyping for how the slabui-prototype skill works.

The setup skill

Ask the agent to set up the project, its brand or its theme, and the slabui-setup skill asks five things in one message, each with a default:

QuestionAnswer
NameThe name of your product, in one or two words
LogoThe path of a file (SVG or PNG), or none
Theme colorYour brand color as a hex, or a ready one such as blue
Styleminimal, calm, balanced, vivid or bold
Layoutdense, regular, roomy or sharp

With the answers, the agent puts the name in the page title and in the header of the sidebar, places the logo, and generates the theme with slabui theme generate. It ends with the link that opens your theme in the theme generator and how to keep adjusting it in the theme editor.

What you decided is written to docs/DESIGN.md, and your AGENTS.md gets a section that points to it (CLAUDE.md imports AGENTS.md, as with mcp init):

docs/DESIGN.md
# Design
 
## Product
 
- Name: Acme Dental
- Logo: public/logo.svg
 
## Theme
 
- Color: #0f766e
- Style: calm
- Layout: dense
- Regenerate: `npx slabui theme generate --color "#0f766e" --style calm --layout dense`
- Theme generator: https://slabui.com/theme-generator?color=0f766e&v=2
 
## Decisions
 
- 2026-11-24: Theme color taken from the logo. Why: there is no brand guide
  yet.

The next session, of any agent, reads this file instead of asking again. To change one choice of the theme, change it in the Regenerate command and run it. The file is yours: edit it, and the agent keeps what you wrote.

  • Your logo file is used as it is. Without a logo, the agent shows the initial of the name as a placeholder and tells you so; it never draws one.
  • When you give an SVG logo and no color, the theme color is the main color of the logo.
  • In a project that already has its name, logo and theme, the skill changes only what you ask for.
  • A docs/DESIGN.md that already exists is completed, never replaced.

Install

pnpm slabui skills add

init also asks to install the skills at the end. Pass --skills to install them without the question (also with --yes), or --no-skills to skip it.

The files go to .agents/skills/<skill>/, which Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode read directly. Agents that read another folder get a link to it:

AgentOptionFolder
Claude Codeclaude-code.claude/skills
Codexcodex.agents/skills
Cursorcursor.agents/skills
GitHub Copilotgithub-copilot.agents/skills
Gemini CLIgemini-cli.agents/skills
OpenCodeopencode.agents/skills
Windsurfwindsurf.windsurf/skills
Kirokiro.kiro/skills

Kiro's default agent loads every skill in .kiro/skills. A custom Kiro agent only loads the skills listed in its resources, with a skill:// entry (see Kiro skills).

In an interactive terminal, skills add asks which skills and which agents, with the agents your project already uses selected. The choice is saved in slabui.json:

{
  "skills": { "agents": ["claude-code"] }
}
OptionDescription
-a, --agent <agents...>Agents that use the skills, e.g. -a claude-code,cursor
--copyCopy the skill to each agent folder instead of linking
-o, --overwriteOverwrite existing files
--yesNever prompt

Where symbolic links are not available, the skill is copied. add and update copy it again when it changes.

Update

pnpm slabui skills list

Lists the installed skills with their versions, the newer ones, and the skills you have not installed yet. slabui outdated also shows skills with a new version.

pnpm slabui skills update

Updates the skills like slabui update updates components: changes you made to the files are kept with a 3-way merge. It also recreates missing links.

Without arguments it updates every installed skill. Name one to update only that skill:

pnpm slabui skills update slabui
OptionDescription
--majorAllow updating to a new major version
-o, --overwriteOverwrite and delete files without prompting
--yesNever prompt; conflicts keep the markers in the file

In an interactive terminal, the CLI asks what to do with each conflict, as in update.

A project with the old skill item (which wrote only to .claude/skills/slabui) is moved to the slabui skill by skills add and skills update. If you had edited the old file, it is saved as .claude/skills/slabui-SKILL.md.bak.