Logo Craft

Craft

Cộng đồng
diego3g
craft

Dùng khi được yêu cầu thiết kế, tạo, dựng mẫu hoặc thiết kế lại một hay nhiều trang, màn hình, luồng hoặc thành phần UI; hoặc khi người dùng chạy /craft (/craft:craft trong plugin Claude Code).

Tổng quan

Nhà phát hànhdiego3g
Kho mãcraft
Tên kỹ năngcraft
Sao
546
Bản fork
29
Tệp đi kèm
5
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ộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được diego3g 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 Craft 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/diego3g/craft/tree/main/skills/craft
  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/diego3g/craft.git /tmp/craft
mkdir -p .claude/skills
cp -r /tmp/craft/skills/craft .claude/skills/craft
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 Craft 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 Craft 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 Craft 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.

Craft

Overview

The front door for making anything visual. It turns "design the pricing page" into a finished, reviewed design. It works from the project's brief, covers every state, offers options only when the direction is open, uses only the design system's pieces, and checks its own work before showing it. It calls the other design skills at fixed points; it doesn't replace them.

When to use

  • "Design / create / mock up / redesign the <page, screen, flow, element>", /craft (/craft:craft in the Claude Code plugin).
  • Several pages at once ("design the onboarding: welcome, sign-up, verify").

When NOT to use

  • A small edit the person described exactly (one value, one label, one size): make it.
  • Only a review ("what's wrong with this?"): craft-critique. Only options: craft-explore.

Before you start

  • If no adapter in references/adapters/ matches your tool, do the same verbs in your tool and say which you mapped by hand. With no design tool at all, build in HTML (html.md). If an image is all you have, say that values read from it are estimates.

Stops are real

A stop means: ask the question and wait for the answer, through your agent's question tool when it has one, otherwise by ending your turn with the question. Ending your turn is always possible, even in a one-shot or headless session, where your final message is the question. Never decide a stop for the person because the session "can't wait" or "to save a round trip". Deciding it yourself turns a five-second answer into hours of redoing.

Steps

  1. Context.
    • Read DESIGN.md at the project root. If it's missing, or has no Product section (a sync-only record) → REQUIRED SUB-SKILL: craft-setup, then come back here.
    • Read the design system (tokens, components, guide) and the screens related to this one.
    • When the brief and the code disagree (the brief says teal, the tokens say blue): follow the code, say so in one line, add the conflict to DESIGN.md › Open questions, and offer to update whichever is wrong. Never override tokens inside a page's own CSS.
    • When the design tool's guide and the code differ and a design-sync.json exists, don't call the guide stale. Classify with it: code changed → offer to refresh the guide before drawing; guide changed → it's the person's change waiting for an export, so draw with it and mention the pending export.
  2. Scope in words. List each page or element to make, each with its job and its one next action.
    • Ambiguous words get one interpretation stated plainly ("pricing page = the bakery's price list, not subscription plans").
    • Stop and confirm the list when there's more than one item or the request is vague. One clear item: go on.
  3. For each item, in order:
    1. REQUIRED SUB-SKILL: craft-states. Its written state list and its stop come first.
    2. Open direction? Only when the person asked for ideas, or when two structurally different layouts are plausible and neither the brief nor the system chooses between them → REQUIRED SUB-SKILL: craft-explore before drawing the states. For several pages, ask at the scope stop which page (if any) gets options; never run an option round per page by default. The states are then drawn in the picked direction. A screen that follows an existing pattern goes straight to drawing.
    3. Draw the main state, then the other states, using only the system's pieces and tokens. Something new (a component, a colour, a size the scale doesn't have) → REQUIRED SUB-SKILL: craft-system (add mode) before using it. A component that exists in code but isn't drawn in the tool ("in code only" in the index) → REQUIRED SUB-SKILL: craft-sync (import of one component), drawing just that component first. If the person declined the import (see DESIGN.md), ask once before importing; if they still say no, build from the code's values on the board itself and note it. Never draw a look-alike, and never hard-code a new value in a page.
    4. REQUIRED SUB-SKILL: craft-critique in self-check mode on every board: render it, fix what it finds within this task's scope, and render again.
  4. Close.
    • Show the result with the summary below.
    • Append the decisions to DESIGN.md › Decisions log (date, decision, why).
    • Move any question that got answered out of Open questions.

Closing summary (the shape of your final message)

Made: <pages/elements> — <where: files or boards>
Decisions: <each, one line with its why> (also in DESIGN.md › Decisions log)
System changes: <pieces or tokens added/changed> — affects: <screens>
Self-check fixed: <what craft-critique changed before you saw it>
Open questions: <what the person still has to decide>

Rules

RuleWhy
DESIGN.md first, every timeWithout the brief every screen invents its own style
Scope confirmed before work when it's more than one itemThree pages built on a wrong reading is three pages wasted
States list before drawing (via craft-states)The happy path is one state of many
Options only when the direction is openOptions on a solved pattern waste the person's attention
Only system pieces and tokens; new ones go through craft-systemHard-coded values in pages are where drift starts
Code beats a stale brief; note it, don't overrideThe tokens are what ships; the brief is updated by decision, not silently
Self-check before showingThe person should review design, not catch mistakes
Decisions go into DESIGN.mdNext session's design starts from them, not from memory

Done when

Every item in the confirmed scope has its states drawn and self-checked, any system change has gone through craft-system, the closing summary has been given, and DESIGN.md's Decisions log has been updated.

Common mistakes

ThoughtReality
"Three pages are clear enough, I'll just build them"Confirm the list first. It costs one message.
"I'll make buttons 52px here; the token says 44, but this audience needs bigger"That's a system decision. Propose it through craft-system, then use it everywhere.
"The brief says teal, so I'll override the blue in this page's CSS"Code wins. Flag the conflict and ask; never patch tokens locally.
"I'll show it, they'll tell me what's wrong"Run craft-critique in self-check first, and say what it fixed.
"The decisions are in my message, that's enough"Messages scroll away. Append them to DESIGN.md.
"This session can't stop for answers, so I'll make the calls myself and list them"Asking the question, with your agent's question tool or by ending your turn with it, is stopping. Do that; build nothing past the first open stop.
"To save a round trip I'll put both stops in one message"Fine, if you then stop. Ask both, build nothing, wait.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

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

Dùng khi được yêu cầu thiết kế, tạo, dựng mẫu hoặc thiết kế lại một hay nhiều trang, màn hình, luồng hoặc thành phần UI; hoặc khi người dùng chạy /craft (/craft:craft trong plugin Claude Code).

Vì sao nên dùng Craft 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. Craft 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 Craft trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/diego3g/craft/tree/main/skills/craft. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà 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 Craft?

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 Craft 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 Craft 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 Craft có miễn phí không?

Kỹ năng này được diego3g phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. 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 👇