بنقرة واحدة
ui-sh-canonicalize-tailwind
Sort, normalize, deduplicate, and resolve conflicting Tailwind utility classes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Sort, normalize, deduplicate, and resolve conflicting Tailwind utility classes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when designing functions, modeling data, choosing types, drawing module boundaries, or deciding what depends on what. Use when evaluating architecture, extracting abstractions, or shaping vertical slices.
Use when writing, reviewing, or refactoring code in any language. Use for architecture decisions, system design, component boundaries, and code quality judgment. Always relevant when touching source code.
Use when writing or reviewing comments, docstrings, names, control flow, or file organization. Use when evaluating readability, choosing identifiers, splitting files, or applying naming conventions. Use when removing AI tells (slop) from code prose — comments, docs, error messages, commit messages, PR descriptions. Covers the visible surface of code.
Run kirby's review engine on a PR or a commit, OUTSIDE the orchestrator loop. Local output only — findings are presented in-conversation, nothing is posted, no Provider config needed.
Launch kirby-bot orchestrator in background, relay phase transitions live from run.jsonl.
Extract and organize existing code into reusable modules, functions, and components with thoughtful APIs.
| name | ui-sh-canonicalize-tailwind |
| description | Sort, normalize, deduplicate, and resolve conflicting Tailwind utility classes. |
Use this when the user wants to clean up, canonicalize, or normalize Tailwind class lists.
Keep the user informed so longer runs do not look stuck.
npx @tailwindcss/cli canonicalize.Use npx @tailwindcss/cli canonicalize to clean up Tailwind class lists — collapses shorthands (mt-2 mr-2 mb-2 ml-2 → m-2), resolves overrides (py-3 p-1 px-3 → p-3), canonicalizes arbitrary values to named utilities, and sorts classes; pass --css path/to/input.css if the project uses a custom CSS entry file
Single class string:
npx @tailwindcss/cli canonicalize "mt-2 mr-2 mb-2 ml-2"
# m-2
Multiple class strings as positional args (each returned on its own line):
npx @tailwindcss/cli canonicalize "py-3 p-1 px-3" "mt-2 mr-2 mb-2 ml-2"
# p-3
# m-2
Pipe class strings via stdin (one per line):
echo "py-3 p-1 px-3\nmt-2 mr-2 mb-2 ml-2" | npx @tailwindcss/cli canonicalize
# p-3
# m-2
Use --format json or --format jsonl for structured output with input/output/changed fields:
npx @tailwindcss/cli canonicalize --format json "py-3 p-1 px-3"
# [{ "input": "py-3 p-1 px-3", "output": "p-3", "changed": true }]
Use --stream to process stdin line-by-line without buffering:
npx @tailwindcss/cli canonicalize --stream