Agent skills
A Claude Code skill that teaches an agent Slant: setup, the themed root, the conventions, and a page per component.
Usage
/plugin marketplace add nirtuttnauer/tuttn-portfolio
/plugin install slant@tuttnThose two commands, typed in Claude Code, add this repository as a plugin marketplace named tuttn and install its slant plugin, which carries the skill. From then on, Claude Code loads the skill when a task is React UI work with @tuttn/slant or Slant, and leaves it out otherwise. The repository is private, so the plugin marketplace and a copy from a checkout both need access to it; fetching the skill from this site, below, needs none.
Without the plugin
A skill is a folder, so it can be copied in instead. From a checkout of the repository, into your personal skills, for every project:
cp -R slant/skills/slant ~/.claude/skills/Or into one project's skills, run from that project's root with the checkout's path in front of slant/skills/slant:
cp -R slant/skills/slant .claude/skills/Without cloning, and without access to the repository, fetch it from this site. The folder is served at /kit/skills/slant/, and files.txt lists its files, one path per line:
base=https://tuttn.io/kit/skills/slant; dest=~/.claude/skills/slant
curl -fsSL $base/files.txt | while read -r f; do mkdir -p "$dest/$(dirname "$f")"; curl -fsSL "$base/$f" -o "$dest/$f"; doneRun the same commands again to update a copied skill.
What it teaches
An agent that has never seen Slant guesses: a raw colour where a token belongs, onChange where Slant says onValueChange, a visible label passed as label. The skill gives it the rules up front. SKILL.md covers the themed root and the conventions: refs and attributes, the value/onValueChange, checked/onCheckedChange and open/onOpenChange pairs, tone, variant and size, label as the accessible name, compound parts, asChild, tokens instead of raw colours, the slanted pixel, and what accessibility every component is held to.
| File | What it holds |
|---|---|
SKILL.md | When to use Slant, setup, the <Slant theme> root, the conventions, an index of every component, and the MCP tools to call when they are connected. The agent reads this first. |
setup.md | Installing the package, loading the stylesheet once, the root, CSS layers, and the hosted stylesheet for pages with no build step. |
theming.md | The root's props, the built-in themes with every value, adding a theme of your own, the theme builder, and every --sl-* token by category. |
components/<Name>.md | One component: the import, what it is for, usage, the props tables, keyboard and accessibility, related components, the tokens it reads, and links to its docs page and source. |
Start with SKILL.md; the source is slant/skills/slant in the repository.
With the MCP server
The skill is what an agent knows before it starts. The MCP server is what it can look up while it works: a component's full source, a search across props and tokens, a Lab recipe. When the server is connected, SKILL.md tells the agent to prefer its tools over the skill's own files, since they always answer for the installed version. Both are built from the same registry, so they never disagree, and each works without the other.
Keeping it current
Nothing in the skill is written by hand. slant/registry/scripts/build_slant_skills.mjs builds every file from the registry: the component list, the docs pages, the generated props and the tokens. After changing any of those, run:
npm run build:skillsIt rewrites slant/skills/slant/, its mirror in slant/registry/data/skills/slant/, and the plugin, and removes files for components that no longer exist. npm run check runs the same script without writing, and fails when any file has drifted.