.agents/skills/tailwind-reviewer/SKILL.md
Review Tailwind CSS class usage in .tsx files for quality, consistency, and Tailwind v4 best practices.
npx skillsauth add ria3100/tanstack-start-boilerplate tailwind-reviewerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
.tsx ファイルの Tailwind CSS クラスの品質をレビューする。
p-4 p-2)px-4 py-4 → p-4)w-10 h-10 → size-10 のように統一できるかoverflow-hidden text-ellipsis whitespace-nowrap → truncate で置換できるかfont-normal は通常不要)space-x-* / space-y-* を使っていないか → flex + gap-* を使用するflex flex-col gap-* を使用するbg-blue-500 のような直値ではなく bg-primary, text-muted-foreground 等のセマンティックトークンを使用しているかdark: で手動カラー指定していないか → セマンティックトークンで自動対応させるz-index を指定していないか → コンポーネント側で管理されるsm: 以上で上書き)sm: → md: → lg: → xl: → 2xl:)dark: が抜けていないかvar(--xxx))を使っている場合、:root と .dark の両方で定義されているか@apply の使用は最小限に。コンポーネントの props や直接のクラス指定を優先@theme inline で定義されたトークンの利用を推奨cn() (@/lib/utils) を使用しているかw-[347px] 等)がないか。あれば意図を確認styles.css で @utility typo-* として定義されたタイポグラフィユーティリティがある場合、text-lg font-semibold のように個別指定せず typo-large 等の対応するユーティリティを使用しているかtypo-* に該当するパターンを見つけたら置換を提案するstyles.css で定義されたカスタムプロパティを適切に使用しているかsrc/components/ui/ 配下(shadcn 生成ファイル)*.stories.tsx(Storybook のデモ用コード)問題を発見した場合、ファイルパスと行番号を示し、修正案を提示する。問題がなければ何も出力しない。
tools
依存関係を取得・変更する npm/pnpm コマンド実行時に Socket Firewall (sfw) を適用する。
development
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
data-ai
PR レビュー時のチェック観点。プロジェクト規約への準拠、型安全性、Tailwind 品質などを横断的に確認する。
tools
Generate new components under src/components/common/ following project conventions (kebab-case, directory structure, stories).