Index of every page on this site: llms.txt
All skills
alpic-ai avatar

/chatgpt-app-builder

@5cd3f8c
by Alpicalpic-ai/skybridge2.2k stars
145
Run it yourself

Guide developers through creating and updating ChatGPT plugins. Covers the full lifecycle: brainstorming ideas against UX guidelines, bootstrapping projects, implementing tools/views, debugging, running dev servers, deploying and connecting plugins to ChatGPT. Use when a user wants to create or update a ChatGPT plugin (formerly called a ChatGPT app) / MCP server for ChatGPT, or use the Skybridge framework.

Use this Skill: https://skilld.dev/gh/alpic-ai/skybridge/chatgpt-app-builder

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesopenai-extensions.md

≈1.9k tokens on demand. Your agent reads this file only when SKILL.md points to it.

OpenAI MCP extensions

Let users open a view without the model → openai on registerTool, useDeepLink, useHost().openaiCapabilities. Mentions, titled messages and local files → registerMentions, useSendFollowUpMessage, useOpenFile, registerFileViewer, useFileResource. Settings and forms → registerSettings, requestFormInput

These are OpenAI MCP extensions, not part of MCP or MCP Apps: only ChatGPT reads them, other hosts ignore them.

Entrypoints

One tool per kind of entrypoint. Sidebar and conversation tab, called with {}:

server.registerTool(
  {
    name: "library",
    title: "Parts Library",
    description: "Browse the parts catalog.",
    icons: [{ src: "https://example.com/library.svg", mimeType: "image/svg+xml" }],
    view: { component: "library" },
    openai: { entrypoints: [{ type: "global" }, { type: "thread" }] },
  },
  async () => ({ structuredContent: { parts: await listParts() } }),
);

File viewer, called with the opened file as { file: { name, resourceUri } }:

server.registerFileViewer(
  {
    name: "part-viewer",
    title: "Part Viewer",
    description: "Open a CAD part.",
    extensions: [".stl"],
    icons: [{ src: "https://example.com/part.svg", mimeType: "image/svg+xml" }],
    view: { component: "part-viewer" },
  },
  async ({ file }) => ({ structuredContent: { name: file.name } }),
);

The view reads and saves the opened file with useFileResource(input.file?.resourceUri), see Reading and saving the opened file.

  • global adds a sidebar entry, thread a tab in a conversation's side panel, file a viewer for those file extensions.
  • ChatGPT calls global and thread tools with {}: every input must be optional, or Skybridge throws at startup.
  • A file entrypoint passes { file: { name, resourceUri } }. Extensions must start with ..
  • Give each tool a title that differs from the app name: it labels the entry.
  • Set icons on every entrypoint tool: a monochrome 20x20 SVG using currentColor.
  • Global, thread and file entrypoints open fullscreen. File entrypoints only exist on ChatGPT desktop.

Deep links

A deep link opens ChatGPT with your app already open, from anywhere outside ChatGPT: an "Open in ChatGPT" button on your website, a link in an email or in your docs. It targets a tool with a global entrypoint:

https://chatgpt.com/plugins/<plugin-id>/app/<tool-name>

Add path to land on a page of your view. Its value is an app-relative URL, query included, percent-encoded:

https://chatgpt.com/plugins/<plugin-id>/app/library?path=%2Fparts%2Fhex-bolt%3Funit%3Dmm

The view reads it with useDeepLink(), here "/parts/hex-bolt?unit=mm", and routes to it:

import { useDeepLink } from "skybridge/web";

const deepLink = useDeepLink();
useEffect(() => {
  if (deepLink) navigate(deepLink);
}, [deepLink, navigate]);
  • Without path, the view opens on /. useDeepLink() is undefined when the view wasn't opened from a deep link.
  • <plugin-id> is in your plugin's URL, https://chatgpt.com/plugins/<plugin-id>.
  • Desktop and mobile apps use codex://plugins/<plugin-id>/app/<tool-name> and chatgpt://plugins/<plugin-id>/app/<tool-name>. For a plugin from a custom marketplace, write <plugin-id>@<marketplace>. Android doesn't support deep links.

Feature detection

const { openaiCapabilities } = useHost();
if (openaiCapabilities.files) {
  showOpenInChatGPT();
}

resource, modelContext, message and files are false outside ChatGPT.

At-mentions

server.registerMentions({
  name: "search_parts",
  handler: async ({ query }) => ({
    items: findParts(query).map((part) => ({
      type: "resource_link",
      uri: `parts://${part.id}`,
      name: part.name,
    })),
  }),
});

Users type @ and the app to mention individual items. The tool is hidden from the model. ChatGPT desktop only. Serve the returned uris as resources (server.registerResource) so the host can read the picked item.

Settings

