/prism:prism-extractfrom prism
Extracts repeated values and markup into design tokens and components. Scans for literal duplicates, near-duplicates, and repeated JSX/HTML patterns, then proposes token names and component APIs.
Ships in prism. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
Count occurrences and distinct files for each:
[#3b82f6], p-[13px])#3b82f6 vs #3b83f6, 12px vs 13px padding. Cluster them; they are drift, and usually one intended valueUse rg with counts, not eyeballing. Skip node_modules, build output, generated files, vendored code, and tests.
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).
Tokens
--color-danger, --space-card-padding), not by value (--blue-3b82f6). Add raw primitives only if the system has a primitive layerComponents
children and slots over props; variants as a small typed union; extend native element props; forward refs; no anyPresent the proposal and stop for confirmation when a rename touches more than ~20 files or changes visible output.
rg + sed only for exact matches; review the diff, don't trust itDon't mix extraction with unrelated fixes. Don't reformat files you touch.
┌─ Extract: [scope] ──────────────────────────────────────────┐
│ Tokens: [N added · N drift clusters merged] │
│ Components: [N extracted · N usages migrated] │
│ Literals: [before → after] │
│ ▲ WARNING [value] matches no token — ask Form │
│ ● INFO Skipped (under 3 uses): [list] │
│ Tests: [suite pass/fail] │
└──────────────────────────────────────────────────────────────┘
If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/prism-auditFrontend audit — bundle size, dependencies, accessibility, performance, component quality. Use when asked for "frontend review", "performance audit", "accessibility check", or "bundle size"./prism-chartUse when asked to implement a chart, select a visualization type, or build a
data display component. Examples: "implement chart for time series", "best
visualization for comparison data", "chart component for analytics"
/prism-componentImplement a reusable, accessible, typed component from a design spec. Use when asked to "create a component", "build a widget", "implement this design", or "reusable UI element"./prism-dashboardBuild an internal dashboard with data tables, filters, detail views, and CRUD. Use when asked to build an "admin panel", "internal dashboard", "back office", or "data dashboard UI"./prism-hardenMake UI survive real data — overflow, i18n, empty/error/loading states, extreme values. Use when asked to "harden this UI", "handle edge cases", or "make it production-ready"./prism-reconFrontend reconnaissance — map the component tree, routing, state management, build config, and assess quality. Use when asked to "understand this frontend", "frontend assessment", or "what's the UI built with".3 plugins in one repository ship this exact skill · first indexed Nov 10, 2026
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' skills for the same job