Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

chatgpt-app:new

БесплатноБез исполняемых скриптовНе проверен

Create a new ChatGPT App from concept to working code. Guides through conceptualization, design, implementation, testing, and deployment.

diegosouzapwот 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:

  • Server class from @modelcontextprotocol/sdk/server/index.js (NOT McpServer)
  • StreamableHTTPServerTransport from @modelcontextprotocol/sdk/server/streamableHttp.js
  • Session management with Map<string, StreamableHTTPServerTransport>
  • Widget URIs: ui://widget/{widget-id}.html
  • Widget MIME type: text/html+skybridge
  • structuredContent in tool responses for widget data
  • _meta with openai/outputTemplate on 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:

  1. Ask for the app idea "What ChatGPT App would you like to build? Describe what it does and the problem it solves."

  2. 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?
  3. 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
  4. Define Use Cases Create 3-5 primary use cases with user stories.

Phase 2: Design

Design the technical architecture:

  1. 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)
  2. Widget Design For each widget, define:

    • id - unique identifier (kebab-case)
    • name - display name
    • description - what it shows
    • mockData - sample data for preview
  3. Data Model Design entities and their relationships.

  4. 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
Полный SKILL.md на GitHub

Установить chatgpt-app:new в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

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), без исполняемых скриптов.

Похожие скиллы

Сравнить chatgpt-app:new с