chatgpt-app:new
БесплатноБез исполняемых скриптовНе проверенCreate a new ChatGPT App from concept to working code. Guides through conceptualization, design, implementation, testing, and deployment.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Create a New ChatGPT App
You are helping the user create a new ChatGPT App. Follow this multi-phase workflow to take them from concept to a working, deployable application.
CRITICAL REQUIREMENTS
ChatGPT Apps MUST use:
Serverclass from@modelcontextprotocol/sdk/server/index.js(NOTMcpServer)StreamableHTTPServerTransportfrom@modelcontextprotocol/sdk/server/streamableHttp.js- Session management with
Map<string, StreamableHTTPServerTransport> - Widget URIs:
ui://widget/{widget-id}.html - Widget MIME type:
text/html+skybridge structuredContentin tool responses for widget data_metawithopenai/outputTemplateon both tool definitions and responses
File Structure
Every ChatGPT App follows this structure:
{app-name}/
├── package.json # Dependencies and scripts
├── tsconfig.server.json # TypeScript config
├── setup.sh # One-command setup
├── START.sh # Multi-mode server launcher
├── .env # Environment variables (created by setup.sh)
├── .env.example # Environment template
├── .gitignore # Git ignores
└── server/
└── index.ts # Complete MCP server with inline widgets
Phase 1: Conceptualization
Start by gathering information about the app:
Ask for the app idea "What ChatGPT App would you like to build? Describe what it does and the problem it solves."
Analyze against UX Principles Evaluate the idea against the three pillars:
- Conversational Leverage: What can users accomplish through natural language that would be harder in a traditional UI?
- Native Fit: How does this integrate naturally with ChatGPT's conversational flow?
- Composability: Can the tools work independently and combine with other apps?
Check for Anti-Patterns Warn if the idea includes:
- Static website content display
- Complex multi-step workflows requiring external tabs
- Duplicating ChatGPT's native capabilities
- Ads or upsells
Define Use Cases Create 3-5 primary use cases with user stories.
Phase 2: Design
Design the technical architecture:
Tool Topology Define the MCP tools needed:
- Query tools (readOnlyHint: true)
- Mutation tools (destructiveHint: false)
- Destructive tools (destructiveHint: true)
- Widget tools (return UI with _meta)
- External API tools (openWorldHint: true)
Widget Design For each widget, define:
id- unique identifier (kebab-case)name- display namedescription- what it showsmockData- sample data for preview
Data Model Design entities and their relationships.
Auth Requirements
- Single-user (no auth needed)
- Multi-user (Auth0 or Supabase Auth)
Phase 3: Implementation
Generate the complete application code.
package.json
{
"name": "{app-name}",
"version": "1.0.0",
"description": "{app-description}",
"type": "module",
"scripts": {
"build": "npm run build:server",
"build:server": "tsc -p tsconfig.server.json",
"start": "HTTP_MODE=true node dist/server/index.js",
"dev": "HTTP_MODE=true NODE_ENV=development tsx watch --clear-screen=false server/index.ts",
"validate": "tsc --noEmit -p tsconfig.server.json"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"dotenv": "^16.4.0",
"express": "^4.18.2",
"zod": "^3.23.0"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.0.0",
"tsx": "^4.0.0",
"typescript": "^5.4.0"
},
"engines": {
"node": ">=18.0.0"
}
}
tsconfig.server.json
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist/server",
"rootDir": "server",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"sourceMap": true
},
"include": ["server/**/*"],
"exclude": ["node_modules", "dist"]
}
server/index.ts Structure
The server MUST follow this structure:
// 1. Load environment first
import "dotenv/config";
import express, { Request, Response } from "express";
import { randomUUID } from "crypto";
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
import {
CallToolRequestSchema,
ListToolsRequestSchema,
ListResourcesRequestSchema,
ReadResourceRequestSchema,
JSONRPCMessage,
} from "@modelcontextprotocol/sdk/types.js";
// 2. Configuration
const PORT = process.env.PORT || 3000;
const NODE_ENV = process.env.NODE_ENV || "development";
const WIDGET_DOMAIN = process.env.WIDGET_DOMAIN || `http://localhost:${PORT}`;
function log(...args: unknown[]) {
if (NODE_ENV === "development") {
console.log(`[${new Date().toISOString()}]`, ...args);
}
}
// 3. Widget Configuration Ar
Установить chatgpt-app:new в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл chatgpt-app:new?
Create a new ChatGPT App from concept to working code. Guides through conceptualization, design, implementation, testing, and deployment.
Как установить скилл chatgpt-app:new?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chatgpt-app:new запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic