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

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/roninforge/roninforge-tailwind-v4/tw-component
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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00043 $0.00592
Opus 5 $0.00022 $0.00296
Sonnet 5 $0.00009 $0.00118
Haiku 4.5 $0.00004 $0.00059

Measured 5d ago against content hash 50e764b9f588, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 2mo ago), licensed MIT. It adds 43 tokens to every session and 592 once invoked, about $0.0002 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

Responsive Layout Reviewer

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

Notysoty/openagentskills · 25 tokens

uikit-expert

Write, review, or improve UIKit code following best practices for view controller lifecycle, Auto Layout, collection views, navigation, animation, memory management, and modern iOS 18–26 APIs. Use when building new UIKit features, refactoring existing views or view controllers, reviewing code quality, adopting modern…

zinxj/uikit-expert-skill · 95 tokens

tinted-ui-tokens-skills

从一个品牌色生成完整、可直接上线的设计 Token 系统:让每一个中性表面(背景、边框、文字、阴影、语义色、渐变、图标、暗色模式)都带上一小撮品牌色的温度,而不是使用纯中性色。当用户想用品牌色 / hex 生成、构建或设计 UI 颜色 Token、设计系统、CSS 变量、染色配色或品牌主题,或想通过修正扁平中性色让现有 UI 显得更高级时使用。触发语示例:给我生成一套设计Token、用这个品牌色出一套配色、UI颜色太廉价了、生成染色中性色系统、build a design system from #XXXXXX、tinted neutral palette。.

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

Dark Mode Testing Patterns

Systematic dark mode testing covering color contrast, theme switching, persistence, media query respect, component-level theming, and image adaptation.

PramodDutta/qaskills · 32 tokens

compose-modernize-build

Modernize an Android project's Gradle build: bump to Kotlin 2.x with kotlin-compose plugin (replace kotlinCompilerExtensionVersion), migrate kapt to KSP, introduce Version Catalogs (libs.versions.toml), use the Compose BOM, switch to Material 3.

RoninForge/roninforge-kotlin-compose · 59 tokens