Logo Gdd Live

Gdd Live

Cộng đồng
hegemonart
gdd-live

Chế độ thiết kế trực tiếp ngay trong trình duyệt. Người dùng chọn một phần tử DOM trên máy chủ dev đang chạy (thông qua Claude Preview MCP), tác nhân AI tạo N biến thể thiết kế trong một lần, rồi thay thế trực tiếp tại chỗ bằng HMR hoặc preview_eval thông qua dấu đánh dấu data-gdd-variant. Người dùng chấp nhận hoặc loại bỏ; toàn bộ quy trình chọn, tạo và chấp nhận được lưu vào .design/live-sessions để có thể tiếp tục sau khi gặp sự cố hoặc khởi động lại. Dùng khi người dùng muốn chỉnh sửa giao diện của một thành phần đang chạy trên máy chủ thực, muốn thử các biến thể trên một trang hoặc chạy lệnh live kèm URL; nếu môi trường không hỗ trợ MCP, sẽ chuyển sang chế độ giới hạn chỉ dùng ảnh chụp màn hình. Kích hoạt khi yêu cầu liên quan đến chỉnh sửa thiết kế trực tiếp trong trình duyệt, chọn phần tử trên máy chủ dev hoặc tạo biến thể có thể thay thế trực tiếp.

Add to TypingMind

Tổng quan

Nhà phát hànhhegemonart
Kho mãget-design-done
Tên kỹ nănggdd-live
Sao
3
Bản fork
1
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 hegemonart 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 Gdd Live 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/hegemonart/get-design-done/tree/main/scripts/skill-templates/live
  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/hegemonart/get-design-done.git /tmp/get-design-done
mkdir -p .claude/skills
cp -r /tmp/get-design-done/scripts/skill-templates/live .claude/skills/gdd-live
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 Gdd Live 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 Gdd Live 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 Gdd Live 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.

gdd-live - Live In-Browser Design Mode

Pick a DOM element on a running dev server, generate competing design variants, hot-swap them in place, and accept the winner as a real source edit. Every step persists to .design/live-sessions/<id>.json so the session survives a crash or a later resume.

The browser-side runtime, the harness-mode gate, the session store, the events feed, the post-check, the scope guard, and the bandit feed are all separate modules under scripts/lib/live/. This skill describes the loop and names the module that owns each step; it does not import them.

For the full surface (the Preview MCP tools, the six live_* events, the session file, the bandit feed, degraded mode, the scope guard), see ../../reference/live-mode-integration.md. For the SKILL.md structural contract, see ../../reference/skill-authoring-contract.md.


Arguments

  • [url] - the page to drive. Optional. When omitted, detect the dev server and use its root.
  • --variants N - how many variants to generate per pick. Default 3.
  • --resume <session-id> - reattach to an in-progress session in .design/live-sessions/.

BOOT

  1. Probe the Preview MCP per ../../connections/preview.md: ToolSearch({ query: "Claude_Preview" }), then mcp__Claude_Preview__preview_list. Empty ToolSearch means the MCP is not loaded.
  2. Resolve the harness live mode. The capability signal is capability_matrix.mcp_support in scripts/lib/manifest/harnesses.json, projected by scripts/lib/live/harness-mode.cjs (liveModeFor(harnessId)). A puppeteer result means full live mode; a degraded result means screenshot-only.
  3. If mcp_support is false for this harness, or Preview is unavailable, enter DEGRADED mode and say so plainly: variants are generated and captured as static screenshots, with no in-page hot-swap. Skip the INJECT and PICK steps; generate against the file the user names instead.
  4. Detect the dev server. Look for Vite, Next, Bun, or a static server (check package.json scripts plus a preview_list entry). Record the server descriptor on the session.
  5. Open or create the session via scripts/lib/live/session-store.cjs (.design/live-sessions/<id>.json). On --resume, load the named session (see RESUME).

INJECT

Inject the browser runtime once. Read RUNTIME_JS from scripts/lib/live/runtime.cjs and evaluate it in the page with mcp__Claude_Preview__preview_eval. The runtime is an idempotent IIFE bound to window.__gddLive, so a re-inject after navigation rebinds the same singleton rather than stacking listeners. It installs the pick handler and the variant-swap helpers, and stamps the live variant on the element via the data-gdd-variant attribute.


