Logo Building Ui

Building Ui

Cộng đồng
MK27MK
building-ui

Design and change UI through an interactive shell. Turn a spec and a low-fidelity sketch, or an existing component, into a high-fidelity mock.html in the project's own style, iterate on it with the user, then implement it. Or open the shell over the running app, where the user inspects, comments on and restyles real elements, and the changes go straight into code and tests. Use when the user invokes /building-ui, asks to mock up a new component or UI element from a sketch, asks to change a component through a mock, asks to implement an approved mock, or asks to review or change the UI of the running app.

Tổng quan

Nhà phát hànhMK27MK
Kho mãuxed
Tên kỹ năngbuilding-ui
Sao
80
Bản fork
3
Tệp đi kèm
13
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 là Markdown thuần túy, không phải 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ộ.

  • 13 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 MK27MK công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Building Ui 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/MK27MK/uxed/tree/main/skills/building-ui
  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/MK27MK/uxed.git /tmp/uxed
mkdir -p .claude/skills
cp -r /tmp/uxed/skills/building-ui .claude/skills/building-ui
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 Building Ui 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ự tải Building Ui 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 Building Ui không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Building UI

The shell works in two modes: App and Mock. Read only the file for the phase you are in, and the sections below that it points to.

Mock

To work on a component in isolation. Use it for a new component, or when the user explicitly asks to change a component:

PhaseWhenFile
MockNo mock exists for the component yet.mock.md
ReviewA mock exists and the user has not approved it.review.md
ImplementThe user approved the mock and asks to implement it.implement.md

The flow pauses when the user approves the mock. Implement the component only when the user asks.

App

For changes to UI elements the running app already shows: app.md.

Pick mock mode for a new component or when the user explicitly asks to change a component, and app mode for any other change to existing UI. If a request fits both, ask.

Conventions

notes.mjs is node scripts/notes.mjs. It reads and updates the notes for both modes: run it with no arguments for its commands. Prefer it to reading or editing the notes JSON yourself. <notes> is the notes file of the mode you are in.

Paths starting with assets/ or scripts/ are relative to this skill's folder.

Open the shell

Once the mode's file has started scripts/serve.mjs in the background, which prints its URL on port 4870 or the next free one:

  1. Open the page the mode's file names in the browser. Prefer the built-in browser pane when it is available.
  2. Check once that the shell's toolbar shows and the console has no errors from /__mock/ routes or, in mock mode, from mock.html. Do no further visual QA.
  3. End the turn. Do not explain the shell in chat: its ? button, at the bottom left, shows how to use it.

Each time the user hands back the turn

  1. Run notes.mjs pending <notes>. It lists the edits, renames and comments left to handle.
  2. Edits. Write each style edit into the element's CSS, and each text edit into the matching instance. Then run notes.mjs clear <notes> edits <id>….
  3. Renames. Apply each rename where the mode's file says.
  4. Comments. Address each listed comment. A change in look (style, layout, spacing, wording) is an edit: make it now, with no rule. A change in behaviour is a rule: add it with notes.mjs rule <notes> <id> "<text>", or, only when it has several readings that lead to different changes, add the one you would pick with --assumption, so the user can confirm it. When you cannot tell what a comment targets, ask in the reply and change nothing. Then reply with notes.mjs reply <notes> <id> "<text>": say what changed, or ask a question. Never resolve comments: only the user resolves them.
  5. Rules. Treat every rule the user wrote, changed or confirmed as spec, and make the UI obey it. Only the user turns an assumption into spec: never change a rule's source yourself, unless the user settles it in a comment or in chat.
  6. Apply any changes the user asked for in chat.
  7. The page reloads itself when the notes or the UI change. If the user has unsaved edits, the page shows a toast instead; tell them to reload before they edit again, because a stale page overwrites your notes on its next save.
  8. Report in chat only what the comment replies do not already say: changes the user asked for in chat, questions, and blockers. Do not restate your replies.

Repeat until the user is done, then stop the server and finish as the mode's file says.

Rename in code

An element's name in code is its component, its CSS-module class as stem.local, a plain class, or its data-ui value. Rename the class in its stylesheet and every use, or the data-ui value. A new stem means renaming the stylesheet file and its imports, and the component too when they share the name. A renamed component also renames its folder to the new name in kebab-case, and its files the way the project names them.

Implement rules test-first

  1. Implement an element only when all its rules are spec. Leave elements with assumptions for the user to confirm in the shell: tell the user that assumptions are left to confirm there, and do not list or ask about them in chat.
  2. Run the test-first loop with the project's TDD skill. If the project has none, stop before writing code and ask the user with AskUserQuestion, offering three options:
    • Stop for now (Recommended): end the turn so the user can add a TDD skill.
    • Continue with TDD, without a skill: write each test and watch it fail before you implement it.
    • Continue without TDD: implement first, then write the tests.
  3. Each new or changed rule becomes at least one test, and each removed rule a test that the behaviour is gone.
  4. In code, use the project's token wherever a token has exactly the value you would write.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Design and change UI through an interactive shell. Turn a spec and a low-fidelity sketch, or an existing component, into a high-fidelity mock.html in the project's own style, iterate on it with the user, then implement it. Or open the shell over the running app, where the user inspects, comments on and restyles real elements, and the changes go straight into code and tests. Use when the user invokes /building-ui, asks to mock up a new component or UI element from a sketch, asks to change a component through a mock, asks to implement an approved mock, or asks to review or change the UI of th...

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/MK27MK/uxed/tree/main/skills/building-ui. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành 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 Building Ui?

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.

Bạn có thể dùng Building Ui 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 Building Ui 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 Building Ui có miễn phí không?

Kỹ năng này được MK27MK 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