replica-design
Skill này làm gì
Skill này thiết lập hệ thống hình ảnh cho ứng dụng mới, gồm màu sắc, kiểu chữ, khoảng cách và các component cùng trạng thái của chúng. Skill dành cho nhà thiết kế và lập trình viên muốn giao diện nhất quán, dễ tiếp cận và dựa trên bộ icon và font mở.
Khi nào nên dùng
- ✓Khi bạn cần hệ thống thiết kế với vai trò màu, cỡ chữ và khoảng cách cho ứng dụng mới.
- ✓Khi bạn muốn định nghĩa từng component, như nút và biểu mẫu, cùng với các trạng thái của chúng.
- ✓Khi bạn cần kiểm tra xem chữ có đạt mức tương phản WCAG hay không.
Liên kết skill
https://github.com/Jakeschincariol/replica-skill/blob/main/replica-design/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thiết lập hệ thống thiết kế cho ứng dụng của tôi với vai trò màu, cỡ chữ và component, rồi kiểm tra độ tương phản của chữ không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đo các mẫu trong ảnh chụp màn hình tham chiếu rồi biến chúng thành token thiết kế cho màu, chữ, khoảng cách và bo góc. Agent viết đặc tả component và kiểm tra độ tương phản cho từng cặp màu chữ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
replica-design
Reads replica/recon.md and the screenshots in replica/screens/. Writes
replica/design/tokens.json (template in this folder), tokens.css, the
Tailwind mapping, and replica/design/components.md.
python3 contrast.py replica/design/tokens.json # every text pair, WCAG ratio
The rules
What you rebuild is the system: the roles, the scale, the patterns, the way a form or a modal behaves. Those are not ownable, and users expect them. What you never take:
- Logos, icons, illustrations, photos, sounds. Use an open icon set (Lucide, Phosphor, Heroicons, Tabler, all MIT or similar) and make or commission your own illustrations. Do not trace theirs.
- Licensed fonts. If the original uses a paid or proprietary font, pick an open one with the same job: Inter, Geist, IBM Plex, Manrope, Source Serif.
- Their copy. Every label and empty state gets written fresh.
- Their brand colour. Record it as a role (
accent), use a neutral placeholder now, and replica-brand gives you your own. The signature colour plus the signature layout is trade dress, and it changes before launch.
Step 1: measure, do not guess
From the screenshots (zoom in, use a colour picker on the user's machine):
- Colour roles, not colours: bg, surface, border, border-input, text, text-muted, accent, on-accent, danger, success, warning. Count how many greys the app really uses. Usually 5 to 7.
- Type scale: sizes, line heights, weights. Snap to a scale (12, 14, 16, 20, 28, 40 is common). Note the font category, not the font file.
- Spacing: measure gaps between elements. It is almost always a 4 or 8 base. Write the scale.
- Radius, shadow, motion: two or three of each.
- Layout: max content width, grid, breakpoints, sidebar width, header height.
Step 2: write the tokens
Fill tokens.json. Keep the role names. replica-brand only changes values.
Generate tokens.css as custom properties and map them into Tailwind's theme
so components use bg-surface text-muted, never raw hex.
Add a pairs list for every text and background combination the app uses,
then:
python3 contrast.py replica/design/tokens.json
AA is the floor: 4.5:1 for body text, 3:1 for large text and for input borders and focus rings. It exits 1 on a failure. Fix it in the tokens, not per component.
Step 3: component specs
For every component in the recon list, one block in components.md:
Button
variants primary, secondary, ghost, danger
sizes sm 32px, md 40px, lg 48px
states default, hover, active, focus-visible (2px ring, accent), disabled, loading
tokens bg accent, text on-accent, radius md, font sm/600
a11y real <button>, visible focus, loading keeps the label for screen readers
used on S02, S07, S09
Every state the recon saw, plus the ones it should have: focus, disabled, loading, error, empty. Keyboard and screen reader behaviour is part of the spec.
Step 4: build the primitives
Build the components in code once, in isolation (a /design route or
Storybook), before any screen. Use an accessible base if the stack has one
(Radix, shadcn/ui, React Aria). Screenshot the page. That is the design system
check.
Output
tokens.json, tokens.css, the Tailwind config, components.md, the
primitives built, and a contrast report with zero AA failures. Next:
/replica-build.
Câu hỏi thường gặp
Skill có sao chép logo hoặc font không?
Không. Skill yêu cầu dùng bộ icon và font mở, và tự vẽ minh họa riêng của bạn.
Công cụ kiểm tra tương phản làm gì?
Đó là một script tính tỷ lệ tương phản WCAG cho từng cặp màu chữ trong token thiết kế.
Màu thương hiệu có được giữ lại không?
Không. Skill ghi màu thương hiệu gốc như một vai trò và dùng màu trung tính tạm thời cho đến khi thương hiệu của bạn được thiết lập.
Chi tiết
Mô tả gốc của tác giả
Rebuilds an app's design system for a clone: colour roles, type scale, spacing, radius, shadows and every component with its states, as design tokens plus component specs, with original assets instead of the target's logos, icons, illustrations or licensed fonts. Includes a WCAG contrast checker. Use when the user says "match the design", "rebuild the design system", "get the colours and fonts", "make it look like X", "design tokens for my clone", or after /replica-architect.
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13580
- Giấy phép
- MIT
- Cập nhật
- 3/10/2026
Bình luận
- …
Thêm skill từ kho mã này
replica-architect
7.1kGiúp agent của bạn lên kế hoạch stack, cơ sở dữ liệu và API cho ứng dụng mới dựa trên bản đồ tính năng, xây từ một lát cắt mỏng chạy được trước.
replica-backend
7.1kGiúp agent của bạn xây phần máy chủ của ứng dụng với đăng nhập, quy tắc cơ sở dữ liệu, thanh toán Stripe, email và tác vụ nền bằng API chính thức.
replica-brand
7.1kGiúp agent của bạn đặt tên và đổi thương hiệu cho ứng dụng để nổi bật, gồm kiểm tra tên, bảng màu mới, brief logo và quét tìm tên cũ còn sót lại.
replica-build
7.1kGiúp agent của bạn xây từng màn hình của ứng dụng mới từ bản đồ tính năng, bắt đầu bằng khung vỏ rồi đến luồng cốt lõi, và tất cả đều được viết mới.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.