chatgpt-app-builder
它能做什么
这项技能指导你创建 ChatGPT 应用,向用户展示交互式小组件,并与 AI 共享其状态。适合希望构建 ChatGPT 应用的开发者。描述中标明该技能已被弃用,建议改用另一项技能。
适用场景
- ✓你想创建带有交互式小组件的 ChatGPT 应用的时候。
- ✓你需要为 ChatGPT 构建带有小组件的 MCP 服务器的时候。
- ✓你想把小组件的状态连接到 AI 的上下文中的时候。
技能链接
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/generative_ui_agents/ai-mcp-app-builder/apps/mcp-use-server/.agent/skills/chatgpt-app-builder/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我构建一个 ChatGPT 应用,包含一个小型交互式小组件,让用户选择产品并查看其详情。”
每周 5 个新技能,1 分钟读完。
工作原理
它会依次介绍如何确定要构建的内容、设置项目、编写展示小组件的服务器工具,以及管理用户和 AI 都能看到的状态。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
ChatGPT App Builder
Build ChatGPT apps with interactive widgets using mcp-use. Zero-config widget development with automatic registration and built-in React hooks.
The app is consumed by two users at once: the human and the ChatGPT LLM. They collaborate through the widget -- the human interacts with it, the LLM sees its state. The widget is your shared surface.
Before You Code
- Clarify what to build → discover.md: when starting a new app, validating an idea, or scoping features
- Design tools and widgets → architecture.md: when deciding what needs UI vs tools-only, designing UX flows
Setup
- Scaffold and run → setup.md: when creating a new project, starting dev server, connecting to ChatGPT/Claude
Implementation
- Server handlers + widget creation → server-and-widgets.md: when writing server.tool() with widgets, widget() helper, React widget files
- Widget state and LLM context → state-and-context.md: when persisting state, triggering LLM from widget, managing ephemeral vs persistent data
- Display modes, theme, layout → ui-guidelines.md: when adapting to inline/fullscreen/PiP, handling theme, device, locale
- Component API → components-api.md: when using McpUseProvider, Image, ErrorBoundary, useWidget
- CSP and metadata → csp-and-metadata.md: when configuring external domains, dual-protocol metadata
- Advanced patterns → widget-patterns.md: when building complex widgets with tool calls, state, theming
Quick Reference
// Server
import { MCPServer, widget, text, object } from "mcp-use/server";
server.tool({ name: "...", schema: z.object({...}), widget: { name: "widget-name" } },
async (input) => widget({ props: {...}, output: text("...") })
);
// Widget (resources/widget-name.tsx)
import { McpUseProvider, useWidget, type WidgetMetadata } from "mcp-use/react";
export const widgetMetadata: WidgetMetadata = { description: "...", props: z.object({...}) };
export default function MyWidget() {
const { props, isPending, callTool, sendFollowUpMessage, state, setState, theme } = useWidget();
if (isPending) return <McpUseProvider autoSize><div>Loading...</div></McpUseProvider>;
return <McpUseProvider autoSize><div>{/* UI */}</div></McpUseProvider>;
}
常见问题
这是该技能的当前版本吗?
不是。描述说明它已被弃用,并指向 mcp-app-builder。
这个应用是为谁准备的?
既为使用它的用户,也为 ChatGPT 助手,二者通过小组件共享同一个界面。
它涵盖项目设置吗?
涵盖。它包括创建新项目和运行开发服务器的指导。
详情
作者的原始描述
DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.
热度
- GitHub 星标
- 144k
- 排名
- #680
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/22
评论
- …
同一仓库的更多技能
advisor-orchestrator-worker
144k帮你的智能体把非常庞大的任务分配给一组 AI 模型,由较强的模型负责规划和检查,较便宜的模型负责执行。
commit-archaeologist
144k帮你的智能体通过阅读本地 git 历史,解释某段代码存在的原因,包括是谁添加的以及之后发生了哪些改动。
dependency-doctor
144k帮你的智能体检查 requirements.txt、pyproject.toml 或 package.json 文件中常见的依赖问题,并提出小而便于审阅的修复建议。
first-reader
144k帮你的智能体模拟真实读者的阅读体验来测试草稿,指出读者可能在哪里失去兴趣,以及他们会记住什么。