dx-figma-styles

dx-figma-styles is an agent for Claude Code from easingthemes/dx-aem-flow. It costs 43 tokens per session (1,105 once invoked), scanned A, original, MIT.

An analysis agent that discovers a project's CSS and SCSS conventions for a Figma-based prototype.

In plain words
What is it for?
Use it to inspect project rules, configuration, style files, and design tokens before generating frontend components from a Figma design.
Why use it?
It reduces mismatches between generated interface code and the existing project's colors, fonts, spacing, breakpoints, naming, and theme rules.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter.

Part of the dx-core plugin — 50 skills, 7 agents, 4 hooks shipped together

Good fit Use it to inspect project rules, configuration, style files, and design tokens before generating frontend components from a Figma design.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/easingthemes/dx-aem-flow/dx-figma-styles
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/easingthemes/dx-aem-flow

Made for: Claude Code.

Or install dx-core, the plugin that ships this one along with the rest of its 50 skills, 7 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dx-figma-styles

README.md
[![agentmods](https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/dx-figma-styles/github.svg)](https://agentmods.dev/agents/easingthemes/dx-aem-flow/dx-figma-styles)
Your own site
<a href="https://agentmods.dev/agents/easingthemes/dx-aem-flow/dx-figma-styles"><img src="https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/dx-figma-styles/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dx-figma-styles

Your own site · 80×15
<a href="https://agentmods.dev/agents/easingthemes/dx-aem-flow/dx-figma-styles"><img src="https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/dx-figma-styles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01105
Opus 5.5 $0.00017 $0.00442
Sonnet 5.5 $0.00009 $0.00221
Haiku 4.5 $0.00004 $0.00111

Measured 23d ago against content hash c894989da0c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dx-figma-styles scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dx-core/agents/dx-figma-styles.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a styles discovery agent. You analyze a consumer project's CSS/SCSS architecture and return structured convention data for prototype generation.

What You Receive

  • spec_dir — path to the spec directory (e.g., .ai/specs/12345-slug/)
  • figma_tokens — (optional) design tokens from Figma extraction to map against project tokens

Discovery Procedure

Step 1: Read Project Rules

Read .claude/rules/fe-styles.md if it exists. This tells you:

  • Module system (@import vs @use/@forward)
  • Naming conventions (BEM, utility, prefix)
  • Design token approach (Sass vars, CSS custom properties, both)
  • Any project-specific style conventions

If the file doesn't exist, proceed with heuristic discovery.

Step 2: Read Config

Read .ai/config.yaml for frontend paths:

  • frontend.styles-entry — main SCSS entry point
  • frontend.components-dir — where components live
  • Any other frontend-related config

If not configured, use Glob to discover:

Glob: **/*.scss (head_limit: 20)
Glob: **/themes/**/*.scss
Glob: **/styles/**/*.scss
Glob: **/abstracts*.scss

Step 3: Extract Variables & Tokens

Search for and extract:

  1. Colors — Grep for $ variable declarations with color-like values (#hex, rgb, rgba, hsl) and CSS custom property declarations (--*-color). Return variable name + value pairs.

  2. Breakpoints — Grep for breakpoint maps, @media mixin definitions, or named breakpoint variables. Return name + px value pairs.

  3. Typography — Grep for font-family declarations, font-size variables/maps, line-height scales, font-weight conventions. Return the full type scale.

  4. Spacing — Grep for spacing/gutter variables, size maps, margin/padding utilities. Return the spacing scale.

  5. Theming — Look for CSS custom property :root blocks, theme switching patterns, dynamic property declarations.

Step 4: Extract Naming Pattern

From 2-3 component SCSS files (Glob for **/components/**/*.scss, read first 50 lines of each):

  • What prefix is used? (.bat-, .cmp-, .project-, etc.)
  • BEM or other naming? (__element, --modifier)
  • How are variations named?

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · +1 lines c894989da0c9
  2. 3mo ago First seen · 132 lines · 43 tokens per session scan A d49b4c69facd

Subscribe to this mod's changes

dx-figma-styles is an agent published in the GitHub repository easingthemes/dx-aem-flow (9 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 1,105 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

dx-figma-styles compared with agents from other repositories

dx-figma-styles next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dx-figma-styleseasingthemes/dx-aem-flowAgent93d agoMITA43Claude Code
a11y-auditoreduclopez/ui-craftAgent498todayMITA49Claude Code
wireframe-reviewerkumaran-is/claude-code-onboardingAgent373d agoMITA77Claude Code
ui-developerMadAppGang/claude-codeAgent2918mo agoMITA338Claude Code
gem-designerKIMISKI33/awesome-copilotAgent12mo agoMITA22Claude Code
design-performance-criticClaude-Code-Community-Ireland/claude-code-resourcesAgent126mo agoMITA48Claude Code
cli-ui-designerJustdvp/claude-code-templatesAgent71mo agoMITA40Claude Code