Logo Genui

Genui

Tổ chứcPhổ biến
kortix-ai
genui

Generative UI for Kortix: the agent writes typed UI blocks (cards, comparisons, charts, maps, tabs) in OpenUI Lang inside its replies, and web, mobile, and SDK hosts render them through `@kortix/sdk/genui`. Load WHENEVER you design, build, review, or debug generative UI, the `openui` code fence, the genui prompt instructions, a genui component, the `kortix-genui` system skill, or the `@kortix/sdk/genui` or `/genui/react` subpaths.

Tổng quan

Nhà phát hànhkortix-ai
Kho mãCompanyOS
Tên kỹ nănggenui
Sao
20.8K
Bản fork
3.5K
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 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ộ.

  • 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 kortix-ai 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 Genui 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/kortix-ai/CompanyOS/tree/dev/.agents/skills/genui
  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/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/.agents/skills/genui .claude/skills/genui
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 Genui 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 Genui 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 Genui 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.

Generative UI (genui)

Status (2026-10-24): on dev, always on. Generative UI has no feature flag and no kill switch. Every session lists the kortix-genui system skill, and every client renders openui blocks. SDK (@kortix/sdk/genui, /genui/react), runtime (the skill, channel guards), web, and mobile are implemented. Open: plan-5 task 7's device check and OTA publish, which wait on Jay (references/mobile-device-check.md).

The references/ plans and spec are the build record. Their genui project flag, GENUI_ENABLED kill switch and KORTIX_GENUI sandbox env were deleted on 2026-10-24. A stored experimental.genui project override is ignored, and the API sends experimental.genui: true for older clients.

Phase 0 (provisional, local stand-in models): GO (2026-10-09, prompt 00a9030e). Valid: deepseek-v4.1-flash 100.0%, glm-5.3-flash 100.0%, gate 97.0%; kimi-k3 unavailable (503); Jay's 4 models untested. See references/eval-results.md.

PathWhat it is
references/spec.mdThe product spec: problem, goals, architecture, the 17 v1 components, streaming contract, toggle, requirements with acceptance criteria, Phase 4 guards, metrics, phases, risks, open questions
references/plan.mdMaster implementation plan: architecture, global constraints, review focus, spec deltas D1–D12, file map, interface contracts, order of work, delivery
references/plan-1-sdk.md@kortix/sdk/genui + /genui/react + default components (9 tasks; code verified before writing)
references/plan-2-eval.mdPhase 0 evaluation of 4 models on 46 synthetic cases, go/no-go gate (2 tasks)
references/plan-3-runtime.mdChannel guards, and the deleted flag and kill switch (3 tasks, historical; the prompt-injection tasks are removed)
references/plan-4-web.mdWeb and desktop renderer, components, charts, map, settings, copy/export, telemetry, verification (8 tasks)
references/plan-5-mobile.mdMobile renderer, components, charts, map, settings, copy, device check, OTA (7 tasks)
references/eval-results.mdPhase 0 results: one summary table per eval run, appended by scripts/eval.ts
references/mobile-device-check.mdOn-device checklist for mobile (Jay runs it), the OTA publish procedure, the old-build check
scripts/eval.tsPhase 0 runner: every case against each model through the LLM gateway; writes output/genui-eval/ and appends eval-results.md. GENUI_EVAL_CASES runs a subset; GENUI_EVAL_EFFORT sends reasoning_effort. A Codex model needs a project gateway key (POST /v1/projects/{projectId}/gateway/keys) as GENUI_EVAL_TOKEN: a PAT has no project, so the gateway answers provider_not_connected
scripts/eval-prompts.jsonThe 60 synthetic eval cases: prompt, optional tool result (context), expected UI use (expect), forbidden components (forbid), richness bar (rich)
scripts/score.ts, scripts/score.test.tsScores one reply (valid blocks, overuse, underuse, forbidden components, images, foreign images, interleaving, prose share, thin) and applies the go/no-go gate

