prism-component

prism-component is a skill for Claude Code from tonone-ai/tonone. It costs 43 tokens per session (2,399 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 — 80 skills 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 80 skills.

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,399 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.02399
Opus 5.5 $0.00017 $0.00960
Sonnet 5.5 $0.00009 $0.00480
Haiku 4.5 $0.00004 $0.00240

Measured 17d ago against content hash ed46c4c7a1ce, 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 17d 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 · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 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 · 271 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. 17d 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 (76 stars, last pushed 9d ago), licensed MIT. It adds 43 tokens to every session and 2,399 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

Other skills, from other repositories

dev-shadcn

Integration and customization of shadcn/ui (copy-paste React components, Radix + Tailwind). Trigger when the user wants to install shadcn, add components, customize the theme, or when shadcn/ui usage is detected in the project.

christopherlouet/claude-base · 57 tokens

nextjs-ssr-patterns

Default command for population on a fresh worktree or after a git pull that includes a lockfile change: npm ci — lockfile-respecting, deterministic install. Run from the project root. This is the form CI workflows and Dockerfiles use. The bare npm install form is acceptable only when the lockfile is known-stale or for…

lukasrepublic/agentic-foundry · 0 tokens

vite-spa-patterns

Default command for population on a fresh worktree or after a git pull that includes a lockfile change: npm ci — lockfile-respecting, deterministic install. Run from the project root. This is the form CI workflows and Dockerfiles use. The bare npm install form is acceptable only when the lockfile is known-stale or for…

lukasrepublic/agentic-foundry · 0 tokens

component-patterns

React component composition patterns including compound components, render props, HOCs, and controlled vs uncontrolled components. Use when the user is building React components, asking about component architecture, refactoring components, or designing reusable UI APIs. Trigger on mentions of compound components…

VersoXBT/claude-initial-setup · 72 tokens

power-design

POWER, Demônio do Sangue, assume design e front-end. Use ao pedir /power-design, design, UI, UX, front-end, landing page, dashboard, componente, layout, responsivo, CSS (vanilla), Tailwind, React/Next, design system, DESIGN.md, tipografia, paleta, animação, acessibilidade, revisar ou redesenhar interface, "nível alto…

SoftMissT/tudo-sobre-vibe-coding · 230 tokens

svg-mastery

Expert knowledge for working with SVG (Scalable Vector Graphics) — optimization, embedding, animation, accessibility, responsive scaling, React integration, filters, and programmatic creation. Use when the user asks to "optimize SVG", "clean up SVG", "reduce SVG file size", "embed SVG in HTML", "inline SVG vs img…

lukaskellerstein/claude-my-marketplace · 276 tokens