Skip to main content
subagent CX Codex GP ChatGPT official · OpenAI

design-system-rules-agent — Claude subagent: Figma-to-code rules

A subagent that turns your codebase conventions into Figma-to-code rules and writes them into AGENTS.md, so later implementations stay consistent.

Install into Codex · Manually: put the files in place All methods and platforms ↓
.codex/agents/design-system-rules-agent.toml
Open on GitHub

What design-system-rules-agent does

The agent pairs with Figma MCP. It calls the create_design_system_rules tool first, then reads the codebase to find where components live, which tokens exist and how styling is done. What comes back is a set of specific, enforceable rules rather than vague advice.

The output is structured for direct pasting into AGENTS.md: codebase findings, proposed rules, the section to save them in, and a validation plan built around a small test implementation. Setup is one file — .codex/agents/design-system-rules-agent.toml.

If Figma MCP is not connected, the create_design_system_rules step cannot run and you are back to writing rules by hand. Worth checking that the Figma MCP server is reachable in your Claude session before you rely on this.

What it helps with

  • collect Figma-to-code rules into one file
  • locate real component paths and tokens in a project
  • lock styling conventions for future tasks
  • validate rules with a small test implementation
  • refresh AGENTS.md after the project structure changes

Example prompts for the agent

  • run design-system-rules-agent and propose rules for AGENTS.md
  • scan the codebase and draft Figma-to-code conventions
  • update the design system rules and show me the validation plan

How to install design-system-rules-agent

Manually: put the files in place

.codex/agents/design-system-rules-agent.toml

Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about design-system-rules-agent

How do I install design-system-rules-agent in Claude?

Create the file .codex/agents/design-system-rules-agent.toml. That is the whole install step for Claude.

What does design-system-rules-agent do?

It generates or updates Figma-to-code rules for AGENTS.md by analyzing component locations, tokens and styling conventions in the codebase, then returns a copy-ready rule set.

What does the agent need to run?

Access to the Figma MCP create_design_system_rules tool, which the agent calls before drafting the final rules.

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

From the same set304

The whole set →
portfolio-risk-management Turns a listed-equity thesis into an implementable risk posture: how much to hold, what to hedge with, and when to resize. CX Codex GP ChatGPT ★ 7,596repo stars equity-model-update Updates a copy of a public-company Excel model from source-to-model maps and returns the XLSX with a change log. CX Codex GP ChatGPT ★ 7,596repo stars cuopt-user-rules A skill that tells the agent how to help with NVIDIA cuOpt: routing, LP, MILP, QP, installation and the server. CX Codex GP ChatGPT ★ 7,596repo stars mixpanel-auth A Claude skill that manages Mixpanel accounts: checks the session, adds credentials, runs OAuth login and switches projects. CX Codex GP ChatGPT ★ 7,596repo stars setup-codex-run-actions Wires the current Expo project into the Claude action bar with a Run button, plus iOS, Android or web buttons when you ask for them. CX Codex GP ChatGPT ★ 7,596repo stars inspect-dropbox-file This skill reports metadata for a Dropbox file or folder, checks shared links, and reads content when asked. Handy when you need to know what a file is and who can open it. CX Codex GP ChatGPT ★ 7,596repo stars build-mcp A slash command that walks your agent through building a remote MCP server on Cloudflare Workers, with tools, OAuth 2.0 and deployment. CX Codex GP ChatGPT ★ 7,596repo stars canva-implement-feedback This skill reads every comment thread on a Canva design, makes the clear-cut edits through the API, and lists what still needs a human. CX Codex GP ChatGPT ★ 7,596repo stars

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