Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

chatgpt-apps聊天应用程序

Agent Skill

chatgpt-apps 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

74,556

周安装

3,016

GitHub Stars

3

下载量

23,404
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chatgpt-apps(聊天应用程序)
来源仓库:https://github.com/hollaugo/chatgpt-apps
安装命令:
openclaw skills install chatgpt-apps
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install chatgpt-apps

简介

完整的 ChatGPT 应用程序构建器 - 使用 MCP 服务器、小部件、身份验证、数据库集成和自动部署创建、设计、实施、测试和部署 ChatGPT 应用程序

SKILL.md

name
chatgpt-apps
description
Complete ChatGPT Apps builder - Create, design, implement, test, and deploy ChatGPT Apps with MCP servers, widgets, auth, database integration, and automated deployment
homepage
https://github.com/hollaugo/prompt-circle-claude-plugins
user-invocable
true

ChatGPT Apps Builder

Complete workflow for building, testing, and deploying ChatGPT Apps from concept to production.

Commands

  • /chatgpt-apps new - Create a new ChatGPT App
  • /chatgpt-apps add-tool - Add an MCP tool to your app
  • /chatgpt-apps add-widget - Add a widget to your app
  • /chatgpt-apps add-auth - Configure authentication
  • /chatgpt-apps add-database - Set up database
  • /chatgpt-apps validate - Validate your app
  • /chatgpt-apps test - Run tests
  • /chatgpt-apps deploy - Deploy to production
  • /chatgpt-apps resume - Resume working on an app

Table of Contents

  1. Create New App
  2. Add MCP Tool
  3. Add Widget
  4. Add Authentication
  5. Add Database
  6. Generate Golden Prompts
  7. Validate App
  8. Test App
  9. Deploy App
  10. Resume App

1. Create New App

Purpose: Create a new ChatGPT App from concept to working code.

Workflow

Phase 1: Conceptualization

  1. Ask for the app idea

"What ChatGPT App would you like to build? Describe what it does and the problem it solves."

  1. Analyze against UX Principles

- Conversational Leverage: What can users accomplish through natural language? - Native Fit: How does this integrate with ChatGPT's conversational flow? - Composability: Can tools work independently and combine with other apps?

  1. Check for Anti-Patterns

- Static website content display - Complex multi-step workflows requiring external tabs - Duplicating ChatGPT's native capabilities - Ads or upsells

  1. Define Use Cases

Create 3-5 primary use cases with user stories.

Phase 2: Design

  1. Tool Topology

- Query tools (readOnlyHint: true) - Mutation tools (destructiveHint: false) - Destructive tools (destructiveHint: true) - Widget tools (return UI with _meta) - External API tools (openWorldHint: true)

  1. Widget Design

For each widget: - id - unique identifier (kebab-case) - name - display name - description - what it shows - mockData - sample data for preview

  1. Data Model

Design entities and relationships.

  1. Auth Requirements

- Single-user (no auth needed) - Multi-user (Auth0 or Supabase Auth)

Phase 3: Implementation

Generate complete application with this structure:

{app-name}/
├── package.json
├── tsconfig.server.json
├── setup.sh
├── START.sh
├── .env.example
├── .gitignore
└── server/
    └── index.ts

Critical Requirements:

  • Server class from @modelcontextprotocol/sdk/server/index.js
  • StreamableHTTPServerTransport for session management
  • Widget URIs: ui://widget/{widget-id}.html
  • Widget MIME type: text/html+skybridge
  • structuredContent in tool responses
  • _meta with openai/outputTemplate on tools

Phase 4: Testing

  • Run setup: ./setup.sh
  • Start dev: ./START.sh --dev
  • Preview widgets: http://localhost:3000/preview
  • Test MCP connection

Phase 5: Deployment

  • Generate Dockerfile and render.yaml
  • Deploy to Render
  • Configure ChatGPT connector

2. Add MCP Tool

Purpose: Add a new MCP tool to your ChatGPT App.

Workflow

  1. Gather Information

- What does this tool do? - What inputs does it need? - What does it return?

  1. Classify Tool Type

- Query (readOnlyHint: true) - Fetches data - Mutation (destructiveHint: false) - Creates/updates data - Destructive (destructiveHint: true) - Deletes data - Widget - Returns UI content - External (openWorldHint: true) - Calls external APIs

  1. Design Input Schema

Create Zod schema with appropriate types and descriptions.

  1. Generate Tool Handler

