extract

extract is a command for coding agents from Muminur/frontend-design-craft-skill. It costs 9 tokens per session (412 once invoked), scanned A, original, MIT.

A code-refactoring command that finds repeated styles, values, and interface structures, then moves suitable ones into shared components or reusable design tokens. Design tokens are named values for things such as colors, spacing, type, and animation.

In plain words
What is it for?
Use it in HTML, JSX, or Tailwind code to share repeated markup, colors, spacing, typography, animation settings, and utility-class combinations.
Why use it?
It reduces duplicated code and repeated visual values while avoiding abstractions that are not useful. It also updates the places that used the repeated code.

Command

Part of the craft plugin — 4 skills, 13 commands shipped together

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.

agentmods
npx agentmods add commands/muminur/frontend-design-craft-skill/extract
Clone the repo
git clone --depth 1 https://github.com/Muminur/frontend-design-craft-skill

Or install craft, the plugin that ships this one along with the rest of its 4 skills, 13 commands.

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 extract

README.md
[![agentmods](https://agentmods.dev/badge/commands/muminur/frontend-design-craft-skill/extract.svg)](https://agentmods.dev/commands/muminur/frontend-design-craft-skill/extract)
Your own site
<a href="https://agentmods.dev/commands/muminur/frontend-design-craft-skill/extract"><img src="https://agentmods.dev/badge/commands/muminur/frontend-design-craft-skill/extract.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00009 $0.00412
Opus 5 $0.00005 $0.00206
Sonnet 5 $0.00002 $0.00082
Haiku 4.5 $0.00001 $0.00041

Measured 5d ago against content hash f90b81965706, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

extract 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 5d 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.

commands/extract.md · 50 lines

What it actually says

/extract

Find duplicated patterns and lift them into shared components, design tokens, or utility classes.

Target

$ARGUMENTS

Procedure

  1. Scan for repetition. Look for:
    • The same JSX/HTML structure with minor variations (3+ instances)
    • The same set of Tailwind utility classes used together repeatedly
    • The same color literal appearing in multiple places
    • The same spacing combination (pt-4 pb-6 px-8) repeated
    • The same animation config (duration, easing) repeated
  2. Promote to tokens. For values used 3+ times:
    • Colors → CSS custom properties in :root
    • Spacing → design tokens or theme extensions
    • Type → CSS variables or theme tokens
    • Animation timings/easings → tokens
  3. Promote to components. For JSX structures used 3+ times:
    • Extract to a single component with props for the variation
    • Place in a logical directory (components/ui/, components/marketing/, etc.)
    • Use the same naming convention as the existing codebase
  4. Preserve flexibility. Do not over-abstract. A component used twice in slightly different ways often should stay duplicated. Abstract only when the cost of duplication is real.
  5. Update consumers. Rewrite all callsites to use the new tokens/components. Verify visual parity before claiming done.

Output

## Extract complete

**New tokens:**
  - [name → value, used in N places]

**New components:**
  - [Name (props) — used in N places]

**Files modified:** [list]
**Visual changes:** None (or note any intentional changes)

If any extraction would change visible output, call it out explicitly. The user should expect visual parity by default.

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. 5d ago First seen · 50 lines · 9 tokens per session scan A f90b81965706

Subscribe to this mod's changes

extract is a command published in the GitHub repository Muminur/frontend-design-craft-skill (4 stars, last pushed 3mo ago), licensed MIT. It adds 9 tokens to every session and 412 once invoked, about $0.0000 per session on Opus 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.