ui-lint – skill Thiết kế & UI cho agent AI
Lint tự động nhanh — phát hiện các vi phạm design system phổ biến chỉ trong vài giây.
Cài skill ui-lint bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/ui-lint-e8bb3.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /ui-lint – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/ui-lint-e8bb3.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $ui-lint – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/ui-lint-e8bb3.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /ui-lint – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/ui-lint-e8bb3.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /ui-lint – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 candidate scan. First read the project design tokens and conventions: pure black, physical spacing, data-slot, cn() and size-* are project-dependent choices, not universal violations. Replace [file] with a quoted actual path. The /ss-* commands are upstream host conventions and may not be installed. Inspect each match in context before reporting a defect.
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 presentViolation: Component without data-slot
Fix: Add data-slot="component-name"
7. Ambiguous Font Size Arbitrary Values
grep -n 'text-\[var(--' [file]
grep -n '\-\-text-.*px\|--fs-.*px' [file]Check: An arbitrary text-[var(...)] value may need a length type hint. Tailwind v4 intentionally uses the --text-* namespace for font-size theme tokens; defining --text-sm is valid. Prefer the semantic text-sm utility or explicit text-(length:--custom-size) when needed. Verify compiled CSS. See [official font-size documentation](https://tailwindcss.com/docs/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 warningsIf 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.
Skill liên quan
- ui-motion – Áp dụng một chuyển động StyleSeed có tên cho component — hoặc một trong 5 seed tính cách…
- ui-page – Khởi tạo khung trang/màn hình mobile mới theo các pattern layout của StyleSeed.
- ui-pattern – Tạo pattern UI ghép sẵn (bố cục card, danh sách, khối form, grid, v.v.) từ các primitive…
- ui-review – Review code UI về mức tuân thủ design system, khả năng truy cập và các thực hành tốt nhất.
- ui-score – Chấm điểm chất lượng thiết kế của file UI theo thang 0-100 dựa trên ngôn ngữ thiết kế…
- ui-setup – Trình hướng dẫn cài đặt tương tác — dẫn bạn từng bước để cấu hình design system cho dự án.
- ui-skills – Các ràng buộc có quan điểm rõ ràng và liên tục được cập nhật, giúp agent định hướng khi…
- ui-skills-root – Dùng trước khi làm việc liên quan đến UI để chọn ngữ cảnh UI Skills nhỏ nhất nhưng hữu…