components

components is a skill for Claude Code, Codex from techtankto/techtank-site. It costs 51 tokens per session (1,206 once invoked), scanned A, original, MIT.

A set of house rules for creating and styling React interface components, including components built with shadcn and Radix. It describes the expected file structure, styling approach, and project organization.

In plain words
What is it for?
Use it when adding, refactoring, or reviewing React components, especially when choosing reusable interface primitives, variants, and layout structure.
Why use it?
It keeps new or changed components consistent with the project's existing code and design patterns.

Skill for Claude CodeCodex

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 skills/techtankto/techtank-site/components
Any agent
npx skills add techtankto/techtank-site --skill components
Clone the repo
git clone --depth 1 https://github.com/techtankto/techtank-site

Made for: Claude Code, Codex.

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 components

README.md
[![agentmods](https://agentmods.dev/badge/skills/techtankto/techtank-site/components.svg)](https://agentmods.dev/skills/techtankto/techtank-site/components)
Your own site
<a href="https://agentmods.dev/skills/techtankto/techtank-site/components"><img src="https://agentmods.dev/badge/skills/techtankto/techtank-site/components.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,206 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.00051 $0.01206
Opus 5 $0.00026 $0.00603
Sonnet 5 $0.00010 $0.00241
Haiku 4.5 $0.00005 $0.00121

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

Security

Grade A, and why

components 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 3d 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.

.agents/skills/components/SKILL.md · 87 lines

How it starts

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

Components

How components are added, shaped, styled, and organized. This skill owns authoring and styling rules; what components exist and what they look like is the design contract's concern, not this skill's.

The flow: shadcn first

  1. Check shadcn before writing anything. Primitives use shadcn, which uses Radix primitives underneath. Adding a new component starts with a check of the shadcn library: if it exists there, import it with the CLI (pnpm dlx shadcn@latest add <name>), then reformat it to the house shape below and re-theme it with the project's design tokens.
  2. Custom components use the identical shape. If shadcn doesn't have it (or the design calls for something bespoke), author it from scratch in exactly the same format; the only difference is there's nothing to import.

The file shape

  1. Every component follows this example skeleton:

    import { forwardRef, type HTMLAttributes } from 'react'
    import { cn, cva, VariantProps } from '@/utils/theme'
    
    const styles = {
      root: cva('…', { variants: { … }, defaultVariants: { … } })
    }
    
    type ExampleRef = HTMLDivElement
    type ExampleProps = HTMLAttributes<ExampleRef> & VariantProps<typeof styles.root>
    
    const Example = forwardRef<ExampleRef, ExampleProps>((props, ref) => {
      // props
      const { className, ...rest } = props
    
      // hooks
    
      // render vars
    
      // jsx
      return <div ref={ref} className={cn(styles.root({ className }))} {...rest}></div>
    })
    Example.displayName = 'Example'
    
    export { Example }
    export type { ExampleProps, ExampleRef }
    

    Order within the file: CVA styles/constants on top → types (XxxRef, XxxProps) → component. Order within the function body, each under its comment: props destructure → hooksrender varsjsx (composed with cn()).

  2. Named exports only: the component plus its Props and Ref types; displayName set on forwardRef components. No default exports.

Read the full file on GitHub · 87 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. 3d ago First seen · 87 lines · 51 tokens per session scan A 23b05e7242c0

Subscribe to this mod's changes

components is a skill published in the GitHub repository techtankto/techtank-site (5 stars, last pushed 7d ago), licensed MIT. It adds 51 tokens to every session and 1,206 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

material-ui-styling

Chooses the right Material UI styling approach (sx, styled, theme overrides, global CSS) from official MUI guidance. Use when styling @mui/material components, customizing themes, overriding slots, or comparing sx vs styled.

mui/material-ui · 52 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

ui-design

Designs, builds, and audits UI in React, Next, and Tailwind: visual direction, Tailwind implementation, dark-mode and responsive retrofits, and a rule-based audit of built frontends covering state gaps, data loss, focus and keyboard failures, accessibility markup, layout resilience, and AI-slop tells, with file:line…

mblode/agent-skills · 241 tokens

light-frontend-design

Light 按需工程技能·前端设计:把模糊的「做个好看的界面」落成能跑的 React/Tailwind/shadcn 代码 + 设计决策说明—— 有视觉记忆点(signature element)、风格自洽(design tokens 一致)、适配场景(学术海报/数据大屏/管理后台/移动端/营销 landing 信息密度各不同)、反「一眼 AI」(紫蓝渐变/Inter/16px 圆角/巨型 hero/居中堆叠/emoji 标题)、视觉无障碍(WCAG 2.2)。 何时用:竞赛作品/项目演示/科研系统界面要做网页或应用 UI / 要改造现有前端 / 要选设计系统或配色或字体 / 要做 dashboard·后台·landing·移动端…

Light0305/Light-skills · 459 tokens

creative-tim-ui

Creative Tim UI block library assistant. Use when adding, generating, or modifying UI blocks/components/pages from creative-tim.com/ui. Covers design philosophy (minimalism, the 95% rule, research-first), block discovery, both CLI install methods, PRO API key setup, and Creative Tim design rules (orange brand…

creativetimofficial/ui · 91 tokens