openai/skills

chatgpt-apps

先规划工具与数据,再接通ChatGPT交互组件

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

chatgpt-apps 是什么?

为ChatGPT Apps SDK应用规划工具、MCP服务和交互组件,先读取当前官方文档并选择最小匹配示例,再实现资源注册、结构化返回、UI桥接与CSP等配置。它区分仅工具、简单widget、复杂交互和公开提交等目标。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 要从零搭建或排查一个通过 MCP 工具和 widget 与 ChatGPT 交互的 Apps SDK 项目,并希望先按官方文档选择最小示例。

这些情况不适合

  • 只需要一个不面向 ChatGPT Apps 的独立 MCP 服务;本指南覆盖 Apps SDK、ChatGPT 兼容能力与交互组件。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 chatgpt-apps,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 chatgpt-apps

请在 Codex 的当前工作环境中安装并检查 chatgpt-apps 这个 Skill。

项目身份:openai/skills / chatgpt-apps
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/chatgpt-apps/SKILL.md
已定位的源文件:skills/.curated/chatgpt-apps/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 明确应用用途、只读或写工具、前后端语言、认证、外部域名,以及本地演示还是公开发布。

会得到什么

  • 工具方案、服务与widget实现、本地运行说明,以及实际完成到哪一层的验证记录。

实际使用顺序

  1. 先获取当前Apps SDK文档,选择应用形态与最近官方示例;按用户意图定义窄用途工具、输入schema和真实读写标记。
  2. 实现MCP资源与处理器,区分structuredContent、content和_meta;UI优先MCP Apps桥接,再按需要加ChatGPT专用能力。
  3. 依次核对语法、/mcp、工具描述与widget,需ChatGPT联调时配置HTTPS入口;托管、提交审核与发布只在相应范围内做。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用chatgpt-apps配合openai-docs,为只读库存查询做一个最小ChatGPT应用。先读当前官方示例,定义search与fetch;使用我提供的模拟库存JSON,不接生产数据库、不实现下单。生成本地MCP服务与简单展示界面,记录语法、工具与界面验证各自结果,不提交公开目录。
预期结果

预期得到可按说明联调的本地骨架,未经ChatGPT运行的部分明确列出;本站未创建此例。

使用前先看这些限制

使用条件与边界

  • 骨架文件生成、MCP健康响应、ChatGPT界面联调与公开审核是不同阶段;不能互相替代。
针对这个 Skill 的疑问

常见问题

普通MCP一定需要做widget吗?

不需要,来源列有tool-only形态。只有交互展示确实帮助任务时才添加UI。

本地隧道能当正式上线地址吗?

来源将隧道用于本地开发;正式托管与公开提交需要稳定HTTPS入口和相应部署、审核流程。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/chatgpt-apps/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

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.

查看源文件章节 / Source sections
  • 原文:ChatGPT Apps
  • 原文:Overview
  • 原文:Mandatory Docs-First Workflow
  • 原文:Prompt Guidance
  • 原文:Classify The App Before Choosing Code
  • 原文:Default Starting-Point Order
  • 原文:Build Workflow
  • 原文:0. Classify The App Archetype
  • 原文:1. Plan Tools Before Code
  • 原文:2. Choose an App Architecture
  • 原文:2a. Start From An Upstream Example When One Fits
  • 原文:2b. Use the Starter Script When a Low-Dependency Fallback Helps
  • 原文:3. Scaffold the MCP Server
  • 原文:4. Scaffold the Widget UI
  • 原文:API Surface Guardrails
  • 原文:5. Add Resource Metadata and Security
  • 原文:5a. Enforce A Minimum Working Repo Contract
  • 原文:6. Validate the Local Loop
  • 原文:7. Connect and Test in ChatGPT (Developer Mode)
  • 原文:8. Plan Production Hosting and Deployment
  • 原文:9. Prepare Submission and Publish (Public Apps Only)
  • 原文:Interactive State Guidance
  • 原文:Output Expectations
  • 原文:References
原文: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.openai` compatibility/extensions second) - A reusable Node + `@modelcontextprotocol/ext-apps` starter 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. 1. Invoke `$openai-docs` (preferred) or call the OpenAI docs MCP server directly. 2. Fetch current Apps SDK docs before writing code, especially (baseline pages): - `apps-sdk/build/mcp-server` - `apps-sdk/build/chatgpt-ui` - `apps-sdk/build/examples` - `apps-sdk/plan/tools` - `apps-sdk/reference` 3. Fetch `apps-sdk/quickstart` when scaffolding a new app or generating a first-pass implementation, and check the official examples repo/page before inventing a scaffold from scratch. 4. Fetch deployment/submission docs when the task includes local ChatGPT testing, hosting, or public launch: - `apps-sdk/deploy` - `apps-sdk/deploy/submission` - `apps-sdk/app-submission-guidelines` 5. Cite the docs URLs you used when explaining design choices or generated scaffolds. 6. Prefer current docs guidance over older repo patterns when they differ, and call out compatibility aliases explicitly. 7. 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_docs` - `mcp__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-only` - `vanilla-widget` - `react-widget` - `interactive-decoupled` - `submission-ready` Infer the archetype unless a missing detail is truly blocking. Use the archetype to choose: - whether a UI is needed at all - whether to preserve a split `server/` + `web/` layout - whether to prefer official OpenAI examples, ext-apps examples, or the local fallback scaffold - which validation checks matter most - whether `search` and `fetch` should be the default read-only tool surface Read `references/app-archetypes.md` for the decision rubric.

原文:Default Starting-Point Order

For greenfield apps, prefer these starting points in order: 1. **Official OpenAI examples** when a close example already matches the requested stack or interaction pattern. 2. **Version-matched `@modelcontextprotocol/ext-apps` examples** when the user needs a lower-level or more portable MCP Apps baseline. 3. **`scripts/scaffold_node_ext_apps.mjs`** only when no close example fits, the user wants a tiny Node + vanilla starter, or network access/example retrieval is undesirable. Do not generate a large custom scaffold from scratch if a close upstream example already exists. Copy the smallest matching example, remove unrelated demo code, then patch it to the current docs and the user request.

原文:0. Classify The App Archetype

Pick one primary archetype before planning tools or choosing a starting point. - Prefer a single primary archetype instead of mixing several. - If the request is broad, infer the smallest archetype that can still satisfy it. - Escalate to `submission-ready` only when the user asks for public launch, directory submission, or review-ready deployment. - Call out the chosen archetype in your response so the user can correct it early if needed.

文件 SHA256:c3a13a659ce26e9d067b5a97c321e8abec6d8e878afce31b7e841dfcf2635c3a

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

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.

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/chatgpt-apps/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源