Use chatgpt-mcp-generator agent to create: - Tool handler in server/tools/ - Zod schema export - Type exports - Database queries (if needed)

  1. Register Tool

Update server/index.ts with metadata:

   {
     name: "my-tool",
     _meta: {
       "openai/toolInvocation/invoking": "Loading...",
       "openai/toolInvocation/invoked": "Done",
       "openai/outputTemplate": "ui://widget/my-widget.html", // if widget
     }
   }
  1. Update State

Add tool to .chatgpt-app/state.json.

Tool Naming

Use kebab-case: list-items, create-task, show-recipe-detail

Annotations Guide

ScenarioreadOnlyHintdestructiveHintopenWorldHint
List/Gettruefalsefalse
Create/Updatefalsefalsefalse
Deletefalsetruefalse
External APIvariesvariestrue

3. Add Widget

Purpose: Add inline HTML widgets with HTML/CSS/JS and Apps SDK integration.

5 Widget Patterns

  1. Card Grid - Multiple items in grid
  2. Stats Dashboard - Key metrics display
  3. Table - Tabular data
  4. Bar Chart - Simple visualizations
  5. Detail Widget - Single item details

Workflow

  1. Gather Information

- Widget purpose and data - Visual design (cards, table, chart, etc.) - Interactivity needs

  1. Define Data Shape

Document expected structure with TypeScript interface.

  1. Add Widget Config
   const widgets: WidgetConfig[] = [
     {
       id: "my-widget",
       name: "My Widget",
       description: "Displays data",
       templateUri: "ui://widget/my-widget.html",
       invoking: "Loading...",
       invoked: "Ready",
       mockData: { /* sample */ },
     },
   ];
  1. Add Widget HTML

Generate HTML with: - Preview mode support (window.PREVIEW_DATA) - OpenAI Apps SDK integration (window.openai.toolOutput) - Event listeners (openai:set_globals) - Polling fallback (100ms, 10s timeout)

  1. Create/Update Tool

Link tool to widget via widgetId.

  1. Test Widget

Preview at /preview/{widget-id} with mock data.

Widget HTML Structure

(function() {
  let rendered = false;

  function render(data) {
    if (rendered || !data) return;
    rendered = true;
    // Render logic
  }

  function tryRender() {
    if (window.PREVIEW_DATA) { render(window.PREVIEW_DATA); return; }
    if (window.openai?.toolOutput) { render(window.openai.toolOutput); }
  }

  window.addEventListener('openai:set_globals', tryRender);

  const poll = setInterval(() => {
    if (window.openai?.toolOutput || window.PREVIEW_DATA) {
      tryRender();
      clearInterval(poll);
    }
  }, 100);
  setTimeout(() => clearInterval(poll), 10000);

  tryRender();
})();

4. Add Authentication

Purpose: Configure authentication using Auth0 or Supabase Auth.

When to Add

  • Multiple users
  • Persistent private data per user
  • User-specific API credentials

Providers

Auth0:

  • Enterprise-grade
  • OAuth 2.1, PKCE flow
  • Social logins (Google, GitHub, etc.)

Supabase Auth:

  • Simpler setup
  • Email/password default
  • Integrates with Supabase database

Workflow

  1. Choose Provider

Ask user preference based on needs.

  1. Guide Setup

- Auth0: Create application, configure callback URLs, get credentials - Supabase: Already configured with database setup

  1. Generate Auth Code

Use chatgpt-auth-generator agent to create: - Session management middleware - User subject extraction - Token validation

  1. Update Server

Add auth middleware to protect routes.

  1. Update Environment
   # Auth0
   AUTH0_DOMAIN=your-tenant.auth0.com
   AUTH0_CLIENT_ID=...
   AUTH0_CLIENT_SECRET=...
   
   # Supabase (from database setup)
   SUPABASE_URL=...
   SUPABASE_ANON_KEY=...
  1. Test

Verify login flow and user isolation.


5. Add Database

Purpose: Configure PostgreSQL database using Supabase.

When to Add

  • Persistent user data
  • Multi-entity relationships
  • Query/filter capabilities

Workflow

  1. Check Supabase Setup

Verify account and project exist.

  1. Gather Credentials

- Project URL - Anon key (public) - Service role key (server-side)

  1. Define Entities

For each entity, specify: - Fields and types - Relationships - Indexes

  1. Generate Schema