server.registerSettings({
  fields: {
    units: { title: "Units", schema: z.enum(["mm", "in"]) },
    showGrid: { title: "Show grid", schema: z.boolean() },
  },
  layout: [
    {
      kind: "group",
      title: "Display",
      items: [
        { kind: "property", property: "units" },
        { kind: "tool", tool: "browse-parts", title: "Browse parts" },
      ],
    },
  ],
  read: (extra) => loadSettings(extra),
  update: (set, extra) => saveSettings(set, extra),
});

Adds the app's page to ChatGPT's app settings. Fields are zod booleans, strings, string enums, numbers or integers, without defaults. read returns every value, update gets only the changed fields and returns every value. The server stores the values, per user when it uses OAuth. A tool item is a button that calls a tool with {}. A tool with a view opens in a modal, and any other tool shows the text content it returns. Startup fails on a layout naming an unknown or duplicate field.

Forms

server.registerTool({ name: "inspect-part" }, (_args, extra) => {
  const result = requestFormInput(extra, {
    key: "part",
    message: "Choose a part",
    requestedSchema: {
      type: "object",
      properties: {
        part: { type: "string", oneOf: [{ const: "hex-bolt", title: "M6 hex bolt" }] },
      },
      required: ["part"],
    },
  });
  if ("resultType" in result) {
    return result;
  }
  return { content: result.action === "accept" ? `Inspecting ${result.content.part}` : "No part chosen." };
});

Asks the user to fill a form before the tool finishes. The first call returns an input_required result to return as is; ChatGPT shows the form and calls the tool again, and the same requestFormInput call then returns { action, content }. Fields are MCP form fields plus pattern, option description and x-openai-thumbnail, x-openai-suggestions, and x-openai-input: { type: "resource", options, userOptions } for resource pickers. Needs MCP 2026-07-28 and ChatGPT desktop or web; throws elsewhere. Use a different key per form.

Messages

const send = useSendFollowUpMessage();
send([{ type: "text", text: "M6 hex bolt", _meta: { "openai/title": "Hex bolt" } }], { target: "new" });
  • A text or image block with _meta["openai/title"] becomes a removable labeled item.
  • target: "new" starts a new conversation. Mobile only supports the active one.

Opening local files

const { openaiCapabilities } = useHost();
const openFile = useOpenFile();
if (openaiCapabilities.files) {
  openFile("/workspace/parts/hex-bolt.stl");
}

Needs ChatGPT desktop, with a path on the machine that runs it. ChatGPT shows the file in its built-in viewer, not in your file entrypoint. openFile rejects elsewhere.

Reading and saving the opened file

const { input } = useToolInfo<"open-part">();
const { data, write } = useFileResource(input.file?.resourceUri, { representation: "text" });
await write({ text: edited });
  • ChatGPT never gives the view the path, only file.resourceUri. The hook re-reads the file when it changes.
  • write sends the current etag when ChatGPT returned one: it resolves conflict if the file changed (and re-reads it), too-large past the size limit.
  • Check data.writable before offering a save.

Onboarding

Add "extensions": { "com.openai": { "onboardingSkill": "./src/skills/setup/SKILL.md" } } to the plugin manifest to offer a setup skill users run after install. Skybridge doesn't generate that manifest.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert29d5 checks · Risk SAFE
  • Gen Agent Trust Hub29d

    This skill is a developer assistance tool for building ChatGPT plugins and MCP servers using the Skybridge framework and Alpic platform. It facilitates standard software development workflows including project scaffolding, local testing, and deployment. No malicious patterns or security vulnerabilities were detected.

  • Socket29d

    No alerts

  • Snyk29d

    Risk: LOW · No issues

  • Runlayer8mo

    8/23 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 5cd3f8c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 months ago

README badge

README badge for alpic-ai/skybridge/chatgpt-app-builder

Guides developers through the complete lifecycle of building ChatGPT apps—from ideation and project setup through implementation, debugging, and deployment to the ChatGPT Directory. Covers the Skybridge MCP server framework, tool integration, custom UI views, state management, OAuth, and the dual-user model where both the human and ChatGPT LLM interact with the same view.

Generated from the current SKILL.md.

What is a ChatGPT app and how does it work?
A ChatGPT app is a conversational experience that extends ChatGPT through tools and custom UI views, built as an MCP server. The view serves as a shared surface where both the human user and the ChatGPT LLM interact and collaborate.
Do I need a SPEC.md file before building?
Yes. You should read discover.md first to create a SPEC.md that documents your app's requirements and design decisions before implementing anything.
What does this skill cover?
The skill guides the full lifecycle: brainstorming ideas against UX guidelines, bootstrapping projects, implementing tools and views, debugging, running dev servers, deploying via Alpic, and publishing to the ChatGPT Directory.
Does this skill provide API documentation?
Yes. Full API docs are available at https://docs.skybridge.tech/api-reference.md, and the skill includes implementation references for specific tasks like OAuth, state management, and CSP configuration.

Generated from the current SKILL.md. These answers refresh after source changes.