ai-app-integration
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
Guardrail for choosing and separating AI SDK and ChatGPT Apps SDK integration seams.
In this repository57 other files it gives its agents.
- anti-llm-frontend-designSkill
- aspnet-core-web-developmentSkill
- async-python-patternsSkill
- browser-game-foundationsSkill
- browser-local-qaSkill
- build-mcp-server-sdk-v2Skill
- canva-design-opsSkill
- check-completionSkill
- cli-tool-creatorSkill
- cloudflare-agents-mcpSkill
- cloudflare-durable-objectsSkill
- cloudflare-workers-platformSkill
- deployment-preview-workflowsSkill
- docx-document-artifactsSkill
- durable-workflow-orchestrationSkill
- dynamic-og-imagesSkill
- eval-auditSkill
- evaluate-ragSkill
- figma-design-to-code-rulesSkill
- fine-tuningSkill
- frontend-product-builderSkill
- game-asset-pipeline-expansionSkill
- game-ui-playtestSkill
- generate-synthetic-dataSkill
- github-pr-ci-opsSkill
- gmail-inbox-opsSkill
- golden-datasetSkill
- huggingface-llm-trainerSkill
- javascript-monorepo-buildsSkill
- linear-issue-managementSkill
- media-generation-transcriptionSkill
- millrace-rs-contract-paritySkill
- minecraft-mod-qa-automationSkill
- notion-workspace-flowsSkill
- openai-docsSkill
- optimize-agentic-cliSkill
- pdf-artifact-workflowSkill
- phaser-2d-game-developmentSkill
- postgres-query-performanceSkill
- product-ui-polish-reviewSkill
- pydantic-v2-patternsSkill
- python-repo-refactoring-hygieneSkill
- rag-corpus-hygieneSkill
- react-next-performance-reviewSkill
- rust-best-practicesSkill
- shadcn-ui-compositionSkill
- skill-evaluation-harnessSkill
- tauri-desktopSkill
- tauri-mcp-cliSkill
- tauri-ptySkill
- tile-pixel-art-transitionsSkill
- train-sentence-transformersSkill
- typer-cli-patternsSkill
- using-dbt-for-analytics-engineeringSkill
- validate-evaluatorSkill
- visual-asset-pipelineSkill
- watchdog-file-watcher-patternsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 16 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Write the ownership map next: model, tools, UI, persistence.
- Distinctive: line 43
Prefer AI SDK v6 for chat, streaming, structured output, tool calling, embeddings, and agent loops.
- Distinctive: line 44
Use ChatGPT Apps SDK + MCP only when the user-visible surface needs ChatGPT host integration or a widget.
- Very specific: line 45
Treat window.openai compatibility as secondary to the MCP Apps bridge and current docs.
- Distinctive: line 49
Do not let UI state leak into model tools.
- Distinctive: line 50
Do not hide persistence behind tool calls.
- Distinctive: line 51
Do not choose ChatGPT Apps when a plain AI SDK route is enough.
- Distinctive: line 52
Do not rely on v5-era AI SDK snippets or memory for v6 signatures.
- Distinctive: line 53
Do not teach wrapper helpers as the canonical surface when the docs expose a better current API.
- Distinctive: line 54
Do not turn this into a generic AI SDK cookbook or a ChatGPT Apps walkthrough.
- Distinctive: line 68
Keep the answer at planning level unless the task explicitly asks for implementation details.
- Distinctive: line 71
Read the request and classify the surface.
- Distinctive: line 73
Check the current official docs for every AI SDK or Apps SDK API involved.
- Distinctive: line 75
Prefer AI SDK only unless the host surface materially changes the product.
- Distinctive: line 76
Use ChatGPT Apps SDK + MCP when the product needs ChatGPT-hosted UI, widget metadata, or MCP tool wiring.
- Distinctive: line 77
Verify the selected seam against the docs and the next runtime or browser check.
- Distinctive: line 92
Start with the smallest useful decision: surface class, ownership map, and docs check.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI App Integration
Purpose
Help agents decide whether an AI-powered feature should be built with AI SDK only, ChatGPT Apps SDK + MCP, or a hybrid, then make model, tool, UI, and persistence ownership explicit before implementation. This is a guardrail, not an API manual.
Use When
- the task touches chat, streaming, structured output, tool calling, embeddings, or agent loops
- the task needs a ChatGPT host surface, widget, MCP tool, or app submission shape
- the current implementation mixes model logic, tool execution, UI state, and storage
- the answer depends on current AI SDK or Apps SDK API shapes
Do Not Use When
- the task is pure prompt writing, evaluation, or model comparison with no app integration
- the work is generic backend plumbing that does not touch an AI surface
- deployment, auth, or launch logistics are the only problem
- another more specific skill already owns the surface
Quick Start
- Classify the request first as
AI SDK only,ChatGPT Apps SDK + MCP, orhybrid. - Write the ownership map next: model, tools, UI, persistence.
- Fetch current official docs before writing code whenever AI SDK v6 or Apps SDK APIs are involved.
- Prefer AI SDK v6 for chat, streaming, structured output, tool calling, embeddings, and agent loops.
- Use ChatGPT Apps SDK + MCP only when the user-visible surface needs ChatGPT host integration or a widget.
- Treat
window.openaicompatibility as secondary to the MCP Apps bridge and current docs. - End with the next verifier and the evidence it should capture.
Operating Constraints
- Do not let UI state leak into model tools.
- Do not hide persistence behind tool calls.
- Do not choose ChatGPT Apps when a plain AI SDK route is enough.
- Do not rely on v5-era AI SDK snippets or memory for v6 signatures.
- Do not teach wrapper helpers as the canonical surface when the docs expose a better current API.
- Do not turn this into a generic AI SDK cookbook or a ChatGPT Apps walkthrough.
Inputs This Skill Expects
- the user goal and the target surface
- whether the feature needs a ChatGPT host surface, widget, or MCP tool exposure
- the current model, tool, UI, and persistence boundaries if any exist
- the official docs or package versions already in scope
- any existing route, server, or widget file that the request should fit into
Output Contract
- Name the classification first.
- State which layer owns generation, tool execution, UI rendering, and persistence.
- State which current docs must be checked before code changes.
- Recommend the smallest viable starting point and what not to build.
- Keep the answer at planning level unless the task explicitly asks for implementation details.
Procedure
- Read the request and classify the surface.
- Draw the boundary map before choosing code shape.
- Check the current official docs for every AI SDK or Apps SDK API involved.
- Choose the smallest architecturally coherent seam that satisfies the contract honestly.
- Prefer AI SDK only unless the host surface materially changes the product.
- Use ChatGPT Apps SDK + MCP when the product needs ChatGPT-hosted UI, widget metadata, or MCP tool wiring.
- Verify the selected seam against the docs and the next runtime or browser check.
Pitfalls And Gotchas
- Rejected trope: wire the model straight to the UI and let tools sort out the rest.
- Better alternative: separate model, tool, UI, and persistence ownership first, then connect them with explicit interfaces.
- Rejected trope: build a ChatGPT app because the feature is interactive.
- Better alternative: stay AI SDK only when the host surface does not add value.
- Rejected trope: follow old SDK snippets from memory.
- Better alternative: fetch current docs and match the current v6 or Apps SDK signatures.
- Rejected trope: hide storage inside tool handlers.
- Better alternative: keep persistence behind its own API or data layer.
- Rejected trope: turn the skill into a full API reference.
- Better alternative: keep it a guardrail that chooses seams and evidence.
Progressive Disclosure
Start with the smallest useful decision: surface class, ownership map, and docs check. Expand only enough to choose between AI SDK only, ChatGPT Apps SDK + MCP, or hybrid cleanly. Keep the skill short so it steers implementation instead of becoming a manual.
Verification Pattern
- Confirm the classification is explicit.
- Confirm model, tool, UI, and persistence boundaries are named separately.
- Confirm a docs-first check is named before code.
- Confirm the answer does not collapse into a generic prompt-engineering or app-architecture essay.
- Next verifier: the implementation reviewer or checker; capture the docs consulted, the selected architecture, and the boundary map.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

