tw-component

tw-component is a skill for Claude Code, Codex from RoninForge/roninforge-tailwind-v4. It costs 43 tokens per session (592 once invoked), scanned A, original, MIT.

A guide for generating accessible user-interface components with Tailwind CSS version 4, a utility-based styling system. It checks the project’s Tailwind version and uses its theme variables when available.

In plain words
What is it for?
Use it when building reusable buttons, forms, panels, or other interface components in a Tailwind CSS v4 project.
Why use it?
It helps avoid using outdated Tailwind version 3 syntax or ignoring the project’s existing design tokens and accessibility needs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building reusable buttons, forms, panels, or other interface components in a Tailwind CSS v4 project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roninforge/roninforge-tailwind-v4/tw-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 RoninForge/roninforge-tailwind-v4 --skill tw-component
Clone the repo
git clone --depth 1 https://github.com/RoninForge/roninforge-tailwind-v4

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 tw-component

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/roninforge/roninforge-tailwind-v4/tw-component"><img src="https://agentmods.dev/badge/skills/roninforge/roninforge-tailwind-v4/tw-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 592 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.00592
Opus 5.5 $0.00017 $0.00237
Sonnet 5.5 $0.00009 $0.00118
Haiku 4.5 $0.00004 $0.00059

Measured 1mo ago against content hash 50e764b9f588, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tw-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 1mo 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.

skills/tw-component/SKILL.md · 51 lines

How it starts

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

Generate Tailwind v4 Component

When to Use

Use this skill when:

  • Creating a new UI component with Tailwind CSS v4
  • Building a reusable component that should use correct v4 patterns
  • The user asks for a component and the project uses Tailwind v4

Instructions

  1. Identify the component type and requirements from the user's description

  2. Before generating any markup, verify the project is using Tailwind v4 by checking for @import "tailwindcss" in the CSS entry point. If the project uses @tailwind directives, it is v3 - warn the user and suggest /tw-migrate first.

  3. Check the project's @theme block (if any) for custom design tokens. Prefer semantic token names over raw Tailwind colors:

    • If --color-brand exists, use bg-brand not bg-blue-500
    • If --color-surface exists, use bg-surface not bg-gray-900
    • If --font-body exists, use font-body not font-sans
  4. Generate the component following these v4 rules:

    • Use v4 utility names (shadow-xs not shadow-sm, rounded-xs not rounded-sm, etc.)
    • Use / opacity modifier (bg-black/50) not opacity utilities (bg-opacity-50)
    • Use outline-hidden not outline-none for focus styles
    • Always include explicit border colors (border-gray-200, not bare border)
    • Always include cursor-pointer on clickable elements
    • Include focus-visible: styles for keyboard accessibility
    • Use gap-* with flex/grid instead of space-* where practical
    • Use container queries (@container, @sm:, @md:) for component-level responsiveness when appropriate
    • Do not use the transform class prefix
  5. Always include accessibility attributes:

    • aria-label or visible text for interactive elements
    • sr-only text for icon-only buttons
    • Correct role attributes where semantic HTML is not used
    • focus-visible ring or outline styles
  6. If the component uses dark mode, use the dark: variant:

    <div class="bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100">
    

Read the full file on GitHub · 51 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 51 lines · 43 tokens per session scan A 50e764b9f588

Subscribe to this mod's changes

tw-component is a skill published in the GitHub repository RoninForge/roninforge-tailwind-v4 (2 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 592 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-08-31.

Related

Other skills, from other repositories

brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established…

wshobson/agents · 112 tokens

Responsive Layout Reviewer

Reviews HTML/CSS or component code for responsive design issues across mobile, tablet, and desktop breakpoints.

Notysoty/openagentskills · 25 tokens

tinted-ui-tokens-skills

A design-token generator that turns one brand colour into coordinated colours for interface backgrounds, borders, text, shadows, semantic states, gradients, icons, and dark mode. Design tokens are named colour values reused across a product's interface.

truman-t3/tinted-ui-tokens-skills · 181 tokens

premium-ui-craft

Linear/Stripe/Apple-grade UI craft. Use for Product Designer / @Design, dashboards, shadcn, or generic SaaS UI.

kleosr/kleosrules · 34 tokens

ui-design

Create distinctive, production-grade web interfaces with high design quality using Tailwind CSS. Use for building UI components, pages, dashboards, apps, and web applications. Generates crafted, polished code that avoids generic AI aesthetics.

jaansokk/cursor_tools · 46 tokens

premium-web-design

Transform any website into a premium, Apple-quality web experience. Use when building new websites, redesigning existing ones, reviewing web design quality, implementing landing pages, or when the user mentions "premium", "luxury", "high-end", "Apple-like", or "professional" website design. Also activate when creating…

Lucxar/premium-web-design-skill · 82 tokens