- Claude Code CLI (
claude) — claude.ai/code - Figma MCP server — configured in your Claude MCP settings. Used for
mcp__figma__*tools throughout the audit. - Optics MCP server (optional, recommended) —
mcp__optics__*tools enable automatic token mapping and contrast checking. Without it the skill falls back to grep-based analysis. - Node.js 18+ — required for token generation scripts
git clone git@github.com:RoleModel/rolemodel-design-skills.git /path/to/rolemodel-design-skillsln -s /path/to/rolemodel-design-skills/skills/ux-audit ~/.claude/skills/ux-auditVerify it's available — restart Claude Code and check that /ux-audit appears in skill completions.
In your ~/.claude/mcp.json (or equivalent), ensure you have the Figma and Optics servers configured:
{
"mcpServers": {
"figma": {
"command": "npx",
"args": ["-y", "@figma/mcp-server"],
"env": { "FIGMA_ACCESS_TOKEN": "YOUR_TOKEN" }
},
"optics": {
"command": "npx",
"args": ["-y", "@rolemodel/optics-mcp"]
}
}
}Run /ux-audit and Claude will prompt you for answers and create the file, or create it manually:
{
"audience": "client",
"designSystem": {
"name": "optics",
"package": "@rolemodel/optics",
"tokenPrefix": "--op-"
},
"brand": {
"name": "ProjectName",
"primaryHue": 46,
"primarySaturation": 97,
"primaryLightness": 49,
"neutralHue": 226,
"neutralSaturation": 5,
"fontFamily": "DM Sans",
"caseStudyUrl": "https://rolemodelsoftware.com/case-studies/your-project"
},
"figma": {
"fileKey": null,
"outputMode": "newFile"
},
"outputDir": "dev-tools/ux-audit-output",
"appUrl": "http://localhost:3000"
}Key fields:
audience—"client"or"internal". This changes everything: tone, report structure, finding language.brand.caseStudyUrl— if set, Claude fetches the case study to ground the "Then" section in real context and pull the hero image.figma.fileKey— leavenullto create a new file, or paste an existing key from a Figma URL.
# Full audit (all 5 phases)
/ux-audit
# Individual phases
/ux-audit scan
/ux-audit tokens
/ux-audit accessibility
/ux-audit report
/ux-audit figmaAfter Phase 4 generates the HTML report:
/ux-audit figmaThis uses mcp__figma__generate_figma_design to push the report. Claude will start a local HTTP server, open the page in your browser, and poll for completion.
The skill works on any web project. When designSystem.name is not "optics", token mapping falls back to grep-based analysis against whatever CSS/token files it finds in node_modules or the project. Set designSystem.name to match the system in use (e.g. "tailwind", "bootstrap", "custom").
cd /path/to/rolemodel-design-skills
git pullThe symlink means your Claude Code installation picks up changes immediately — no reinstall needed.