Use chatgpt-database-generator agent to create SQL with: - id (UUID primary key) - user_subject (varchar, indexed) - created_at (timestamptz) - updated_at (timestamptz) - RLS policies for user isolation

  1. Setup Connection Pool
   import { createClient } from '@supabase/supabase-js';
   
   const supabase = createClient(
     process.env.SUPABASE_URL!,
     process.env.SUPABASE_SERVICE_ROLE_KEY!
   );
  1. Apply Migrations

Run SQL in Supabase dashboard or via migration tool.

Query Pattern

Always filter by user_subject:

const { data } = await supabase
  .from('tasks')
  .select('*')
  .eq('user_subject', userSubject);

6. Generate Golden Prompts

Purpose: Generate test prompts to validate ChatGPT correctly invokes tools.

Why Important

  • Measure precision/recall
  • Enable iteration
  • Post-launch monitoring

3 Categories

  1. Direct Prompts - Explicit tool invocation

- "Show me my task list" - "Create a new task called..."

  1. Indirect Prompts - Outcome-based, ChatGPT should infer tool

- "What do I need to do today?" - "Help me organize my work"

  1. Negative Prompts - Should NOT trigger tool

- "What is a task?" - "Tell me about project management"

Workflow

  1. Analyze Tools

Review each tool's purpose and inputs.

  1. Generate Prompts

For each tool, create: - 5+ direct prompts - 5+ indirect prompts - 3+ negative prompts - 2+ edge case prompts

  1. Best Practices

- Tool descriptions start with "Use this when..." - State limitations clearly - Include examples in descriptions

  1. Save Output

Write to .chatgpt-app/golden-prompts.json:

   {
     "toolName": {
       "direct": ["prompt1", "prompt2"],
       "indirect": ["prompt1", "prompt2"],
       "negative": ["prompt1", "prompt2"],
       "edge": ["prompt1", "prompt2"]
     }
   }

7. Validate App

Purpose: Validation suite before deployment.

10 Validation Checks

  1. Required Files

- package.json - tsconfig.server.json - setup.sh (executable) - START.sh (executable) - server/index.ts - .env.example

  1. Server Implementation

- Uses Server from MCP SDK - Has StreamableHTTPServerTransport - Session management with Map - Correct request handlers

  1. Widget Configuration

- widgets array exists - Each has id, name, description, templateUri, mockData - URIs match pattern ui://widget/{id}.html

  1. Tool Response Format

- Returns structuredContent (not just content) - Widget tools have _meta with openai/outputTemplate

  1. Resource Handler Format

- MIME type: text/html+skybridge - Returns _meta with serialization and CSP

  1. Widget HTML Structure

- Preview mode support - Event listeners for Apps SDK - Polling fallback - Render guard

  1. Endpoint Existence

- /health - Health check - /preview - Widget index - /preview/:widgetId - Widget preview - /mcp - MCP endpoint

  1. Package.json Scripts

- Has build:server - Has start with HTTP_MODE=true - Has dev with watch mode - NO web build scripts (web/, ui/, client/)

  1. Annotation Validation

- readOnlyHint set correctly - destructiveHint for delete operations - openWorldHint for external APIs

  1. Database Validation (if enabled)

- Tables have required fields - user_subject indexed - RLS policies enabled

Common Errors

ErrorFix
Missing structuredContentAdd to tool response
Wrong widget URIUse ui://widget/{id}.html
No session managementAdd Map<string, Transport>
Missing _metaAdd to tool definition and response
Wrong MIME typeUse text/html+skybridge

Critical: Check file existence FIRST before other validations!


8. Test App

Purpose: Run automated tests using MCP Inspector and golden prompts.

4 Test Categories

  1. MCP Protocol

- Server starts without errors - Handles initialize - Lists tools correctly - Lists resources correctly

  1. Schema Validation

- Tool schemas are valid Zod - Required fields marked - Types match implementation

  1. Widget Tests

- All widgets render in preview mode - Mock data loads correctly - No console errors

  1. Golden Prompt Tests

- Direct prompts trigger correct tools - Indirect prompts work as expected - Negative prompts don't trigger tools

Workflow

  1. Start Server in Test Mode
   HTTP_MODE=true NODE_ENV=test npm run dev
  1. Run MCP Inspector

Test protocol compliance: - Initialize connection - List tools - Call each tool with valid inputs - Check responses

  1. Schema Validation

Verify schemas compile and match implementation.

  1. Golden Prompt Tests

Use ChatGPT to test prompts: - Record which tool was called - Compare to expected tool - Calculate precision/recall

  1. Generate Report
   {
     "passed": 42,
     "failed": 3,
     "categories": {
       "mcp": "✅",
       "schema": "✅",
       "widgets": "✅",
       "prompts": "⚠️ 3 failures"
     },
     "timing": "2.3s"
   }

