tx-styling — community tx-styling, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing streamlined Tailwind CSS styling and linting capabilities. Compile-time Tailwind grouping + linting.

landfolk landfolk
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The tx-styling skill by landfolk is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Frontend Agents needing streamlined Tailwind CSS styling and linting capabilities.

Core Value

Empowers agents to enforce compile-time Tailwind grouping and linting using the `tx` prop and template literals, while preferring `tx` over `className` for seamless integration with React and Next.js applications.

Capabilities Granted for tx-styling

Debugging grouping and Tailwind extraction issues in React components
Optimizing conditional styles using arrays and avoiding string concatenation
Integrating `@landfolk/tx` into existing React and Next.js projects for enhanced styling

! Prerequisites & Limits

  • Requires React or Next.js environment
  • Limited to Tailwind CSS framework
  • Needs `@landfolk/tx` library integration
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

tx-styling

Install tx-styling, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

tx styling

When to use

  • Editing components that use the tx prop or tx template literals.
  • Integrating @landfolk/tx into a React/Next.js app.
  • Debugging grouping, Tailwind extraction, or linting around tx.

Core rules

  • Prefer tx over className for Tailwind classes.
  • Use arrays for conditional styles; avoid string concatenation.
  • Use grouping syntax like hover:(bg-blue-500 text-white).
  • Do not forward tx props; only forward className.
  • For styleable components, merge className into tx.

Tooling overview

  • SWC plugin rewrites tx to className at compile time.
  • Tailwind transformer expands grouped classes for JIT extraction.
  • ESLint rule sorts and validates classes.

Grouping syntax

Example:

tsx
1<div tx="hover:(bg-blue-500 text-white)" />

Compiles to className="hover:bg-blue-500 hover:text-white". Groups can be nested.

SWC transform

  • tx="..." becomes className="...".
  • Arrays like tx={[cond && tx...]} become joined className arrays.
  • Tagged tx templates expand at compile time.
  • In dev, class strings can be wrapped with a conflict checker if registered.

Register the dev-only conflict checker once:

ts
1import '@landfolk/tx/checkConflicts'

Tailwind transformer

The transformer scans tx attributes and template literals to expand grouped syntax into full class lists so Tailwind JIT sees every class.

ESLint rule

@landfolk/tx/optimize-tailwind-classes:

  • Expands grouped syntax and re-compacts in a stable order.
  • Sorts classes using Tailwind's internal order.
  • Normalizes whitespace in arbitrary values.
  • Can validate class names when given a Tailwind config path.

Getting started

See getting-started.md for install, config, and Next.js compatibility.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is tx-styling?

Perfect for Frontend Agents needing streamlined Tailwind CSS styling and linting capabilities. Compile-time Tailwind grouping + linting.

How do I install tx-styling?

Run the command: npx killer-skills add landfolk/tx/tx-styling. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for tx-styling?

Key use cases include: Debugging grouping and Tailwind extraction issues in React components, Optimizing conditional styles using arrays and avoiding string concatenation, Integrating `@landfolk/tx` into existing React and Next.js projects for enhanced styling.

Which IDEs are compatible with tx-styling?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for tx-styling?

Requires React or Next.js environment. Limited to Tailwind CSS framework. Needs `@landfolk/tx` library integration.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add landfolk/tx/tx-styling. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use tx-styling immediately in the current project.

Related Skills

Looking for an alternative to tx-styling or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI