ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Audit a Figma file against a design brief — checks page structure, frame naming, sizes, styles, components, and content compliance.
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/ux-auditContext preview
What this command does when you run it.
Audit a Figma file against a design brief — checks page structure, frame naming, sizes, styles, components, and content compliance.
description: "Audit a Figma file against a design brief — checks page structure, frame naming, sizes, styles, components, and content compliance." argument-hint: "[brief text or 'check current file']" allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "mcp__*"]
You are running a compliance audit of a Figma file against a design brief. This checks whether a Figma deliverable meets all specified requirements.
Input: **$ARGUMENTS**
Extract structured requirements from the user's brief text. Look for:
| Category | What to extract | |----------|----------------| | **Pages** | Required page names, count, ordering | | **Frames** | Frame naming conventions, required sizes (e.g., 1440×900) | | **Components** | Required component types, variant states, naming patterns | | **Styles** | Required color palette (hex values), text styles (font, size, weight) | | **Content** | Required sections, headings, text content, annotations | | **Variables/Tokens** | Required design tokens, variable collections | | **Naming** | Specific naming conventions (e.g., `S3-A`, `Brand/Primary`) |
If the brief is unclear on specifics, state your assumptions before auditing.
figma_get_status → verify connection figma_get_file_data(depth: 1, verbosity: 'summary') → get file overview
If not connected, guide the user to open the Desktop Bridge plugin.
Check page and frame structure against requirements:
// Get all pages
figma_execute: `
const pages = figma.root.children.map(p => ({
name: p.name,
id: p.id,
childCount: p.children.length
}));
return pages;
`For each required page:
For each required frame:
Check Figma styles against requirements:
// Get all local styles
figma_execute: `
const paintStyles = (await figma.getLocalPaintStylesAsync()).map(s => ({
name: s.name,
id: s.id,
paints: s.paints
}));
const textStyles = (await figma.getLocalTextStylesAsync()).map(s => ({
name: s.name,
id: s.id,
fontSize: s.fontSize,
fontName: s.fontName
}));
return { paintStyles, textStyles };
`For each required color:
For each required text style:
Check components against requirements:
// Find all component sets
figma_execute: `
await figma.loadAllPagesAsync();
const sets = figma.root.findAllWithCriteria({ types: ['COMPONENT_SET'] });
return sets.map(cs => ({
name: cs.name,
id: cs.id,
page: cs.parent?.parent?.name || cs.parent?.name,
variants: cs.children.map(v => v.name)
}));
`For each required component:
Check text content, sections, and annotations:
// Get text content from a specific page
figma_execute: `
const page = await figma.getNodeByIdAsync('PAGE_ID');
const textNodes = page.findAllWithCriteria({ types: ['TEXT'] });
return textNodes.map(t => ({
characters: t.characters.substring(0, 100),
parent: t.parent?.name,
fontSize: t.fontSize
}));
`For each required content element:
Take screenshots and analyze visually:
figma_capture_screenshot(pageNodeId) → for each page
Check each screenshot for:
If the brief requires design tokens or variables:
figma_get_variables(format: 'summary') → get variable overview
Check:
Compile findings into a structured compliance report:
## Compliance Audit Report ### Summary - **File**: [file name] - **Brief**: [brief summary] - **Score**: X / Y requirements met - **Status**: ✅ PASS / ⚠️ PARTIAL / ❌ FAIL ### Detailed Results | # | Category | Requirement | Status | Notes | |---|----------|-------------|--------|-------| | 1 | Structure | Page "Cover" exists | ✅ | — | | 2 | Structure | Frame "S3-A" at 1440×900 | ✅ | 1440×900 confirmed | | 3 | Styles | Color "Brand/Primary" = #1B3A5C | ✅ | — | | 4 | Components | Button with 5 variants | ⚠️ | 4/5 variants found | | 5 | Content | Critique notes present | ❌ | Section missing | ### Missing Items [List each missing requirement with specific fix instructions] ### Recommendations [Optional improvements beyond the brief requirements]
Final score = (PASS count) / (Total requirements) × 100
Your agency's design brain. Always on, always yours. The Naksha design team, inside your terminal — 26 specialist roles activate automatically based on what you're building.
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Full WCAG AA accessibility audit on an HTML file — contrast ratios, keyboard navigation, semantic HTML, ARIA usage, touch…
Generate a complete brand kit from a logo and 1-2 brand colors — full palette, type scale, icon style, component tokens, and…
Define or audit a brand — positioning, visual identity system, voice and tone, and brand architecture.
Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and…
Capture a competitor website with Playwright and extract its color system, typography, layout patterns, and 'steal this'…