chatgpt-apps
它能做什么
这项技能帮助为 ChatGPT 创建应用,把工具服务器与显示在对话中的界面结合起来。适合希望构建 ChatGPT 应用的开发者。
适用场景
- ✓当你想构建一个拥有自己工具和小组件界面的新 ChatGPT 应用的时候。
- ✓当你需要设置 MCP 服务器工具、界面资源,或应用的元数据和安全域设置的时候。
- ✓当你想排查现有 ChatGPT 应用的小组件或连接器设置问题的时候。
技能链接
https://github.com/openai/skills/blob/main/skills/.curated/chatgpt-apps/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想构建一个显示简单预订小组件的 ChatGPT 应用。你能帮我设置吗?”
每周 5 个新技能,1 分钟读完。
工作原理
它要求智能体先阅读当前的官方文档,规划工具,然后生成遵循当前模式的服务器骨架和小组件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
ChatGPT Apps
Overview
Scaffold ChatGPT Apps SDK implementations with a docs-first, example-first workflow, then generate code that follows current Apps SDK and MCP Apps bridge patterns.
Use this skill to produce:
- A primary app-archetype classification and repo-shape decision
- A tool plan (names, schemas, annotations, outputs)
- An upstream starting-point recommendation (official example, ext-apps example, or local fallback scaffold)
- An MCP server scaffold (resource registration, tool handlers, metadata)
- A widget scaffold (MCP Apps bridge first,
window.openaicompatibility/extensions second) - A reusable Node +
@modelcontextprotocol/ext-appsstarter scaffold for low-dependency fallbacks - A validation report against the minimum working repo contract
- Local dev and connector setup steps
- A short stakeholder summary of what the app does (when requested)
Mandatory Docs-First Workflow
Use $openai-docs first whenever building or changing a ChatGPT Apps SDK app.
- Invoke
$openai-docs(preferred) or call the OpenAI docs MCP server directly. - Fetch current Apps SDK docs before writing code, especially (baseline pages):
apps-sdk/build/mcp-serverapps-sdk/build/chatgpt-uiapps-sdk/build/examplesapps-sdk/plan/toolsapps-sdk/reference
- Fetch
apps-sdk/quickstartwhen scaffolding a new app or generating a first-pass implementation, and check the official examples repo/page before inventing a scaffold from scratch. - Fetch deployment/submission docs when the task includes local ChatGPT testing, hosting, or public launch:
apps-sdk/deployapps-sdk/deploy/submissionapps-sdk/app-submission-guidelines
- Cite the docs URLs you used when explaining design choices or generated scaffolds.
- Prefer current docs guidance over older repo patterns when they differ, and call out compatibility aliases explicitly.
- If doc search times out or returns poor matches, fetch the canonical Apps SDK pages directly by URL and continue; do not let search failure block scaffolding.
If $openai-docs is unavailable, use:
mcp__openaiDeveloperDocs__search_openai_docsmcp__openaiDeveloperDocs__fetch_openai_doc
Read references/apps-sdk-docs-workflow.md for suggested doc queries and a compact checklist.
Read references/app-archetypes.md to classify the request into a small number of supported app shapes before choosing examples or scaffolds.
Read references/repo-contract-and-validation.md when generating or reviewing a repo so the output stays inside a stable “working app” contract.
Read references/search-fetch-standard.md when the app is connector-like, data-only, sync-oriented, or meant to work well with company knowledge or deep research.
Read references/upstream-example-workflow.md when starting a greenfield app or when deciding whether to adapt an upstream example or use the local fallback scaffold.
Read references/window-openai-patterns.md when the task needs ChatGPT-specific widget behavior or when translating repo examples that use wrapper-specific app.* helpers.
Prompt Guidance
Use prompts that explicitly pair this skill with $openai-docs so the resulting scaffold is grounded in current docs.
Preferred prompt patterns:
Use $chatgpt-apps with $openai-docs to scaffold a ChatGPT app for <use case> with a <TS/Python> MCP server and <React/vanilla> widget.Use $chatgpt-apps with $openai-docs to adapt the closest official Apps SDK example into a ChatGPT app for <use case>.Use $chatgpt-apps and $openai-docs to refactor this Apps SDK demo into a production-ready structure with tool annotations, CSP, and URI versioning.Use $chatgpt-apps with $openai-docs to plan tools first, then generate the MCP server and widget code.
When responding, ask for or infer these inputs before coding:
- Use case and primary user flows
- Read-only vs mutating tools
- Demo vs production target
- Private/internal use vs public directory submission
- Backend language and UI stack
- Auth requirements
- External API domains for CSP allowlists
- Hosting target and local dev approach
- Org ownership/verification readiness (for submission tasks)
Classify The App Before Choosing Code
Before choosing examples, repo shape, or scaffolds, classify the request into one primary archetype and state it.
tool-onlyvanilla-widgetreact-widgetinteractive-decoupledsubmission-ready
Infer the archetype unless a missing detail i
常见问题
它使用最新的文档吗?
这项技能要求在编写代码前先检查当前的 OpenAI 文档,使代码遵循最新的模式。
智能体会产出什么?
它可以产出工具规划、服务器骨架、小组件骨架、验证报告和本地设置步骤。
它能配合 MCP Apps 桥接使用吗?
可以,这项技能说明应先接入 MCP Apps 桥接,然后再使用 window.openai 兼容 API。
详情
作者的原始描述
Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.
repo: openai/skills
热度
- GitHub 星标
- 28k
- 排名
- #9845
- 许可证
- —
- 更新时间
- 2026/10/28
评论
- …
同一仓库的更多技能
aspnet-core
28k帮你的智能体构建、审阅或升级 ASP.NET Core 网络应用,选择合适的应用类型,并遵循微软针对 .NET 的最新指导。
cli-creator
28k帮你的智能体把 API 文档、规范或现有脚本转化为可复用的命令行工具,可在任何文件夹中运行,并返回稳定的 JSON。
define-goal
28k帮你的智能体在开始工作前,把模糊的意图转化为清晰、可衡量的目标,并明确成功标准、范围和停止条件。
figma-code-connect-components
28k帮你的智能体用 Code Connect 把 Figma 设计组件与其代码版本相连,使设计和代码保持一致。