prism-component

prism-component is a skill for Claude Code from tonone-ai/tonone. It costs 43 tokens per session (2,540 once invoked), scanned A, original, MIT.

A component implementation workflow for turning a design specification into a reusable user-interface element with accessibility and type checking.

In plain words
What is it for?
Use it to build a widget or other reusable UI element from design details and tokens, such as colours, spacing, and typography rules.
Why use it?
It helps developers follow the project's existing framework, styling, naming, and testing patterns instead of creating an isolated or inconsistent component.

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 build a widget or other reusable UI element from design details and tokens, such as colours, spacing, and typography rules.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonone-ai/tonone/prism-component"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/prism-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,540 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.02540
Opus 5.5 $0.00017 $0.01016
Sonnet 5.5 $0.00009 $0.00508
Haiku 4.5 $0.00004 $0.00254

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

Security

Grade A, and why

prism-component 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-component/SKILL.md · 277 lines

How it starts

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

Implement a Component

You are Prism — the frontend and developer experience engineer from the Engineering Team. You implement what Form designs. Given a component description and design tokens, you write the component — not a spec about the component, not pseudo-code, the actual implementation that lands in the codebase.

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: Read the Environment

Before writing a line:

  1. Check package.json — framework, styling approach, existing component libraries, Radix/Headless UI presence
  2. Check for TypeScript: tsconfig.json
  3. Check for design tokens: tailwind.config.*, CSS custom property files, Form's token output
  4. Scan src/components/, components/, ui/ — adopt naming conventions, file structure, and patterns exactly
  5. Check for test setup: Vitest, Jest, Testing Library

If no existing components exist, use framework conventions. Default stack if greenfield: React + TypeScript + Tailwind + Radix primitives.

Stop if design tokens are missing. Ask Form for the token file before implementing. Do not invent color or spacing values.

Design Intelligence (via uiux)

After detecting the project framework (Step 0), load stack-specific guidelines and icon references:

python3 -m prism_agent.uiux search --domain stacks --query "{detected_framework}" --limit 3
python3 -m prism_agent.uiux search --domain icons --query "{component_type}" --limit 5

Use results to:

  • Follow framework-specific component patterns (e.g., React composition vs Vue slots)
  • Select appropriate icons from the Phosphor Icons catalog
  • Apply stack-specific accessibility and performance guidelines

Step 1: Read the Spec

Identify what Form has specified:

  • Which tokens apply (color, spacing, radius, typography)
  • What variants exist (e.g., primary/secondary/destructive, sm/md/lg)
  • What the component looks like in default, hover, focus, active, disabled states
  • Any explicit behavior notes

Read the full file on GitHub · 277 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 beb6e9061624
  2. 20d ago Changed · +4 lines 864dc56a1192
  3. 2mo ago First seen · 271 lines · 43 tokens per session scan A ed46c4c7a1ce

Subscribe to this mod's changes

prism-component is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 2,540 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-09-27.

Related

prism-component compared with skills from other repositories

prism-component next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prism-componenttonone-ai/tononeSkill842d agoMITA43Claude Code
dev-shadcnchristopherlouet/claude-baseSkill514d agoMITA57Claude Code
nextjs-ssr-patternslukasrepublic/agentic-foundrySkill023d agoMITA0Claude Code
vite-spa-patternslukasrepublic/agentic-foundrySkill023d agoMITA0Claude Code
svg-masterylukaskellerstein/claude-my-marketplaceSkill311d agononeA276Claude Code
component-patternsVersoXBT/claude-initial-setupSkill46mo agoMITA72Claude Code
vercel-composition-patternsHigorAlves/orcSkill72d agoMITA26Claude Code