Logo Dg Design

Dg Design

Cộng đồng
FReptar0
dg-design

Generate a DESIGN.md from a brand brief. Use when the user wants to create a visual identity, design system, or brand style guide for a web project. Also use when starting a new website from scratch. Asks for company name, industry, target audience, and aesthetic direction. Outputs an 8-section design spec with colors, typography, and anti-slop rules.

Tổng quan

Nhà phát hànhFReptar0
Kho mãdesign-guard
Tên kỹ năngdg-design
Sao
12
Bản fork
4
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được FReptar0 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Dg Design trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/FReptar0/design-guard/tree/main/.claude/skills/dg-design
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/FReptar0/design-guard.git /tmp/design-guard
mkdir -p .claude/skills
cp -r /tmp/design-guard/.claude/skills/dg-design .claude/skills/dg-design
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Dg Design trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Dg Design ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Dg Design với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Generate a complete DESIGN.md for a web project using Google Stitch.

Instructions

  1. Discover check (MUST run before anything else):
    • Check if the .dg-research/ directory exists and contains JSON files.
    • IF .dg-research/ does NOT exist AND the user has mentioned a specific business name, company, brand, cafe, restaurant, store, or real-world entity:
      • STOP. Tell the user: "I recommend running /dg-discover first to research [business name]. This produces a DESIGN.md grounded in real market and competitor data instead of AI defaults. Would you like me to run /dg-discover instead?"
      • Only proceed with /dg-design if the user explicitly says to skip research.
    • IF .dg-research/ exists with JSON files: Read .dg-research/latest.json to get the business brief, competitor analysis, and brand colors. This research data is your PRIMARY source for business context -- use it over any project-level context from CLAUDE.md. Proceed to step 1.
    • IF the user request is generic (no specific business mentioned, e.g., "make a portfolio site" or "create a SaaS dashboard"): proceed directly to step 1. Research is for real businesses, not generic projects.

Context Isolation (CRITICAL -- read before generating)

When generating a DESIGN.md, distinguish between two contexts:

  1. Host project -- the codebase you are running inside (Design Guard). CLAUDE.md describes THIS project. Its business model, features, CLI commands, test counts, and technical architecture are about Design Guard, NOT about the user's target business.

  2. Target business -- the business the user wants a DESIGN.md for. This comes from:

    • The brand brief the user provides (Step 1)
    • Research data in .dg-research/latest.json (if available from /dg-discover -- this is your PRIMARY source)
    • WebSearch/WebFetch results about the target business

Rules:

  • IF the target business is DIFFERENT from Design Guard:

    • Do NOT use business descriptions, feature lists, stats, or technical details from CLAUDE.md
    • Do NOT reference CLI commands, test counts, TypeScript, Node.js, MCP, or Stitch as features of the target business
    • Do NOT describe the target as "open source", "design intelligence", or any phrase from CLAUDE.md's Project Overview
    • Every business fact in the DESIGN.md must come from the user's brief or research data
    • If an existing DESIGN.md is present at the project root, do NOT copy its colors, fonts, or business context into the new one -- generate fresh from the brief and research
  • IF the target business IS Design Guard itself:

    • CLAUDE.md is a valid source of business context -- use it alongside the user's brief
  • ALWAYS follow the DESIGN.md 8-section specification and validation rules from CLAUDE.md regardless of target business. The FORMAT rules always apply; the BUSINESS context is what gets isolated.

  1. If the user provided a brand brief as argument, use it. Otherwise ask for:

    • Company/product name
    • Industry or domain
    • Target audience
    • Aesthetic direction (e.g., "premium corporate", "playful startup", "minimal SaaS")
  2. Generate a DESIGN.md with exactly these 8 sections:

    1. Visual Theme & Atmosphere — 2-3 evocative sentences describing overall aesthetic. Use specific adjectives and references, not generic terms.
    2. Color Palette & Roles — Markdown table with columns: Role, Name, Hex, Usage. Minimum 5 roles (Primary, Secondary, Surface, On-Surface, Error). All colors as hex values, never descriptions like "trustworthy blue". Give each color a descriptive name (e.g., "Deep Navy" not just "Primary").
    3. Typography — Font families from Google Fonts (avoid Inter, Poppins as primary — they signal AI-generated design). Sizes in rem/px, weights as numbers (400/600/700), line heights. Include heading, body, and mono. Use a serif/sans-serif pairing for contrast.
    4. Spacing & Layout — Base unit (e.g., 4px), scale, max content width, grid system, breakpoints.
    5. Component Patterns — At least 3 components (buttons, cards, inputs, etc.) with structure and style rules. Vary border-radius and shadow styles.
    6. Iconography — Style (outline/solid/duotone), default size, source library.
    7. Imagery Guidelines — Photo style, illustration style, aspect ratios. Be specific about what imagery communicates.
    8. Do's and Don'ts — At least 3 of each. MUST include these anti-slop defaults:

    Do

    • Do use asymmetric or non-standard layouts for at least one feature section
    • Do vary card sizes and spacing to create visual rhythm
    • Do use the specified color palette exclusively (no AI-chosen colors)
    • Do maintain high contrast (4.5:1 minimum) for all text
    • Do vary section backgrounds (alternate between light/dark surfaces)

    Don't

    • Don't use Inter, Poppins, or system sans-serif as the primary font
    • Don't use purple-to-blue gradients anywhere
    • Don't use uniform border-radius (>12px) on all elements
    • Don't use standard three-column icon grids as the second page section
    • Don't center-align body text longer than 2 lines
    • Don't use generic stock photo illustrations (3D blobs, abstract shapes)
  3. Validation rules:

    • All colors must be hex values (#RRGGBB)
    • Font sizes in rem or px only
    • At least 5 color roles, 3 component patterns, 3 Do's and 3 Don'ts
    • Keep total under ~3000 tokens (Stitch reads it as context on every generation)
  4. If DESIGN.md already exists, ask before overwriting.

  5. Write the file to DESIGN.md at the project root.

  6. After writing, check if a Stitch design system exists using mcp__stitch__list_design_systems. If the user has a Stitch project:

    • Offer to create a design system with mcp__stitch__create_design_system
    • Or update an existing one with mcp__stitch__update_design_system
    • Apply it to the project with mcp__stitch__apply_design_system so all future generations respect it
  7. Next step: Suggest running /dg-generate to create the first screen using the new design system.

Reference: See docs/design-md-guide.md for the full specification.

Câu hỏi thường gặp

Kỹ năng AI Dg Design làm được gì?

Generate a DESIGN.md from a brand brief. Use when the user wants to create a visual identity, design system, or brand style guide for a web project. Also use when starting a new website from scratch. Asks for company name, industry, target audience, and aesthetic direction. Outputs an 8-section design spec with colors, typography, and anti-slop rules.

Vì sao nên dùng Dg Design trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Dg Design là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Dg Design trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/FReptar0/design-guard/tree/main/.claude/skills/dg-design. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Dg Design?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Dg Design với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Dg Design với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Dg Design có miễn phí không?

Có. Kỹ năng này được FReptar0 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