ui-lint
What it does
Quickly checks if your design code follows the rules. It looks for common mistakes like incorrectly written colors or page sizes using pixels instead of standard units.
When to use it
- βAfter making a small code change.
- βWhen you want to ensure the design is consistent.
- βBefore submitting your code for review.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-lint/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCheck my code for common design errors.β
5 new skills a week. 1 minute to read.
How it works
It searches for specific patterns in your code that don't follow the established design rules. If it finds anything out of place, it alerts you.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Design Lint (Quick Check)
When to Use
Use this skill when you need quick automated lint β detects common design system violations in seconds.
When NOT to use
- For deeper review of design judgment (composition, hierarchy, rhythm) β use
/ss-review - For accessibility specifically β use
/ss-a11y - For Nielsen UX heuristics β use
/ss-audit - For applying refactors β this only flags violations; use
/ss-reviewto fix
Target: $ARGUMENTS
What This Does
Fast, grep-based scan for common design violations. Runs in seconds (unlike /ss-review which is a deep manual audit). Run this after every file change.
Checks
1. Hardcoded Colors
Search for hex colors in className strings that should be semantic tokens:
grep -n '#[0-9a-fA-F]\{3,8\}' [file] | grep -v 'theme.css\|tokens\|\.json'
Violation: text-[#3C3C3C], bg-[#721FE5]
Fix: text-text-primary, bg-brand
2. Raw Pixel Values in Tailwind
grep -n 'p-\[.*px\]\|m-\[.*px\]\|gap-\[.*px\]' [file]
Violation: p-[24px], gap-[12px]
Fix: p-6, gap-3
3. Old Width/Height Syntax
grep -n 'w-[0-9] h-[0-9]\|w-\[.*\] h-\[' [file]
Violation: w-4 h-4
Fix: size-4
4. Physical Properties (LTR-only)
grep -n ' ml-\| mr-\| pl-\| pr-' [file]
Violation: ml-2, mr-4
Fix: ms-2, me-4
5. Forbidden Colors
grep -n 'text-black\|bg-black\|#000000\|#000"' [file]
Violation: Any pure black Fix: Use skin's text-primary token
6. Missing data-slot
grep -n 'function [A-Z]' [file] # find components
grep -n 'data-slot' [file] # check if present
Violation: Component without data-slot
Fix: Add data-slot="component-name"
7. Font Size CSS Variables (CRITICAL β Tailwind v4 conflict)
grep -n 'text-\[var(--' [file]
grep -n '\-\-text-.*px\|--fs-.*px' [file]
Violation: text-[var(--text-sm)] or --text-sm: 13px in theme.css
Fix: Use explicit text-[13px]. CSS variable font sizes conflict with Tailwind v4's --text-* namespace β Tailwind reads them as color, not font-size.
8. className Without cn()
grep -n 'className={`' [file]
Violation: Template literal className
Fix: Use cn() for all className composition
Output Format
π΄ FAIL [file:line] Hardcoded hex: text-[#3C3C3C] β use text-text-primary
π΄ FAIL [file:line] Raw px: p-[24px] β use p-6
π‘ WARN [file:line] Physical prop: ml-2 β use ms-2
π‘ WARN [file:line] Missing data-slot on MyComponent
π’ PASS No violations found
Total: X errors, Y warnings
If errors > 0, list specific fixes for each violation.
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
FAQ
What are 'hardcoded colors'?
These are colors written directly in the code using codes like #3C3C3C, instead of using the color names defined by the design system (like 'text-primary').
Why shouldn't I use pixels (px) in some code parts?
Using pixels can cause the design to not adapt well to different screen sizes. It's better to use the design system's standard units (like 'p-6' instead of 'p-[24px]').
What does 'Physical Properties (LTR-only)' mean?
These are spacing commands (like margin and padding) that work differently depending on the text direction (left-to-right or right-to-left). The system prefers commands that work in both cases (like 'ms' and 'me').
Details
Original description by the author
Quick automated lint β detects common design system violations in seconds
Popularity
- GitHub stars
- 48k
- Ranking position
- #6038
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.