PICK

  1. Arm the picker (window.__gddLive.pick()), then guide the user to click the target element. Use preview_click and preview_inspect to confirm the element and read its computed styles and bounding box.
  2. Read the pick report back. Its fields are documented in pickReportShape (selector, tagName, classList, boundingRect, computedStyle subset, current variant). The selector strategy prefers id, then a data-testid, then a tag plus class plus nth-of-type path.
  3. Emit a live_pick event through scripts/lib/live/events.cjs and append a pick entry to the session.

GENERATE (one batch)

  1. Load the relevant Phase 45 canonical reference index FIRST, so variants are grounded in real guidance: the domain index that matches the picked element (for example ../../reference/spatial.md for layout, ../../reference/interaction.md for components and a11y, ../../reference/color.md for color, ../../reference/typography.md for type, ../../reference/motion.md for animation).
  2. Generate all N variants in ONE batch (default 3), each a distinct, hypothesis-tagged design direction for the picked element. Do not generate them one at a time.
  3. For each variant: write the change atomically to the implicated source file, then make it live. With HMR running, the file write is enough; otherwise apply the variant in place with window.__gddLive.swapVariant({ n, style, html }), which sets data-gdd-variant="n" and applies the variant's style or markup.

POST-CHECK

Run the post-check on each variant via scripts/lib/live/postcheck.cjs, which invokes gdd-detect. Show the findings inline next to each variant. A variant that trips a finding is flagged, NOT auto-rejected: the user still decides. Append a live_postcheck event per variant.


ACCEPT / DISCARD

  • ACCEPT one variant: apply the chosen variant as the canonical source edit, and revert the others in the page (window.__gddLive.revert() on each non-chosen element). Emit a live_accept event and feed the outcome to the design-variants bandit via scripts/lib/live/bandit-feed.cjs (a dev-time signal). Append an accept entry.
  • DISCARD: revert every variant in the page back to its captured original and leave the source untouched. Emit a live_discard event and append a discard entry.

Either way, persist the result through scripts/lib/live/session-store.cjs before continuing.


PERSIST

Every step (boot, pick, generate, post-check, accept, discard) is written to the session file through scripts/lib/live/session-store.cjs as it happens. The on-disk event log uses the pick, generate, accept, discard kinds; the telemetry stream uses the six live_* event types. Writes are atomic, so an interrupted step never leaves a half-written session.


RESUME

With --resume <session-id>, load the named session from .design/live-sessions/. Only an in_progress session is resumable. Offer the user two choices: continue from the last recorded event (report what that was, for example "last pick was the primary button"), or start fresh (open a new session and leave the old one intact). Never silently replay completed events.


SCOPE GUARD

Never write outside the source files implicated by the picked element. Run every proposed write through scripts/lib/live/scope-guard.cjs, which maps the picked selector to its owning source files and rejects edits that fall outside them. If a variant would need a change beyond that scope (a shared token, a parent layout, a new dependency), stop and surface it to the user rather than widening the blast radius.

Constraints

  • Do NOT edit files outside the picked element's implicated sources (enforced by the scope guard).
  • Do NOT generate variants one at a time; generate the full batch, then swap.
  • Do NOT auto-reject a variant on a post-check finding; flag it and let the user decide.
  • In DEGRADED mode, state up front that hot-swap is unavailable and fall back to screenshots.
  • Persist before every user-facing prompt so a crash never loses accepted work.

LIVE COMPLETE

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

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

Chế độ thiết kế trực tiếp ngay trong trình duyệt. Người dùng chọn một phần tử DOM trên máy chủ dev đang chạy (thông qua Claude Preview MCP), tác nhân AI tạo N biến thể thiết kế trong một lần, rồi thay thế trực tiếp tại chỗ bằng HMR hoặc preview_eval thông qua dấu đánh dấu data-gdd-variant. Người dùng chấp nhận hoặc loại bỏ; toàn bộ quy trình chọn, tạo và chấp nhận được lưu vào .design/live-sessions để có thể tiếp tục sau khi gặp sự cố hoặc khởi động lại. Dùng khi người dùng muốn chỉnh sửa giao diện của một thành phần đang chạy trên máy chủ thực, muốn thử các biến thể trên một trang hoặc chạ...

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/live. 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 Gdd Live?

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

Có. Kỹ năng này được hegemonart 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 👇