chat-apps-ui-sdk
БесплатноБез исполняемых скриптовНе проверенInteractive UI rendered inside ChatGPT or Claude — OpenAI Apps SDK apps, MCP Apps (the @modelcontextprotocol/ext-apps standard), or MCP-UI components, with a…
от pproenca★ 231 звезда на GitHubОб этом скилле
Chat Apps UI SDK Best Practices
A reference for building beautiful, review-ready apps that render interactive UI inside the chat surface of ChatGPT and Claude. As of January 2026 these platforms share one foundation — the MCP Apps standard (@modelcontextprotocol/ext-apps), rendered by Claude, ChatGPT, VS Code, and Goose. The OpenAI Apps SDK is a superset adding the window.openai bridge, and MCP-UI (@mcp-ui/server / @mcp-ui/client) is the community implementation. This skill contains 46 rules across 8 categories, ordered by impact so the highest-leverage decisions come first.
The mental model: an app is an MCP tool first, UI second. The model invokes a tool; the tool returns data plus a link to a UI resource; the host renders that resource in a sandboxed iframe; the iframe talks back over a defined bridge. Mistakes early in that chain mean nothing renders; mistakes later mean it renders broken, unsafe, or unpolished.
When to Apply
Reference these guidelines when:
- Designing the MCP tool and
structuredContent/content/_metacontract for a chat app - Wiring a tool to a component (
_meta.ui.resourceUri, thetext/html;profile=mcp-appMIME type, theui://scheme) - Writing the iframe component and its bridge (
window.openai,ui/notifications/*, MCP-UIonUIAction) - Choosing display modes, widget state, theming, and responsive layout
- Hardening a chat app (CSP, sandbox, secrets, OAuth) or preparing it for directory submission
- Reviewing or refactoring existing ChatGPT-app / Claude-app / MCP-UI code
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | MCP Tool & Discovery Design | CRITICAL | tool- |
| 2 | UI Resource Wiring & Templates | CRITICAL | wire- |
| 3 | Host–Component Data Bridge | HIGH | bridge- |
| 4 | Display Modes & Responsive Layout | HIGH | display- |
| 5 | State & Model Context | HIGH | state- |
| 6 | Security & Data Boundaries | HIGH | sec- |
| 7 | Visual Design & UX Polish | MEDIUM-HIGH | design- |
| 8 | Distribution & Cross-Host Portability | MEDIUM | dist- |
Quick Reference
1. MCP Tool & Discovery Design (CRITICAL)
tool-structured-content-contract- Split output across structuredContent, content, and _metatool-specific-verb-names- Name tools as specific action verbstool-output-schema-validation- Declare an output schema for structuredContenttool-safety-annotations- Set readOnlyHint and destructiveHint accuratelytool-minimal-scoped-inputs- Request minimal, task-scoped tool inputstool-feed-widget-in-response- Return everything the widget needs in one responsetool-honest-descriptions- Write honest tool descriptions and status text
2. UI Resource Wiring & Templates (CRITICAL)
wire-resource-uri-link- Link each tool to its UI with resourceUriwire-mcp-app-mimetype- Serve UI resources with the mcp-app MIME typewire-ui-scheme-and-handler- Match the ui:// URI to a registered resourcewire-version-uri-cache-key- Version the resource URI as a cache keywire-inline-self-contained-bundle- Inline the component bundle into the resourcewire-set-ui-domain- Set a unique ui.domain for the component
3. Host–Component Data Bridge (HIGH)
bridge-render-from-notifications- Render from tool output, not first paintbridge-call-tools-app-visibility- Expose tools to the app before calling thembridge-followup-vs-silent-call- Choose follow-up messages or silent tool callsbridge-validate-postmessage-origin- Validate postMessage source in the hostbridge-handle-all-mcpui-actions- Handle every MCP-UI onUIAction typebridge-use-host-apis- Use host bridge APIs instead of reimplementing
4. Display Modes & Responsive Layout (HIGH)
display-pick-the-right-mode- Pick the display mode that fits the taskdisplay-request-mode-with-fallback- Request fullscreen but render inline first- [
display-report-intrinsic-height](referenc
Установить chat-apps-ui-sdk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл chat-apps-ui-sdk?
Interactive UI rendered inside ChatGPT or Claude — OpenAI Apps SDK apps, MCP Apps (the @modelcontextprotocol/ext-apps standard), or MCP-UI components, with a Next.js/React server. Covers the MCP tool and resource architecture, the window.openai / ui-bridge data flow, widget state, sandbox/CSP security, display modes, visual design, and directory submission. Trigger when building, reviewing, or designing such apps — even when the user only says "chat app", "ChatGPT widget", "Claude app", "render UI in chat", "window.openai", "createUIResource", "outputTemplate", or "MCP app UI" without naming a specific SDK.
Как установить скилл chat-apps-ui-sdk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chat-apps-ui-sdk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic