/nanlabs-design:figma-create-design-system-rulesfrom nanlabs-design
Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.
Ships in nanlabs-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill helps you generate custom design system rules tailored to your project's specific needs. These rules guide AI coding agents to produce consistent, high-quality code when implementing Figma designs, ensuring that your team's conventions, component patterns, and architectural decisions are followed automatically.
| Agent | Rule File |
|---|---|
| Claude Code | AGENTS.md (or CLAUDE.md symlink) |
| opencode | AGENTS.md (or CLAUDE.md symlink) |
| Cursor | .cursor/rules/figma-design-system.mdc |
| Gemini CLI | GEMINI.md (or symlink to AGENTS.md) |
| GitHub Copilot | .github/copilot-instructions.md (or symlink to AGENTS.md) |
| Windsurf | .windsurfrules |
NaNLABS convention: prefer a single
AGENTS.mdand symlink the tool-specific files to it. See the workstationAGENTS.mdportability table for details.
Design system rules are project-level instructions that encode the "unwritten knowledge" of your codebase - the kind of expertise that experienced developers know and would pass on to new team members:
Once defined, these rules dramatically reduce repetitive prompting and ensure consistent output across all Figma implementation tasks.
Use this skill when:
Follow these steps in order. Do not skip steps.
Call the Figma MCP server's create_design_system_rules tool to get the foundational prompt and template.
Parameters:
clientLanguages: Comma-separated list of languages used in the project (e.g., "typescript,javascript", "python", "javascript")clientFrameworks: Framework being used (e.g., "react", "vue", "svelte", "angular", "unknown")This tool returns guidance and a template for creating design system rules.
Structure your design system rules following the template format provided in the tool's response.
| Topic | File |
|---|---|
| Codebase analysis and rule templates | references/workflow-detail.md |
| Examples and troubleshooting | references/examples.md |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/architecture-diagramBuild an interactive, Lucidchart-style architecture diagram of a deployed system as one self-contained HTML page: nested containers (cloud, cluster, namespaces), service boxes with brand icons, numbered flows people can select (user access, operator access over a VPN or tailnet, CI/GitOps deploy, secrets, observability, data), hover details, an inventory table and a 'not there yet' list. Built from the real source of truth (Terraform, Helm, Argo CD, Kubernetes manifests, docker-compose, runbooks), never from guesses. Also exports Mermaid, D2, draw.io, SVG or PNG when the user asks for another format. Use when asked for an architecture diagram, deployment diagram, infrastructure map, 'what is deployed where', network or access flow diagram, or an explainer of an environment for a client, a new engineer or a DevOps handover./figmaUse the Figma MCP server to fetch design context, screenshots, variables, and assets, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting./figma-code-connect-componentsConnects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map this component", "link component to code", "create code connect mapping", or wants to establish mappings between Figma designs and code implementations. For canvas writes (Plugin API), install the opt-in `figma-use` pack documented in `docs/SKILLS.md`./figma-create-new-fileCreate a new blank Figma file. Use when the user wants to create a new Figma design or FigJam file, or when you need a new file before calling use_figma. Handles plan resolution via whoami if needed. Usage — /figma-create-new-file [editorType] [fileName] (e.g. /figma-create-new-file figjam My Whiteboard)/figma-implement-designTranslates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes (Plugin API), see the opt-in `figma-use` pack documented in `docs/SKILLS.md`./ui-ux-pro-maxUI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.npx claudepluginhub nanlabs/agent-toolkit --plugin nanlabs-design