superpowers-sage:design-extractor

superpowers-sage:design-extractor is an agent for Claude Code from hekivo/superpowers-sage. It costs 66 tokens per session (2,544 once invoked), scanned C, original, MIT.

A design-analysis agent that reads references from Paper, Figma, Stitch, or local images and records how an interface is built. Its output describes things such as fonts, colors, spacing, layout, and vector graphics.

In plain words
What is it for?
It is for documenting an entire project's design tokens or closely examining individual components. It produces files for other building and visual-checking tools, but does not implement the design.
Why use it?
It turns visual references into written specifications that developers can use when building the interface. This reduces the need to estimate design values by eye.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Part of the superpowers-sage plugin — 36 skills, 3 commands, 11 agents, 7 hooks shipped together

Good fit It is for documenting an entire project's design tokens or closely examining individual components. It produces files for other building and visual-checking tools, but does not implement the design.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hekivo/superpowers-sage/design-extractor
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/hekivo/superpowers-sage

Made for: Claude Code.

Or install superpowers-sage, the plugin that ships this one along with the rest of its 36 skills, 3 commands, 11 agents, 7 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 superpowers-sage:design-extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/hekivo/superpowers-sage/design-extractor.svg)](https://agentmods.dev/agents/hekivo/superpowers-sage/design-extractor)
Your own site
<a href="https://agentmods.dev/agents/hekivo/superpowers-sage/design-extractor"><img src="https://agentmods.dev/badge/agents/hekivo/superpowers-sage/design-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,544 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00066 $0.02544
Opus 5 $0.00033 $0.01272
Sonnet 5 $0.00013 $0.00509
Haiku 4.5 $0.00007 $0.00254

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

Security

Grade C, and why

superpowers-sage:design-extractor scanned grade C with 1 finding 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 8d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- system-integrity icon -->
agents/design-extractor.md · 213 lines

How it starts

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

You are a design extraction specialist. You read design references (Paper, Figma, Stitch, or local images) and produce structured, precise specification files for the building skill and visual-verifier agent. You do NOT implement anything — you only extract and document.

MANDATORY: All output artifacts (design specs, token names, section labels, descriptions) MUST be written in en-US. Never mix languages.

⚠️ MCP AVAILABILITY CONSTRAINT

As a subagent, you may not have access to design-tool MCPs (Paper, Figma, Stitch, Pencil) even when the parent session does. Claude Code subagents run with a restricted tool set that does NOT automatically inherit all MCPs from the calling session.

Before fabricating any spec, verify MCP tool access:

  1. Run ToolSearch for the MCP you need (e.g. mcp__pencil__batch_get, mcp__figma__get_design_context, mcp__paper__get_node_info, mcp__stitch__get_screen).
  2. If the tool is NOT available:
    • STOP immediately. Do NOT fill in "VERIFY" placeholders or estimate values visually.
    • Look for pre-captured data on disk at the paths the caller should have provided:
      • docs/plans/<plan>/assets/section-<name>-ref.png — reference screenshot
      • docs/plans/<plan>/assets/section-<name>.styles.json — computed styles dump (Paper)
      • docs/plans/<plan>/assets/section-<name>.reference.jsx — structural reference (Paper)
      • docs/plans/<plan>/assets/section-<name>.nodes.json — node tree dump (Figma/Pencil)
    • If pre-captured data exists, use it as the source of truth and emit the spec.
    • If nothing is on disk, return:
      ⛔ BLOCKED — MCP unavailable and no pre-captured data on disk.
      Caller must either:
        (a) dispatch with the required MCP tools available, OR
        (b) pre-capture reference data in docs/plans/<plan>/assets/ before dispatching.
      
  3. If the tool IS available, proceed normally with live extraction.

Never fabricate values you cannot verify. The caller depends on your spec for pixel-exact implementation.

When the source is Paper, also persist assets/section-<name>.styles.json (from mcp__paper__get_computed_styles) and assets/section-<name>.reference.jsx (from mcp__paper__get_jsx). The JSX file is a STRUCTURAL REFERENCE ONLY — Sage uses Blade, not React; do not copy it as code.

Read the full file on GitHub · 213 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. 8d ago First seen · 213 lines · 66 tokens per session scan C cd0db9d9d85d

Subscribe to this mod's changes

superpowers-sage:design-extractor is an agent published in the GitHub repository hekivo/superpowers-sage (13 stars, last pushed 3mo ago), licensed MIT. It adds 66 tokens to every session and 2,544 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ux-flow-auditor

Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app. Automatically scans SwiftUI and UIKit code for user journey defects - detects dead ends, dismiss traps, buried CTAs, missing loading/error/empty states…

CharlesWiltgen/Axiom · 190 tokens

slide-auditor

Visual layout auditor for RevealJS and Beamer slides. Checks for overflow, font consistency, box fatigue, and spacing issues. Use proactively after creating or modifying slides.

brycewang-stanford/Auto-Empirical-Research-Skills · 38 tokens

design

Design system generator — maps product domain to style, palette, typography, anti-patterns. Creates .rune/design-system.md. Use BEFORE any frontend code generation.

Rune-kit/rune · 35 tokens

mobile-ux-optimizer

Use this agent when you need to optimize UI/UX components or interfaces for mobile-first experiences, analyze existing design themes, or ensure mobile usability standards are met. Examples: Context: User has created a desktop-focused component and needs it optimized for mobile. user: 'I've built this navigation…

xbim08/awesome-claude-code-plugins · 0 tokens

frontend-reviewer

Reviews interface, branding and copy. Always verifies against a screenshot and the rendered DOM, never by reading CSS or HTML.

everywan-dev/claude-code-engineering · 28 tokens

unity-ui-pro

Build Unity UI — UI Toolkit (UXML/USS/UIDocument) and UGUI (Canvas/RectTransform). Handles screen architecture, data binding, runtime UI performance, gamepad/keyboard input, and cross-platform UI scaling. Use PROACTIVELY for new screens, HUD, menus, in-game dialogs, settings, or any UI work in Unity 2022.3+. Not for…

AcKeskin/contexture · 102 tokens