prism-extract

prism-extract is a skill for Claude Code from tonone-ai/tonone. It costs 42 tokens per session (1,222 once invoked), scanned A, original, MIT.

A frontend cleanup workflow that finds repeated visual values and UI patterns, then turns supported repetitions into shared design tokens and components. Design tokens are named values such as colors, spacing, and type sizes used consistently across an interface.

In plain words
What is it for?
Use it to extract repeated colors, spacing, typography, and component patterns into the project's existing design system.
Why use it?
It reduces duplicated styles and helps prevent small differences from accumulating across screens and components.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; mentions Claude Code.

Part of the engineering-team plugin — 87 skills, 2 hooks shipped together

Good fit Use it to extract repeated colors, spacing, typography, and component patterns into the project's existing design system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonone-ai/tonone/prism-extract
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.

Any agent
npx skills add tonone-ai/tonone --skill prism-extract
Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Made for: Claude Code.

Or install engineering-team, the plugin that ships this one along with the rest of its 87 skills, 2 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 prism-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonone-ai/tonone/prism-extract/github.svg)](https://agentmods.dev/skills/tonone-ai/tonone/prism-extract)
Your own site
<a href="https://agentmods.dev/skills/tonone-ai/tonone/prism-extract"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/prism-extract/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 prism-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonone-ai/tonone/prism-extract"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/prism-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,222 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.00042 $0.01222
Opus 5.5 $0.00017 $0.00489
Sonnet 5.5 $0.00008 $0.00244
Haiku 4.5 $0.00004 $0.00122

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

Security

Grade A, and why

prism-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 19d 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.

bundle/engineering-team/skills/prism-extract/SKILL.md · 88 lines

How it starts

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

Extract Tokens and Components

You are Prism — the frontend and developer experience engineer from the Engineering Team. You turn what the codebase already repeats into the system it should have had. Evidence first: extract what recurs, not what might.

Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.

Steps

Step 0: Detect the Existing System

Read package.json, tailwind.config.*, CSS custom property files, theme files, Form's DESIGN.md / token output, and src/components/ or ui/. Note naming conventions (--color-primary vs --brand-500), semantic vs raw layers, and which components already exist. New names must fit this system. Form's tokens win on conflict; values that match no token get flagged to Form, not silently invented.

Step 1: Scan for Repetition

Count occurrences and distinct files for each:

  • Literals: hex/rgb/hsl, px/rem spacing, border radii, box shadows, font sizes/weights/line heights, z-indexes, durations and easings, breakpoints. Include Tailwind arbitrary values ([#3b82f6], p-[13px])
  • Near-duplicates: #3b82f6 vs #3b83f6, 12px vs 13px padding. Cluster them; they are drift, and usually one intended value
  • Markup: repeated JSX/HTML shapes (card, badge, empty state, form field, modal frame, table row), identical class strings, copy-pasted handlers

Use rg with counts, not eyeballing. Skip node_modules, build output, generated files, vendored code, and tests.

Step 2: Rank

Score = frequency × spread (distinct files/features). Rule of three: fewer than 3 uses, or all in one file: leave it, it's a one-off. High frequency in one file: local constant, not a token. Output a ranked table: candidate, uses, files, proposed name, action (token / component / local / skip).

Step 3: Propose Names and APIs

Read the full file on GitHub · 88 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. 19d ago Changed · +2 lines 3fb5e9dc462f
  2. 20d ago First seen · 86 lines · 42 tokens per session scan A 452e56b9250b

Subscribe to this mod's changes

prism-extract is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,222 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-11-10.

Related

prism-extract compared with skills from other repositories

prism-extract next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prism-extracttonone-ai/tononeSkill842d agoMITA42Claude Code
brand-landingpagewshobson/agentsSkill43k5d agoMITA112Claude Code
scroll-craftnateherkai/scroll-craftSkill5.6k2mo agoMITA177Claude Code
wigtn-artifactwigtn/wigtn-pluginsSkill45todayApache-2.0A324Claude Code
design-system-referencewigtn/wigtn-pluginsSkill45todayApache-2.0A43Claude Code
software-ui-ux-designvasilyu1983/AI-Agents-publicSkill1011mo agoMITA38Claude Code, Codex
software-accessibilityvasilyu1983/AI-Agents-publicSkill1011mo agoMITA32Claude Code, Codex