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

create-design-system-rules — Codex command for Figma rules

This command builds project-specific rules for turning Figma designs into code and formats them for AGENTS.md. Use it before implementing UI work.

Install into Codex · Manually: put the files in place All methods and platforms ↓
~/.codex/prompts/create-design-system-rules.md
Open on GitHub

What create-design-system-rules does

The command first checks whether Figma MCP can be reached. It then calls create_design_system_rules with hints about the project’s language and framework, and inspects the repository for component locations, design tokens, naming patterns, and styling conventions.

Its result is a copy-ready rule set plus a brief validation plan. The output identifies concrete component and token paths, separates hard requirements under IMPORTANT, and gives the exact section heading to add to AGENTS.md.

Figma MCP access is required before the command can run its main tool call. For Codex, place the command file at ~/.codex/prompts/create-design-system-rules.md.

What it helps with

  • derive Figma-to-code rules from a repository
  • locate component and token paths
  • separate hard constraints from preferences
  • prepare a section for AGENTS.md
  • outline checks for the generated rules

Example prompts for the agent

  • Run /create-design-system-rules for this repository and account for its TypeScript and React setup.
  • Inspect the project through Figma MCP, identify component and token paths, and prepare rules for AGENTS.md.
  • Generate implementation rules from the Figma setup, then mark hard constraints with IMPORTANT.

How to install create-design-system-rules

Manually: put the files in place

~/.codex/prompts/create-design-system-rules.md

Call it with /prompts:create-design-system-rules. Codex marks this format deprecated in favour of skills

Questions about create-design-system-rules

How do I install create-design-system-rules in Codex?

Place the command file at ~/.codex/prompts/create-design-system-rules.md.

What does create-design-system-rules do?

It uses Figma MCP and repository analysis to produce project-specific Figma-to-code rules, a validation plan, and an AGENTS.md section heading.

What does create-design-system-rules need to run?

It requires access to Figma MCP so it can call create_design_system_rules. The command also accepts project language and framework hints.

Similar slash commands

All slash commands for Design →

From the same set528

The whole set →
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,604repo stars magicpath This skill wires the agent to the MagicPath platform: it finds canvas components, installs them into your repo and edits them as code. Handy when design lives in MagicPath and the app lives in git. CX Codex GP ChatGPT ★ 7,604repo stars review-design-parity Compares a built interface with its Figma frame and lists where layout, tokens or interactions drift. Useful before handing off a screen. CX Codex GP ChatGPT ★ 7,604repo stars implement-from-figma Converts Figma components and frames directly into project code. It pulls design context, inspects layouts, and checks visual parity. CX Codex GP ChatGPT ★ 7,604repo stars connect-figma-components Builds and refreshes Figma Code Connect templates for components: reads a Figma link, finds the nodes and matches them to code. CX Codex GP ChatGPT ★ 7,604repo stars design-system-rules-agent A subagent that turns your codebase conventions into Figma-to-code rules and writes them into AGENTS.md, so later implementations stay consistent. CX Codex GP ChatGPT ★ 7,604repo 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,604repo stars organize-dropbox-folder This skill restructures Dropbox content by making folders, copying items, or moving them. It fits requests to archive, consolidate, or reorganize files. CX Codex GP ChatGPT ★ 7,604repo 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