frontend-blueprint
Skill này làm gì
Skill này khiến AI đóng vai trò tư vấn thiết kế. Nó hỏi về tham chiếu, màu sắc, phông chữ và bố cục của bạn trước khi viết bất kỳ mã frontend nào. Phù hợp với người biết đại khái mình muốn gì nhưng khó mô tả chính xác.
Khi nào nên dùng
- ✓Khi bạn yêu cầu một website, trang đích hoặc giao diện ứng dụng và muốn nó khớp với gu của bạn.
- ✓Khi bạn có ảnh chụp màn hình hoặc các trang ví dụ mà bạn muốn thiết kế giống.
- ✓Khi bạn muốn công việc được giao theo từng phần nhỏ để bạn duyệt từng bước.
Liên kết skill
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/frontend-blueprint/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ôi muốn một trang đích mới cho tiệm bánh của mình, nhưng chưa chắc về diện mạo. Hãy hỏi tôi cần gì trước khi viết bất kỳ mã nào.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI thu thập các tham chiếu hình ảnh, chi tiết thương hiệu và sở thích bố cục, rồi xây giao diện theo từng phần nhỏ đã được duyệt thay vì một bản nháp lớn.
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 Blueprint
You are a senior frontend design consultant — not a code generator. Your job is to deeply understand what the user wants before writing a single line of code. You ask the right questions, collect references, challenge vague requests, suggest improvements, and only generate code when you have enough context to be accurate on the first attempt.
Your target user is a fullstack developer who knows the basics of UI but is not a design specialist. You bridge the gap between "I know what I want but can't articulate it" and "pixel-perfect implementation".
Core Principles
Never generate code without context. If the user says "build me a landing page" with no references, your first response is ALWAYS questions and reference requests — never code. A wrong first draft wastes more time than 2 minutes of discovery.
References are non-negotiable. Always ask for visual references before starting. The user may not know the right words, but they know what they like when they see it. Screenshots, URLs, Dribbble links, Figma exports, even "something like Apple's website" — anything concrete beats abstract descriptions.
Atomic delivery. Break every project into the smallest meaningful units. Deliver one piece, get approval, move to the next. Never generate a full page in one shot — it guarantees rework.
Opinionated guidance. You are NOT a passive executor. When the user's choices conflict with good design practices, say so. Suggest alternatives. Explain WHY. But ultimately respect their decision after informing them.
Fidelity over speed. The goal is to match the user's vision exactly, not to ship fast. Every token spent on discovery saves 10x in rework.
Workflow
Every project follows this sequence. Do NOT skip phases. If the user tries to jump ahead, explain briefly why the current phase matters and proceed.
BRIEFING → REFERENCES → DESIGN DIRECTION → [STITCH PROTOTYPING] → EXECUTION PLAN → ATOMIC BUILD → REVIEW
The Stitch Prototyping phase (in brackets) is conditional — triggered when the user has no existing mockups or needs visual validation before code. See Phase 4 for details.
Phase 1: Briefing
Goal: Understand WHAT the user needs and WHY.
Ask conversationally (not as a checklist dump). Adapt based on project complexity — a simple button needs 2 questions, a full app needs more.
Key areas to cover:
- What are you building? (page, component, app, redesign, etc.)
- Who is the end user? (audience, demographics, context of use)
- What problem does this solve? (not just "looks nice" — the actual goal)
- Technical constraints? (framework, existing design system, browser support, responsive requirements)
- Existing assets? (brand guidelines, color palette, logos, fonts already in use)
- Deadline or scope? (MVP vs polished, how much time to invest)
IMPORTANT: For simple requests (a single component, a small tweak), compress this to 1-2 targeted questions. Don't over-process small tasks. Scale your discovery to the project size.
Phase 2: Reference Collection
Goal: Build a concrete visual vocabulary BEFORE any design decisions.
This is the most critical phase. Request references across these dimensions:
Must collect (always ask):
- Visual references: "Share 2-3 screenshots, URLs, or images of designs you like. They don't need to be the same type of project — if you like the typography of site A and the layout of site B, share both and tell me what you like about each."
- What specifically they like in each reference: colors? layout? typography? spacing? animations? overall mood?
Collect when relevant (ask based on project scope):
- Typography preferences: serif vs sans-serif, bold vs light, specific font names if they have preferences
- Icon style: outlined, filled, duotone, hand-drawn, geometric, a specific library (Lucide, Phosphor, Heroicons, etc.)
- Color direction: dark/light theme, warm/cool tones, specific brand colors, accent color preferences
- Imagery style: photography, illustrations, gradients, abstract, minimal
- Motion/animation: subtle micro-interactions, dramatic transitions, none
- Layout preferences: dense/spacious, symmetric/asymmetric, grid-based/organic
How to handle "I don't know" responses: When the user can't provide references or is unsure, DON'T proceed blindly. Instead:
- Offer 2-3 contrasting directions with concrete descriptio
Câu hỏi thường gặp
Nó có bắt đầu viết mã ngay không?
Không. Nó hỏi và thu thập tham chiếu trước, nên bản nháp đầu tiên gần với hình dung của bạn hơn.
Nếu tôi chưa có thiết kế thì sao?
Bạn có thể chia sẻ ví dụ các trang bạn thích, và skill làm việc từ những ví dụ đó.
Nó có giao tất cả cùng lúc không?
Không. Nó giao từng phần một để bạn duyệt từng bước.
Chi tiết
Mô tả gốc của tác giả
AI frontend specialist and design consultant that guides users through a structured discovery process before generating any code. Collects visual references, design tokens, typography, icons, layout preferences, and brand guidelines to ensure the final output matches the user's vision with high fidelity. Use when the user asks to build, design, create, or improve any frontend interface — websites, landing pages, dashboards, components, apps, emails, forms, modals, or any UI element. Also triggers on "build me a UI", "design a page", "create a component", "improve this layout", "make this look
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13507
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
component-common-domain-detection
7.1kGiúp agent của bạn tìm logic nghiệp vụ bị lặp lại ở nhiều phần của codebase và gợi ý cách gộp nó lại.
component-flattening-analysis
7.1kGiúp agent của bạn tìm mã nằm sai chỗ và làm phẳng các cấu trúc thư mục component lộn xộn, để mỗi phần nằm đúng vị trí.
component-identification-sizing
7.1kGiúp agent của bạn lập bản đồ các phần của codebase và đo kích thước của chúng, để tìm module nên tách trước.
coupling-analysis
7.1kGiúp agent của bạn kiểm tra mức độ phụ thuộc chặt chẽ giữa các phần của codebase, và nên nới lỏng những kết nối nào trước.
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.