Rules that already hold

  1. UI travels as an openui fenced block inside the existing text part. kortix.transcript.v1 does not change.
  2. Only @kortix/sdk/genui imports @openuidev/*. Pin it to an exact version.
  3. Every component has a zod schema, a web renderer, a native renderer, and toMarkdown. A component enters the prompt only when all four exist.
  4. The catalog is the kortix-genui managed system skill (packages/starter/templates/managed/skills/kortix-genui/SKILL.md), generated from buildGenuiPrompt() by bun packages/sdk/scripts/genui-skill.ts; packages/sdk/src/genui/skill.test.ts fails while it is stale. It is never in the system prompt. Every session lists it; there is no flag (apps/kortix-sandbox-agent-server/src/__tests__/managed-skills-genui.test.ts).
  5. No raw model output reaches Slack, push, email, or the CLI. Run toMarkdown.
  6. Query, Mutation, Form, Input, and Button are Phase 4 only, with the guards in references/spec.md §9.
  7. A Map draws tiles only from a style we configure: web NEXT_PUBLIC_GENUI_MAP_STYLE_URL (optional NEXT_PUBLIC_GENUI_MAP_STYLE_URL_DARK), mobile EXPO_PUBLIC_GENUI_MAP_STYLE_URL. Unset, it renders the place list with OpenStreetMap links. Never mapcn's CARTO default (commercial license). Web loads MapLibre only with a style set, and serves its worker from /maplibre/ (copied out of node_modules by apps/web/scripts/viewer-wasm.mjs).
  8. A node that fails its schema never takes valid content with it. sanitizeTree (packages/sdk/src/genui/validate.ts) puts its valid subtrees in its place, in source order. A subtree the parent slot cannot hold rises to the nearest ancestor that can (any block fits a Stack); a non-block gives up its own children. A root that fails becomes a Stack of its subtrees. Only a block with no valid subtree has root: null.
  9. Every host runs separateGenuiClosers (@kortix/sdk/genui/fence) on reply text before it looks for fences: it moves a closer the model glued to the last statement (…")````) onto its own line. genuiToMarkdown runs it itself. The web (unified-markdown.tsx), mobile (selectable-markdown.tsx) and scripts/score.ts` call it directly.
  10. A block's root is any block (root = Steps(...)); sanitizeTree wraps a non-Stack root in a Stack. The skill body is ours: PREAMBLE, SYNTAX, the lang-core signatures from GENUI_LIBRARY.toSpec(), RULES, EXAMPLES (packages/sdk/src/genui/prompt.ts). lang-core's prose sections are not used.
  11. Photos for a visual answer come from ONE batched image_search call; a Checklist's ticks never leave the device.
  12. A client whose bundled SDK predates a component cannot render or convert it: the parser reports unknown-component and no-root, and the block shows This content could not be displayed., not the component's markdown. This hits a published CLI (genuiToMarkdown in apps/cli), a mobile build without the OTA, and third-party hosts on an older @kortix/sdk. Ship order for a new component: publish the CLI on the new SDK and send the mobile OTA first; only then let the regenerated kortix-genui skill that teaches it reach sandboxes.
  13. The kortix-genui description leaves software installs and terminal steps out on purpose ("How do I install Node.js on macOS? Step by step." stays prose with code fences). scripts/eval.ts puts the skill in the system message, so it measures the reply shape, not whether the agent loads the skill: measure the trigger in a real session.

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 Genui làm được gì?

Generative UI for Kortix: the agent writes typed UI blocks (cards, comparisons, charts, maps, tabs) in OpenUI Lang inside its replies, and web, mobile, and SDK hosts render them through `@kortix/sdk/genui`. Load WHENEVER you design, build, review, or debug generative UI, the `openui` code fence, the genui prompt instructions, a genui component, the `kortix-genui` system skill, or the `@kortix/sdk/genui` or `/genui/react` subpaths.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/genui. 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 Genui?

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

Kỹ năng này được kortix-ai 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 👇