frontend-design
Skill này làm gì
Công cụ này tạo thiết kế thị giác và code cho giao diện website và ứng dụng. Nó biến ý tưởng của bạn thành một thiết kế sẵn sàng dùng, với code HTML, CSS và JavaScript hoạt động.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một website mới.
- ✓Khi bạn muốn cải thiện diện mạo của một trang hoặc ứng dụng có sẵn.
- ✓Khi bạn cần một thành phần cụ thể cho dự án web của mình.
Liên kết skill
https://github.com/nexu-io/open-design/blob/main/skills/frontend-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
“Tạo thiết kế và code cho trang đăng nhập của ứng dụng âm nhạc, với phong cách hiện đại và tối giản.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI hiểu nhu cầu của bạn, chọn một phong cách thị giác riêng và tạo code để giao diện hoạt động hoàn hảo, chú ý đến từng chi tiết.
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.
frontend-design
Adapted from Anthropic's official
frontend-designskill for OpenDesign.
Use this skill when the user asks to build or improve a frontend interface: a website, landing page, dashboard, application screen, HTML/CSS artifact, React/Vue/Svelte component, or a visual redesign of an existing UI.
The goal is not just "make it nicer." The goal is to ship working frontend code with a clear design point of view, strong craft, and enough product detail that the result feels designed for the user's actual context.
Workflow
Understand the brief before choosing the look.
- Identify the audience, primary job, domain, and emotional tone.
- Note any technical constraints: framework, existing styles, accessibility, performance, export target, or responsive requirements.
- If the repo already has design tokens, components, screenshots, or a
DESIGN.md, use those as the source of truth.
Commit to one specific aesthetic direction.
- Pick a direction that fits the product: brutally minimal, editorial, luxury, playful, industrial, retro-futuristic, dense operational, calm enterprise, artful consumer, or another precise direction.
- Make the direction concrete through typography, spacing, color, hierarchy, motion, and component shape.
- Avoid generic AI defaults: purple-blue gradients, vague glass cards, interchangeable SaaS layouts, over-rounded cards, stock icon rows, and decorative blobs that do not serve the interface.
Design the real interface, not a placeholder poster.
- Include the controls, empty/loading/error states, tables, filters, navigation, and responsive behavior a real user would expect.
- Use honest content. If data is unknown, label it as sample, pending, or unavailable instead of inventing claims.
- Keep workflows efficient for the target user. Dashboards and tools should be scannable and dense enough for repeated use; marketing pages can be more expressive.
Build production-grade frontend code.
- Prefer the repository's existing framework, component conventions, icons, tokens, and styling approach.
- For standalone artifacts, create self-contained HTML/CSS/JS unless the user asked for a framework.
- Use semantic markup, keyboard-accessible controls, visible focus states, sensible contrast, and responsive layout constraints.
- Use CSS variables for repeated colors, spacing, shadows, and type scale.
Refine visual craft.
- Typography: choose expressive but readable type pairings. Avoid using default system stacks as the main visual idea unless the direction is intentionally utilitarian.
- Color: create a balanced palette with role clarity. Use accent color sparingly and deliberately.
- Layout: use alignment, rhythm, density, and negative space intentionally. Do not let cards, panels, or labels drift.
- Motion: add purposeful transitions for state changes, reveals, and feedback. Prefer transforms and opacity for performance.
- Details: use texture, borders, shadows, dividers, media, and iconography only when they support the concept.
Self-review before final delivery.
- The interface works at mobile and desktop widths.
- Text fits its containers and does not overlap adjacent UI.
- Interactive elements have hover/focus/active/disabled states.
- The design avoids obvious AI-generated visual tropes.
- The result has one memorable quality a user could describe after closing the page.
OpenDesign Integration
When OpenDesign provides an active design system, treat it as the product's brand contract. Use the injected color, typography, layout, and component guidance first, then apply this skill's frontend craft rules where the design system is silent.
When OpenDesign injects craft references such as typography, color, and anti-ai-slop, apply those checks before finishing. If the user's brand guidance conflicts with a generic craft rule, the user's brand guidance wins.
Source
- Upstream: https://github.com/anthropics/skills/tree/main/skills/frontend-design
- Category:
web-artifacts
License
This skill is adapted from Anthropic's official skills repository. See LICENSE.txt in this folder for the upstream Apache-2.0 license terms.
Câu hỏi thường gặp
AI có tạo code cho mọi loại website không?
Có, nó có thể tạo thiết kế cho website, trang đích, bảng điều khiển, component React và màn hình ứng dụng.
“Production-grade” nghĩa là gì?
Nghĩa là code được tạo có chất lượng cao, sẵn sàng dùng trong dự án thật, theo các thực hành tốt về lập trình và thiết kế.
AI có tránh các thiết kế chung chung không?
Có, nó được huấn luyện để tạo hình ảnh đặc trưng và tránh các mẫu AI thông thường, tập trung vào phong cách riêng cho dự án của bạn.
Chi tiết
Mô tả gốc của tác giả
Create distinctive, production-grade frontend interfaces with strong visual direction, polished typography, considered layout, and working HTML/CSS/JS or framework code. Use for websites, landing pages, dashboards, React components, application screens, and UI beautification.
repo: nexu-io/open-design
Độ phổ biến
- Sao GitHub
- 101k
- Vị trí xếp hạng
- #1173
- Giấy phép
- Apache-2.0
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
sample-plugin
101kGiúp agent của bạn tạo một tệp metadata cho các bài kiểm thử. Nó giúp đảm bảo mã nguồn chạy đúng trong nhiều tình huống khác nhau.
aster-atelier
101kGiúp agent của bạn tạo một website nghệ thuật theo phong cách cổ điển. Nó dùng hình ảnh tinh tế, bầu trời xanh và phông chữ serif để tạo cảm giác điện ảnh.
audio-jingle
101kGiúp agent của bạn tạo âm thanh như nhạc hiệu và hiệu ứng âm thanh. Nó có thể tạo nhạc và giọng nói, rồi lưu kết quả thành tệp âm thanh.
blog-post
101kGiúp agent của bạn viết bài báo dài hoặc bài blog. Có chỗ dành cho hình ảnh, trích dẫn và thông tin tác giả.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.