一键导入
polish-styling
Clean Tailwind CSS classnames in modified files. Converts arbitrary values to standard classes, ensures cn() usage, and removes redundant styles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Clean Tailwind CSS classnames in modified files. Converts arbitrary values to standard classes, ensures cn() usage, and removes redundant styles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Security and quality review of code changes. Supports branch comparison (default) and uncommitted changes modes.
Full codebase consistency scan. Checks all hand-written source files against project coding rules for style, pattern, and quality violations. Excludes auto-generated files and node_modules. Use periodically (e.g. before a release or after onboarding new team members) to catch drift from project standards.
Pre-PR quality check with adaptive agent selection, code simplification with user approval, and optimized validation. Scales review depth by diff size.
Post-implementation side effect analysis. Checks consumer impact, shared state, UI components, function signatures, and layout cascade for unintended regressions.
Show concise summary of all changes on current branch vs parent branch. Outputs grouped bullet-point list.
Create React UI components. Use when building new components, forms, dialogs, data tables, or implementing UI features. Guides through component creation workflow from planning to verification.
| name | polish-styling |
| description | Clean Tailwind CSS classnames in modified files. Converts arbitrary values to standard classes, ensures cn() usage, and removes redundant styles. |
Objective: Review and clean up Tailwind CSS classnames in modified files (compare with parent branch to identify which files to review)
Full rules: See
.claude/rules/tailwind.mdfor comprehensive Tailwind standards.
git diff --name-only <parent>...HEAD to find files changed in the current branchCheck for missing cn function usage
cn utilityUse standard Tailwind CSS classes
Size/Spacing conversions:
max-w-89.5, h-4.5) - use them instead of arbitrary valuesh-[120px] → h-30, max-w-[358px] → max-w-89.5, size-[18px] → size-4.5 (divide px by 4)h-[370px] stays as-is since h-92.5 doesn't map cleanly)max-w-89.5 should NOT become max-w-[358px])sm:, md:, lg:, xl:, 2xl:Text size conversions:
text-xs (12px), text-sm (14px), text-base (16px), text-lg (18px), text-xl (20px), text-2xl (24px), text-3xl (30px), text-4xl (36px), text-5xl (48px), etc.text-[32px], text-[40px])text-8 or text-10Color conversions:
#B6912D is NOT the same as yellow-700)@theme section in src/styles.css for available custom colorstext-[#09090b] → text-foreground, bg-[#FCFBF8] → bg-usdsc-backgroundtext-zinc-300, bg-white)Remove unnecessary classnames