HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/.codex/.tmp/plugins/plugins/figma/commands/create-design-system-rules.md
# /create-design-system-rules

Generate project-specific Figma-to-code rules and prepare them for `AGENTS.md`.

## Workflow

1. Verify Figma MCP access.
2. Run the Figma MCP `create_design_system_rules` tool with project language/framework hints.
3. Analyze the repo for component paths, tokens, naming, and styling approach.
4. Produce copy-ready rules and a short validation plan.

## Output requirements

- Include explicit component and token paths from this repo.
- Mark hard constraints (`IMPORTANT`) separately from preferences.
- Provide the exact `AGENTS.md` section heading to use.