ui-tokens – skill Thiết kế & UI cho agent AI
Xem, thêm hoặc sửa design token trong hệ thống design StyleSeed.
Cài skill ui-tokens 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-tokens-05cb7.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /ui-tokens – 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-tokens-05cb7.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $ui-tokens – 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-tokens-05cb7.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /ui-tokens – 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-tokens-05cb7.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /ui-tokens – 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 Token Manager
When to Use
Use this skill when you need view, add, or modify design tokens in the StyleSeed design system.
When NOT to use
- For applying tokens in components → use
/ss-componentor/ss-pattern - For finding token violations in existing code → use
/ss-lint - For brand-wide color/font choices that don't exist yet — define a skin first, then add tokens
- For non-CSS token systems (Figma, native iOS/Android) — Tailwind v4 / CSS variables only
Action: $0 | Token type: $1
Arguments: $ARGUMENTS
Token File Locations
| Type | JSON Source | CSS Implementation |
|------|-----------|-------------------|
| Colors | tokens/colors.json | css/theme.css :root + @theme inline |
| Typography | tokens/typography.json | css/fonts.css + css/base.css |
| Spacing | tokens/spacing.json | Tailwind utilities (no custom CSS needed) |
| Radius | tokens/radii.json | css/theme.css @theme inline |
| Shadows | tokens/shadows.json | css/theme.css :root |
Instructions
list — Show current tokens
Read and display the requested token file in a formatted table.
add — Add new token
1. Add the token to the JSON source file (tokens/*.json)
2. Add the CSS custom property to css/theme.css under :root
3. If it needs a Tailwind utility, add to the @theme inline block
4. If it has a dark mode variant, add to the .dark block
update — Modify existing token
1. Update the value in the JSON source file
2. Update the CSS custom property in theme.css
3. Check all components for direct usage that might need updating
Rules
- Always keep JSON and CSS in sync
- Use semantic names, not descriptive names (
--successnot--green-500) - Colors should support both light and dark modes
- New tokens must be added to BOTH the JSON source AND the CSS implementation
Example
User request:
> Review this interface with @ui-tokens, identify the highest-impact design problems, and propose an implementation-ready improvement.
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.
Execution boundaries
This guide targets an existing StyleSeed project. The listed project paths, components, tokens and /ss-* commands are not bundled in this single-file entrypoint. Discover the actual project root and verify those prerequisites before edits; report absent resources instead of inventing them. Use host-supported invocation and existing project conventions. Layout numbers are design-system choices, not universal usability guarantees. Test keyboard access, responsive overflow and reduced motion on the actual interface.
Skill liên quan
- ui-update – Cập nhật engine StyleSeed trong dự án — phân tích phần nào đã lỗi thời và cập nhật an…
- ui-ux-designer – Tạo thiết kế giao diện, wireframe và design system. Thành thạo nghiên cứu người dùng…
- ui-ux-pro-max – Hướng dẫn thiết kế toàn diện cho ứng dụng web và mobile. Dùng khi thiết kế component…
- ui-visual-validator – Chuyên gia kiểm tra trực quan nghiêm ngặt, chuyên về kiểm thử UI, tuân thủ design system…
- uiverify-triage-visual-changes – Phân loại build hồi quy trực quan của UI Verify qua MCP từ coding agent: sắp xếp ảnh…
- unship – So sánh các biến thể UI do AI tạo ra trong ứng dụng thực tế chạy cục bộ, sau đó giữ lại…
- ux-audit – Kiểm tra giao diện để tìm vấn đề UX dựa trên nguyên tắc heuristic của Nielsen và các…
- ux-copy – Tạo microcopy UX (nhãn nút, thông báo lỗi, trạng thái trống, toast) theo giọng văn thân…