Skip to content
shadcncraftPublic

About

shadcncraft Agent Skills

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

shadcncraft Agent Skills

Agent Skills for the shadcncraft design system, for Claude Code, Cursor, and Codex. They turn shadcncraft Figma designs into React + shadcn/ui code, bring React UI back into your Figma kit, and keep your theme in sync with your design tokens.

Each skill follows the Agent Skills open standard: a folder with a SKILL.md and supporting references/. Full docs: shadcncraft.com/docs/agent-skills.

Skills

Figma to React

Skill What it does
shadcncraft-generate-code Convert a selected shadcncraft Figma frame, component, or page into React + shadcn/ui code via the official Figma MCP. Reuses the matching registry block, stays on your project's tokens, and uses your configured icon library.
shadcncraft-import-variables Sync design tokens into globals.css as a complete shadcn token set (light + dark). Reads from the Figma MCP or a local file and merges into a managed region without overwriting your customizations.

React to Figma

Skill What it does
shadcncraft-import-app Scan a React app built on shadcn/ui and write an import plan: what maps to existing kit components, what needs a custom Component or Block, which screens and app shell it has, plus token drift and code hygiene flags. Read-only: it never edits your code or your Figma file.
shadcncraft-import-component Build one approved custom Component from the plan as a Figma component set, with variants and states taken from your React source and the rendered DOM.
shadcncraft-import-block Build one approved Block, screen, or app shell from the plan. Blocks are composed from kit instances; screens are built at 1440 and 375.

How the three work together:

  1. import-app writes import-plan.md for you to review and approve, and import-plan.json for the build skills.
  2. import-component and import-block build one approved unit per run, in dependency order. They first measure the running app in light and dark, saving captures under .shadcncraft/captures/. Progress is saved to the plan, so an interrupted build resumes instead of starting over.
  3. Approving the plan approves the build order only. New variables, changes to existing kit components, and token substitutions are each proposed and wait for your approval.

Requirements

  • Claude Code, Cursor, Codex, or another agent that supports Agent Skills.
  • The official Figma MCP, connected.
  • Figma to React: a project set up for shadcncraft, with the @shadcncraft registry in components.json and a globals.css that has the shadcn token block.
  • React to Figma: your own copy of the shadcncraft Figma kit, and a React app built on shadcn/ui (local folder or GitHub URL). The two build skills also need a Figma MCP that can write to the canvas and a running dev server. These are long workflows, so use the most capable model your editor offers.

Install

npx skills add shadcncraft/skills

Or use the npm installer, which can target specific agent tools:

npx @shadcncraft/skills add all

Restart your agent to pick up the new skills. More in the installation guide.

Access

The skills are free to install. What each one can do depends on what it touches:

Skill Who can use it
shadcncraft-import-variables Everyone. It only reads design tokens and writes globals.css.
shadcncraft-import-app, shadcncraft-import-component, shadcncraft-import-block Anyone with a copy of the shadcncraft Figma kit. They work in your own code and your own Figma file, so no license key is needed.
shadcncraft-generate-code Pro React or Pro Figma + React customers. It installs pro blocks from the shadcncraft registry, which requires SHADCNCRAFT_LICENSE_KEY. Without a key, the skill points you to pricing.

License

  • The skills in this repository (instructions and references) are MIT licensed.
  • The registry blocks that generate-code installs are licensed separately. Free blocks work as is; pro blocks require a Pro React or Pro Figma + React license under the shadcncraft license.

Related

  • Figma plugin: generates code from inside Figma. These skills are its in-editor counterpart.
  • UI Rules: a companion MCP for your design rules. Support in import-variables is coming soon and will never be required.

About

shadcncraft Agent Skills

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors