Agent skill
tailwind-eslint-fix
Auto-fix and verify ESLint better-tailwindcss warnings/errors in frontend files. Use after implementing or refactoring TSX/JSX/frontend code (React, Next.js, Tailwind) when you need to clean up Tailwind class order, canonical class forms, shorthand classes, and line-wrapping warnings.
Install this agent skill to your Project
npx add-skill https://github.com/shaowei-g/codex-skills/tree/main/skills/tailwind-eslint-fix
SKILL.md
Tailwind ESLint Fix
Overview
Use this skill after frontend implementation or refactoring to resolve better-tailwindcss/* lint issues quickly and consistently.
It runs ESLint auto-fix on the target scope, then checks whether any better-tailwindcss warnings/errors still remain.
Workflow
- Choose scope:
- Default scope: all frontend source files (
src/**/*.{ts,tsx,js,jsx}). - Preferred scope: only changed files/directories to keep edits focused.
- Run the fixer script:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir <frontend-package-dir> \
--pm <auto|pnpm|yarn|npm> \
--target "<eslint-glob-or-file-list>"
- Review results:
- If script reports no remaining
better-tailwindcssissues: done. - If issues remain: fix manually, then rerun script until clean.
- Keep scope strict:
- Do not treat unrelated eslint rules as part of this skill's success criteria.
- This skill targets only
better-tailwindcsswarnings/errors.
Quick Commands
Fix whole frontend package:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm auto
Force yarn:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm yarn
Force npm:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm npm
Fix specific directory:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm auto \
--target "src/RefactorComponents/**/*.{ts,tsx}"
Fix specific files:
~/.codex/skills/tailwind-eslint-fix/scripts/fix_better_tailwind.sh \
--project-dir packages/eKoEN \
--pm auto \
--target "src/components/LanguageSelector.tsx src/RefactorComponents/Selects/SelectButton/SingleValue.tsx"
Notes
- This skill supports
pnpm,yarn, andnpm. - Use
--pm autoto detect by lockfile (pnpm-lock.yaml,yarn.lock,package-lock.json) or available command.
Resources
scripts/
fix_better_tailwind.sh: runs eslint--fixon a target scope and verifies remainingbetter-tailwindcssfindings.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
ekoen-frontend-code-review
Production-grade code review for the eKoEN frontend codebase. Use when asked to review, audit, inspect, or harden eKoEN React/Next.js frontend code, pages, components, hooks, API clients, or state layers for bugs, performance bottlenecks, TypeScript safety issues, request inefficiency, state-management risks, memory leaks, rendering regressions, error-handling gaps, duplication, or maintainability problems, especially when a structured severity-ranked report with code locations, root causes, suggested fixes, and example refactors is required.
ekoen-backend.doc.route-error
Add HttpErrorRes responses to eKoEN backend routes when controllers can throw errors from app/util/errors/index.ts
conventional-commit-helper
Generate and validate Conventional Commit messages for semantic-release workflows. Use when a user asks to write a commit message, asks to commit changes, asks for commit type/scope selection, or asks to enforce Conventional Commits consistency.
codex-cli-subagent-transport
Use only when native subagent execution is unavailable and the caller needs one deterministic Codex CLI run with repo-local artifacts and a manifest-based result contract.
skill-usage-logger
All skill MUST use this logger to record usage events in NDJSON format.Log Codex skill usage events to NDJSON with safe concurrent appends.
Didn't find tool you were looking for?