Fixing Failures

For each failure, explain:

  • What failed
  • Why it failed
  • How to fix (with code example)

9. Deploy App

Purpose: Deploy ChatGPT App to Render with PostgreSQL and health checks.

Prerequisites

  • ✅ Validation passed
  • ✅ Tests passed
  • ✅ Git repository clean
  • ✅ Environment variables ready

Workflow

  1. Pre-flight Check

- Run validation - Run tests - Check database connection (if enabled)

  1. Generate render.yaml
   services:
     - type: web
       name: {app-name}
       runtime: docker
       plan: free
       healthCheckPath: /health
       envVars:
         - key: PORT
           value: 3000
         - key: HTTP_MODE
           value: true
         - key: NODE_ENV
           value: production
         - key: WIDGET_DOMAIN
           generateValue: true
         # Add auth/database vars if needed
  1. Generate Dockerfile
   FROM node:20-slim
   WORKDIR /app
   COPY package*.json ./
   RUN npm ci --only=production
   COPY dist ./dist
   EXPOSE 3000
   CMD ["node", "dist/server/index.js"]
  1. Deploy

Option A: Automated (if Render MCP available) Use Render MCP agent to deploy.

Option B: Manual - Push to GitHub - Connect repo in Render dashboard - Set environment variables - Deploy

  1. Verify Deployment

- Health check: https://{app}.onrender.com/health - MCP endpoint: https://{app}.onrender.com/mcp - Tool discovery works - Widgets render

  1. Configure ChatGPT Connector

- URL: https://{app}.onrender.com/mcp - Test in ChatGPT


10. Resume App

Purpose: Resume building an in-progress ChatGPT App.

Workflow

  1. Load State

Read .chatgpt-app/state.json:

   {
     "appName": "My Task Manager",
     "phase": "Implementation",
     "tools": ["list-tasks", "create-task"],
     "widgets": ["task-list"],
     "auth": false,
     "database": true,
     "validated": false,
     "deployed": false
   }
  1. Display Progress

Show current status: - App name - Current phase - Completed items (tools, widgets) - Pending items (auth, validation, deployment)

  1. Offer Next Steps

Based on phase:

Concept Phase: - "Let's design the tools and widgets" - "Shall we start implementation?"

Implementation Phase: - "Add another tool?" - "Add a widget?" - "Set up authentication?" - "Set up database?"

Testing Phase: - "Generate golden prompts?" - "Run validation?" - "Run tests?"

Deployment Phase: - "Deploy to Render?" - "Configure ChatGPT connector?"

  1. Continue Work

Based on user's choice, invoke the appropriate workflow section.


Best Practices

  1. Always save state after each major step
  2. Validate before moving forward (especially before deployment)
  3. Use agents for code generation (chatgpt-mcp-generator, chatgpt-auth-generator, etc.)
  4. Test at every phase (preview widgets, test tools, run golden prompts)
  5. Keep it conversational - guide the user naturally through the workflow
  6. Explain trade-offs when offering choices (Auth0 vs Supabase, etc.)
  7. Show examples when introducing new concepts

State Management

The .chatgpt-app/state.json file tracks progress:

{
  "appName": "string",
  "description": "string",
  "phase": "Concept" | "Implementation" | "Testing" | "Deployment",
  "tools": ["tool-name"],
  "widgets": ["widget-id"],
  "auth": {
    "enabled": boolean,
    "provider": "auth0" | "supabase" | null
  },
  "database": {
    "enabled": boolean,
    "entities": ["entity-name"]
  },
  "validated": boolean,
  "tested": boolean,
  "deployed": boolean,
  "deploymentUrl": "string | null",
  "goldenPromptsGenerated": boolean,
  "lastUpdated": "ISO timestamp"
}

Command Reference

# Setup
./setup.sh

# Development
./START.sh --dev          # Dev mode with watch
./START.sh --preview      # Open preview in browser
./START.sh --stdio        # STDIO mode (testing)
./START.sh                # Production mode

# Testing
npm run validate          # Type checking
curl http://localhost:3000/health

# Deployment
git push origin main      # Trigger Render deploy

Getting Started

When the user invokes any chatgpt-app command:

  1. Check if .chatgpt-app/state.json exists
  2. If yes → use Resume App workflow
  3. If no → use Create New App workflow

Always guide users through the natural progression: Concept → Implementation → Testing → Deployment

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75%
按下载量换算17,553

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills