pattyeng 1.0.3 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -55
- package/bin/pattyeng.js +20 -14
- package/lib/skills.js +170 -0
- package/lib/upgrade.js +46 -0
- package/package.json +5 -3
- package/skills/.system/.codex-system-skills.marker +1 -0
- package/skills/.system/imagegen/LICENSE.txt +201 -0
- package/skills/.system/imagegen/SKILL.md +356 -0
- package/skills/.system/imagegen/agents/openai.yaml +6 -0
- package/skills/.system/imagegen/assets/imagegen-small.svg +5 -0
- package/skills/.system/imagegen/assets/imagegen.png +0 -0
- package/skills/.system/imagegen/references/cli.md +242 -0
- package/skills/.system/imagegen/references/codex-network.md +33 -0
- package/skills/.system/imagegen/references/image-api.md +90 -0
- package/skills/.system/imagegen/references/prompting.md +118 -0
- package/skills/.system/imagegen/references/sample-prompts.md +433 -0
- package/skills/.system/imagegen/scripts/image_gen.py +995 -0
- package/skills/.system/imagegen/scripts/remove_chroma_key.py +440 -0
- package/skills/.system/openai-docs/LICENSE.txt +201 -0
- package/skills/.system/openai-docs/SKILL.md +167 -0
- package/skills/.system/openai-docs/agents/openai.yaml +14 -0
- package/skills/.system/openai-docs/assets/openai-small.svg +3 -0
- package/skills/.system/openai-docs/assets/openai.png +0 -0
- package/skills/.system/openai-docs/references/latest-model.md +37 -0
- package/skills/.system/openai-docs/references/prompting-guide.md +244 -0
- package/skills/.system/openai-docs/references/upgrade-guide.md +181 -0
- package/skills/.system/openai-docs/scripts/fetch-codex-manual.mjs +598 -0
- package/skills/.system/openai-docs/scripts/resolve-latest-model-info.js +147 -0
- package/skills/.system/plugin-creator/SKILL.md +243 -0
- package/skills/.system/plugin-creator/agents/openai.yaml +6 -0
- package/skills/.system/plugin-creator/assets/plugin-creator-small.svg +3 -0
- package/skills/.system/plugin-creator/assets/plugin-creator.png +0 -0
- package/skills/.system/plugin-creator/references/installing-and-updating.md +143 -0
- package/skills/.system/plugin-creator/references/plugin-json-spec.md +194 -0
- package/skills/.system/plugin-creator/scripts/create_basic_plugin.py +324 -0
- package/skills/.system/plugin-creator/scripts/read_marketplace_name.py +48 -0
- package/skills/.system/plugin-creator/scripts/update_plugin_cachebuster.py +78 -0
- package/skills/.system/plugin-creator/scripts/validate_plugin.py +586 -0
- package/skills/.system/skill-creator/SKILL.md +416 -0
- package/skills/.system/skill-creator/agents/openai.yaml +5 -0
- package/skills/.system/skill-creator/assets/skill-creator-small.svg +3 -0
- package/skills/.system/skill-creator/assets/skill-creator.png +0 -0
- package/skills/.system/skill-creator/license.txt +202 -0
- package/skills/.system/skill-creator/references/openai_yaml.md +49 -0
- package/skills/.system/skill-creator/scripts/generate_openai_yaml.py +226 -0
- package/skills/.system/skill-creator/scripts/init_skill.py +400 -0
- package/skills/.system/skill-creator/scripts/quick_validate.py +101 -0
- package/skills/.system/skill-installer/LICENSE.txt +202 -0
- package/skills/.system/skill-installer/SKILL.md +58 -0
- package/skills/.system/skill-installer/agents/openai.yaml +5 -0
- package/skills/.system/skill-installer/assets/skill-installer-small.svg +3 -0
- package/skills/.system/skill-installer/assets/skill-installer.png +0 -0
- package/skills/.system/skill-installer/scripts/github_utils.py +21 -0
- package/skills/.system/skill-installer/scripts/install-skill-from-github.py +308 -0
- package/skills/.system/skill-installer/scripts/list-skills.py +107 -0
- package/skills/cap/SKILL.md +77 -0
- package/skills/caveman/SKILL.md +49 -0
- package/skills/code-review/SKILL.md +46 -0
- package/skills/codebook/SKILL.md +184 -0
- package/skills/doc-review/SKILL.md +147 -0
- package/skills/feature-research/SKILL.md +34 -0
- package/skills/file-op/SKILL.md +116 -0
- package/skills/grill-me/SKILL.md +10 -0
- package/skills/grill-with-docs/ADR-FORMAT.md +47 -0
- package/skills/grill-with-docs/CONTEXT-FORMAT.md +60 -0
- package/skills/grill-with-docs/SKILL.md +88 -0
- package/skills/handoff/SKILL.md +17 -0
- package/skills/improve-codebase/SKILL.md +79 -0
- package/skills/linear/SKILL.md +107 -0
- package/skills/next-step/SKILL.md +61 -0
- package/skills/no-reinvent/SKILL.md +131 -0
- package/skills/no-wall/SKILL.md +146 -0
- package/skills/online/SKILL.md +54 -0
- package/skills/plan-review/SKILL.md +55 -0
- package/skills/professional/SKILL.md +111 -0
- package/skills/promise-tracking/SKILL.md +131 -0
- package/skills/prove/SKILL.md +135 -0
- package/skills/read-before-write/SKILL.md +123 -0
- package/skills/review/SKILL.md +78 -0
- package/skills/review-mp/SKILL.md +78 -0
- package/skills/scope-boundary/SKILL.md +121 -0
- package/skills/semble-search/SKILL.md +40 -0
- package/skills/sitrep/SKILL.md +126 -0
- package/skills/structure-code/SKILL.md +116 -0
- package/skills/surface-assumptions/SKILL.md +139 -0
- package/skills/teach/GLOSSARY-FORMAT.md +35 -0
- package/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
- package/skills/teach/MISSION-FORMAT.md +31 -0
- package/skills/teach/RESOURCES-FORMAT.md +32 -0
- package/skills/teach/SKILL.md +131 -0
- package/skills/team-protocol/SKILL.md +172 -0
- package/skills/tech-lead/SKILL.md +332 -0
- package/skills/to-issues/SKILL.md +83 -0
- package/skills/to-prd/SKILL.md +74 -0
- package/skills/vectorbt-expert/SKILL.md +253 -0
- package/skills/verify-done/SKILL.md +128 -0
- package/skills/work-log/SKILL.md +141 -0
- package/skills/work-log/template.html +496 -0
- package/skills/zoom-out/SKILL.md +7 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "openai-docs"
|
|
3
|
+
description: "Use when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; use OpenAI docs MCP tools for non-Codex docs questions, use the Codex manual helper first for broad Codex self-knowledge, and restrict fallback browsing to official OpenAI domains."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# OpenAI Docs
|
|
8
|
+
|
|
9
|
+
Provide authoritative, current guidance from OpenAI developer docs using the developers.openai.com MCP server. "Docs MCP" means `mcp__openaiDeveloperDocs__search_openai_docs` and `mcp__openaiDeveloperDocs__fetch_openai_doc`; for API reference, schema, parameter, or required-field questions, also use `mcp__openaiDeveloperDocs__get_openapi_spec` when available. Official-domain web search is fallback after those tools are unavailable or unhelpful. Broad Codex questions use the manual helper before Docs MCP. This skill also owns model selection, API model migration, and prompt-upgrade guidance.
|
|
10
|
+
|
|
11
|
+
## API Key Setup
|
|
12
|
+
|
|
13
|
+
For requests to build, run, configure, debug, or implement an API-backed app, script, CLI, generator, or tool, use `openai-platform-api-key` first when available. After that credential gate is resolved, return here for current docs as needed.
|
|
14
|
+
|
|
15
|
+
Use this skill directly for docs-only questions, citations, model/API guidance, conceptual explanations, and examples that do not require building or running an API-backed artifact.
|
|
16
|
+
|
|
17
|
+
## Workflow Configuration
|
|
18
|
+
|
|
19
|
+
### Source Priority
|
|
20
|
+
|
|
21
|
+
- For Codex self-knowledge, use the Codex source route below; it owns when to use the manual helper, Docs MCP, or bounded uncertainty.
|
|
22
|
+
- For non-Codex OpenAI docs questions, use `mcp__openaiDeveloperDocs__search_openai_docs` to find the most relevant doc pages.
|
|
23
|
+
- For non-Codex OpenAI docs questions, fetch the relevant page with `mcp__openaiDeveloperDocs__fetch_openai_doc` before answering. If search is noisy, run a narrower Docs MCP search; when any plausible official OpenAI docs URL is known or found, try fetching that URL through Docs MCP before relying on web-search content.
|
|
24
|
+
- For API reference, schema, parameter, or required-field questions, use `mcp__openaiDeveloperDocs__get_openapi_spec` when available to verify the API shape alongside the relevant guide or reference page.
|
|
25
|
+
- Use `mcp__openaiDeveloperDocs__list_openai_docs` only when you need to browse or discover non-Codex pages without a clear query.
|
|
26
|
+
- For model-selection, "latest model", or default-model questions, fetch `https://developers.openai.com/api/docs/guides/latest-model.md` first. If that is unavailable, load `references/latest-model.md`.
|
|
27
|
+
- For model upgrades or prompt upgrades, run `node scripts/resolve-latest-model-info.js` only when the target is latest/current/default or otherwise unspecified; otherwise preserve the explicitly requested target.
|
|
28
|
+
- Preserve explicit target requests: if the user names a target model like "migrate to GPT-5.4", keep that requested target even if `latest-model.md` names a newer model. Mention newer guidance only as optional.
|
|
29
|
+
- If current remote guidance is needed, fetch both the returned migration and prompting guide URLs directly. If direct fetch fails, use MCP/search fallback; if that also fails, use bundled fallback references and disclose the fallback.
|
|
30
|
+
|
|
31
|
+
## OpenAI product snapshots
|
|
32
|
+
|
|
33
|
+
1. Apps SDK: Build ChatGPT apps by providing a web component UI and an MCP server that exposes your app's tools to ChatGPT.
|
|
34
|
+
2. Responses API: A unified endpoint designed for stateful, multimodal, tool-using interactions in agentic workflows.
|
|
35
|
+
3. Chat Completions API: Generate a model response from a list of messages comprising a conversation.
|
|
36
|
+
4. Codex: OpenAI's coding agent for software development that can write, understand, review, and debug code.
|
|
37
|
+
5. gpt-oss: Open-weight OpenAI reasoning models (gpt-oss-120b and gpt-oss-20b) released under the Apache 2.0 license.
|
|
38
|
+
6. Realtime API: Build low-latency, multimodal experiences including natural speech-to-speech conversations.
|
|
39
|
+
7. Agents SDK: A toolkit for building agentic apps where a model can use tools and context, hand off to other agents, stream partial results, and keep a full trace.
|
|
40
|
+
|
|
41
|
+
## Codex self-knowledge
|
|
42
|
+
|
|
43
|
+
Use this path for questions about Codex itself: configuring, extending, operating, troubleshooting, local state, product surfaces, or where Codex behavior should live. A codebase merely mentioning a plugin, skill, hook, MCP server, browser, or automation is not enough. For generic software tasks, answer the software task directly; if asked whether Codex self-knowledge applies, answer that meta question briefly and continue the requested artifact.
|
|
44
|
+
|
|
45
|
+
### Source Route
|
|
46
|
+
|
|
47
|
+
The Codex manual is the first source for broad Codex synthesis. Treat the manual and Docs MCP as different lanes, not interchangeable official-doc sources. For published-user Codex product answers, the source route is complete: the manual, Docs MCP when this route calls for it, official OpenAI web fallback, and callable capabilities surfaced in the current session when the question is about that capability. Knowledge bases outside developers.openai.com are outside this route for public product answers.
|
|
48
|
+
|
|
49
|
+
For broad Codex behavior, setup, customization, skills, plugins, MCP, hooks, `AGENTS.md`, automations, surfaces, local state, or system-map questions:
|
|
50
|
+
|
|
51
|
+
1. Reuse a same-thread manual and outline path when it is still fresh.
|
|
52
|
+
2. Otherwise run the skill-local helper first in normal writable sessions. Skip it without trying only when the session is explicitly read-only, shell execution is unavailable, or visible policy shows no allowed temp cache.
|
|
53
|
+
3. By default, the helper chooses the first usable temp cache dir in this order: `$TMPDIR/openai-docs-cache`, `%TEMP%\openai-docs-cache`, `%TMP%\openai-docs-cache`, `/private/tmp/openai-docs-cache`, then `/tmp/openai-docs-cache`. Workspace-only write access is not enough for this temp cache.
|
|
54
|
+
4. Run the helper directly unless you need to override the cache dir. The helper falls back to `curl` when native `fetch` is unavailable or when proxy env vars are present, so no shell-specific proxy prefix is required. Resolve `<skill-dir>` to this skill's actual directory; in copied local eval workdirs this is usually `.codex/skills/openai-docs`:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
node <skill-dir>/scripts/fetch-codex-manual.mjs
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
If you need to override the cache dir, pass `--cache-dir <cache-dir>`. On Windows, the helper checks `%TEMP%` and `%TMP%` automatically; in PowerShell, `$env:TEMP\\openai-docs-cache` is a typical explicit override.
|
|
61
|
+
|
|
62
|
+
Treat helper availability as established by explicit read-only/no-shell policy or an actual command result. A guessed sandbox or guessed helper failure is not enough to switch to Docs MCP or web lookup; after an actual helper command failure, continue to the narrowest official next source below.
|
|
63
|
+
|
|
64
|
+
The helper verifies freshness, writes `codex-manual.md`, and emits `codex-manual.outline.md`. The outline maps source pages and headings to line ranges; use it to choose the relevant manual section, then read or search targeted manual sections for Codex product facts. Use the skill directory to locate and run the helper; after the helper succeeds, use the returned manual and outline paths as the search scope for Codex product facts and term coverage checks.
|
|
65
|
+
|
|
66
|
+
Reuse the same-thread manual and outline paths for follow-up Codex questions. Refresh first when the manual was fetched more than about a day ago, the path is unusable, the path came from another thread or uncertain provenance, or likely-current information is missing and staleness is plausible.
|
|
67
|
+
|
|
68
|
+
For questions about whether the manual is current enough to rely on now, run the helper when temp caching is allowed and base the answer on its returned status, manual path, and outline path.
|
|
69
|
+
|
|
70
|
+
If the manual resolves a Codex claim, answer from it and stop expanding sources for that claim; continue the user's broader task if the docs lookup was only one dependency. Manual source pages and known anchors are enough citation support for manual-covered material.
|
|
71
|
+
|
|
72
|
+
If the helper is skipped because the session is read-only, has no shell execution, or has no allowed temp cache, the next source is Docs MCP: call `mcp__openaiDeveloperDocs__search_openai_docs`, then `mcp__openaiDeveloperDocs__fetch_openai_doc` for a relevant hit before any web fallback.
|
|
73
|
+
|
|
74
|
+
If a user names a Codex term or mode that a fresh manual does not use, search the manual for obvious adjacent concepts, then answer that the exact term is not documented and use the closest documented terminology. If the prompt asks how that term maps to Codex behavior, resolve the mapping from adjacent manual sections. If the exact term remains material or likely current after that manual pass, use one narrow Docs MCP search/fetch before bounded uncertainty; otherwise, the source lookup for that terminology or mapping claim is complete.
|
|
75
|
+
|
|
76
|
+
Use the narrowest official next source only when the manual is unavailable, the helper fails, temp caching is not allowed, another material claim is missing or likely stale, or the user explicitly needs a page-specific citation. Prefer one specific Docs MCP search and, if it returns a clearly relevant page, one fetch; for unresolved Codex capability names, acronyms, scheduling terms, or exact error text, this Docs MCP step is the next source before web search. After the manual plus any permitted Docs MCP gap-fill, resolve remaining gaps as bounded uncertainty. Use official-domain web fallback only after that Docs MCP path is unavailable or unhelpful. If the claim is still not established, stop with bounded uncertainty. If official docs/manual conflict with a callable capability already surfaced in the current session, state the conflict and prefer verified current-session behavior for that environment.
|
|
77
|
+
|
|
78
|
+
For undocumented or private-looking model slugs, product mode labels, entitlement labels, account access paths, or rollout names, answer from current public docs and bounded uncertainty. Those labels are not a reason to leave the public source route.
|
|
79
|
+
|
|
80
|
+
For support-style diagnostics, prefer a layer-by-layer answer from the manual over provider-specific web lookups: installed/enabled plugin, bundled app or connector authorization, MCP setup, workspace/admin policy, restart or new-thread expectations, then support or feedback if still unresolved.
|
|
81
|
+
|
|
82
|
+
If the source route still does not establish a claim, return bounded uncertainty or route to support, an admin, or product feedback instead of widening the investigation.
|
|
83
|
+
|
|
84
|
+
For unresolved product terminology, answer from the manual plus the allowed official next source. If those sources do not establish the term, answer with bounded uncertainty from those sources.
|
|
85
|
+
|
|
86
|
+
### Surface Map
|
|
87
|
+
|
|
88
|
+
When Codex nouns or durable-instruction surfaces overlap, recommend the smallest surface that matches the scope:
|
|
89
|
+
|
|
90
|
+
- Prompt or thread context -> one-off task constraints.
|
|
91
|
+
- `AGENTS.md` -> durable repo conventions, commands, verification steps, and review expectations; closer nested files apply under their subtree.
|
|
92
|
+
- Project `.codex/config.toml` -> trusted-repo Codex settings such as sandbox, MCP, hooks, model, or reasoning defaults.
|
|
93
|
+
- Global config or global guidance -> personal defaults across repos.
|
|
94
|
+
- Skill -> reusable task workflow with references or scripts.
|
|
95
|
+
- Plugin -> installable bundle with skills plus commands, tools, MCP config, hooks, assets, apps, or marketplace metadata.
|
|
96
|
+
- MCP server or app connector -> live external data/actions or authorized private app/workspace data. Use connectors for private Google Docs, Calendar, Slack, GitHub, Notion, and similar data instead of web search or model memory.
|
|
97
|
+
- Automation -> scheduled checks, reminders, monitors, or follow-up work; use a thread heartbeat when continuity in an existing thread matters.
|
|
98
|
+
- Hook -> lifecycle enforcement around tool calls, commands, or file edits.
|
|
99
|
+
|
|
100
|
+
Split mixed-scope requests instead of forcing one answer. Example: "always do X, but only for this PR" defaults to prompt/thread context for the current run; use `AGENTS.md` or project config only if it should persist, hooks only for mechanical enforcement, and automations only for scheduled or follow-up work.
|
|
101
|
+
|
|
102
|
+
Use this quick product map when needed: CLI is terminal-first local repo work; IDE extension is editor-attached coding; Codex app is desktop planning, review, and interactive work; cloud/web is hosted parallel/offloaded work; Browser Use/in-app browser is Codex-controlled web testing; Chrome extension uses the user's Chrome profile; Computer Use controls desktop apps and OS UI. Keep `config.toml` defaults, `requirements.toml` constraints, and managed/admin policy separate.
|
|
103
|
+
|
|
104
|
+
### Boundaries And Output
|
|
105
|
+
|
|
106
|
+
- API key auth does not imply ChatGPT, cloud task, or connector access. For plugin/app/auth failures, check bundle availability, plugin installed/enabled state, connector/app authorization, MCP setup, restart/refresh expectations, workspace policy, and per-surface availability before answering.
|
|
107
|
+
- Sandbox or network denials need scoped escalation with a clear justification. Destructive commands, writes outside the workspace, or broad access changes require explicit approval.
|
|
108
|
+
- Memory can provide user preference or context, but explicit prompt instructions win and memory is not a source for current external facts.
|
|
109
|
+
- For affirmative surface-selection answers, use this shape: recommendation, why, what to avoid, and the manual/source evidence used.
|
|
110
|
+
- When page-specific Codex citations are actually needed, these anchors often fit: `concepts/customization#agents-guidance` for `AGENTS.md`, `concepts/customization#skills` for skills, `plugins/build#plugin-structure` for plugins, `concepts/customization#mcp` for MCP, `config-advanced#hooks` for hooks, `app/automations#thread-automations` for thread automations, and `config-reference#configtoml` for config.
|
|
111
|
+
|
|
112
|
+
## If MCP server is missing
|
|
113
|
+
|
|
114
|
+
If MCP tools fail or no OpenAI docs resources are available:
|
|
115
|
+
|
|
116
|
+
1. Run the install command yourself: `codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp`
|
|
117
|
+
2. If it fails due to permissions/sandboxing, immediately retry the same command with escalated permissions and include a 1-sentence justification for approval.
|
|
118
|
+
3. Ask the user to run the install command only if the escalated attempt fails.
|
|
119
|
+
4. Ask the user to restart Codex.
|
|
120
|
+
5. Re-run the doc search/fetch after restart.
|
|
121
|
+
|
|
122
|
+
## Workflow
|
|
123
|
+
|
|
124
|
+
1. Clarify whether the request is general docs lookup, model selection, a model-string upgrade, prompt-upgrade guidance, or broader API/provider migration.
|
|
125
|
+
2. For Codex self-knowledge requests, follow the Codex self-knowledge source procedure above.
|
|
126
|
+
3. For model-selection or upgrade requests, prefer current remote docs over bundled references when the user asks for latest/current/default guidance.
|
|
127
|
+
- Fetch `https://developers.openai.com/api/docs/guides/latest-model.md`.
|
|
128
|
+
- Find the latest model ID and explicit migration or prompt-guidance links.
|
|
129
|
+
- Prefer explicit links from the latest-model page over derived URLs.
|
|
130
|
+
- For explicit named-model requests, preserve the requested model target. Mention newer remote guidance only as optional.
|
|
131
|
+
- For dynamic latest/current/default upgrades, run `node scripts/resolve-latest-model-info.js`, then fetch both returned guide URLs directly when possible.
|
|
132
|
+
- If direct guide fetch fails, use the developer-docs MCP tools or official OpenAI-domain search to find the same guide content.
|
|
133
|
+
- If remote docs are unavailable, use bundled fallback references and say that fallback guidance was used.
|
|
134
|
+
4. For model upgrades, keep changes narrow: update active OpenAI API model defaults and directly related prompts only when safe.
|
|
135
|
+
5. Leave historical docs, examples, eval baselines, fixtures, provider comparisons, provider registries, pricing tables, alias defaults, low-cost fallback paths, and ambiguous older model usage unchanged unless the user explicitly asks to upgrade them.
|
|
136
|
+
6. Keep SDK, tooling, IDE, plugin, shell, auth, and provider-environment migrations out of a model-and-prompt upgrade unless the user explicitly asks for them.
|
|
137
|
+
7. If an upgrade needs API-surface changes, schema rewiring, tool-handler changes, or implementation work beyond a literal model-string replacement and prompt edits, report it as blocked or confirmation-needed.
|
|
138
|
+
8. For general docs lookup, search docs with a precise query, fetch the best page and exact section needed, and answer with concise citations.
|
|
139
|
+
|
|
140
|
+
## Reference map
|
|
141
|
+
|
|
142
|
+
Read only what you need:
|
|
143
|
+
|
|
144
|
+
- `https://developers.openai.com/api/docs/guides/latest-model.md` -> current model-selection and "best/latest/current model" questions.
|
|
145
|
+
- `scripts/fetch-codex-manual.mjs` -> current Codex manual fetch, verification, local temp cache, and outline generation.
|
|
146
|
+
- `https://developers.openai.com/codex/codex-manual.md` -> current Codex self-knowledge synthesis, including setup, customization, skills, plugins, MCP, hooks, `AGENTS.md`, automations, and surface behavior; normally access it through the helper path and targeted file reads when temp caching is available.
|
|
147
|
+
- `references/latest-model.md` -> bundled fallback for model-selection and "best/latest/current model" questions.
|
|
148
|
+
- `references/upgrade-guide.md` -> bundled fallback for model upgrade and upgrade-planning requests.
|
|
149
|
+
- `references/prompting-guide.md` -> bundled fallback for prompt rewrites and prompt-behavior upgrades.
|
|
150
|
+
|
|
151
|
+
## Quality rules
|
|
152
|
+
|
|
153
|
+
- Treat OpenAI docs as the source of truth; avoid speculation.
|
|
154
|
+
- For Codex self-knowledge, follow the source route above instead of relying on remembered behavior.
|
|
155
|
+
- Keep migration changes narrow and behavior-preserving.
|
|
156
|
+
- Prefer prompt-only upgrades when possible.
|
|
157
|
+
- Avoid inventing pricing, availability, parameters, API changes, or breaking changes.
|
|
158
|
+
- Keep quotes short and within policy limits; prefer paraphrase with citations.
|
|
159
|
+
- If multiple pages differ, call out the difference and cite both.
|
|
160
|
+
- If official docs and verified callable current-session behavior disagree, state the conflict before making broad claims or edits.
|
|
161
|
+
- If docs do not cover the user’s need, say so and offer next steps.
|
|
162
|
+
|
|
163
|
+
## Tooling notes
|
|
164
|
+
|
|
165
|
+
- Use MCP doc tools before web search for OpenAI-related markdown docs. The Codex manual flow is the exception: follow the Codex self-knowledge source procedure for broad Codex synthesis.
|
|
166
|
+
- If the MCP server is installed but returns no meaningful results, then use web search as a fallback.
|
|
167
|
+
- When falling back to web search, restrict to official OpenAI domains (developers.openai.com, platform.openai.com) and cite sources.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "OpenAI Docs"
|
|
3
|
+
short_description: "Reference OpenAI docs, Codex self-knowledge, and model migration guidance"
|
|
4
|
+
icon_small: "./assets/openai-small.svg"
|
|
5
|
+
icon_large: "./assets/openai.png"
|
|
6
|
+
default_prompt: "Use OpenAI Docs for official docs lookup, questions about Codex itself or Codex surfaces, model selection, model migration, and prompt-upgrade work."
|
|
7
|
+
|
|
8
|
+
dependencies:
|
|
9
|
+
tools:
|
|
10
|
+
- type: "mcp"
|
|
11
|
+
value: "openaiDeveloperDocs"
|
|
12
|
+
description: "OpenAI Developer Docs MCP server"
|
|
13
|
+
transport: "streamable_http"
|
|
14
|
+
url: "https://developers.openai.com/mcp"
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 14 14">
|
|
2
|
+
<path d="M10.931 3.34a.112.112 0 0 0-.069-.104l-.038-.007c-1.537.05-2.45.318-3.714 1.002v6.683c.48-.248.936-.44 1.414-.58.695-.203 1.417-.292 2.303-.305l.038-.008a.113.113 0 0 0 .066-.104V3.341ZM2.363 9.919c0 .064.051.11.105.111l.33.008c1.162.046 2.042.243 2.975.662-.403-.585-1.008-1.075-1.654-1.292a.991.991 0 0 1-.674-.941v-5.14a6.36 6.36 0 0 0-.59-.076l-.37-.02a.115.115 0 0 0-.122.111v6.577Zm9.455-.001a.998.998 0 0 1-.877.992l-.101.007c-.832.012-1.47.095-2.066.27-.599.174-1.176.448-1.883.863a.444.444 0 0 1-.449 0c-1.299-.763-2.229-1.07-3.689-1.125l-.299-.008a.997.997 0 0 1-.977-.998V3.342c0-.573.478-1.017 1.038-.999l.417.023c.188.015.35.037.513.062v-.754c0-.708.749-1.244 1.429-.903.984.492 1.836 1.449 2.15 2.505 1.216-.617 2.222-.884 3.771-.934l.105.003a.998.998 0 0 1 .918.996v6.576ZM4.332 8.466c0 .049.03.087.07.1l.24.091a4.319 4.319 0 0 1 1.581 1.176V3.721c-.164-.803-.799-1.617-1.584-2.07l-.162-.088c-.025-.012-.054-.013-.088.009a.12.12 0 0 0-.057.102v6.792Z"/>
|
|
3
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Latest model guide
|
|
2
|
+
|
|
3
|
+
This file is a curated helper. Every recommendation here must be verified against current OpenAI docs before it is repeated to a user.
|
|
4
|
+
|
|
5
|
+
## Current model map
|
|
6
|
+
|
|
7
|
+
| Model ID | Use for |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `gpt-5.5` | Latest/default text and reasoning model for most new apps, including coding and tool-heavy workflows |
|
|
10
|
+
| `gpt-5.5-pro` | Maximum reasoning or quality when latency and cost matter less |
|
|
11
|
+
| `gpt-5.4` | Previous default text and reasoning model; use for existing GPT-5.4 integrations |
|
|
12
|
+
| `gpt-5.4-mini` | Lower-cost testing and lighter production workflows |
|
|
13
|
+
| `gpt-5.4-nano` | High-throughput simple tasks and classification |
|
|
14
|
+
| `gpt-5.5` | Explicit no-reasoning text path via `reasoning.effort: none` |
|
|
15
|
+
| `gpt-4.1-mini` | Cheaper no-reasoning text |
|
|
16
|
+
| `gpt-4.1-nano` | Fastest and cheapest no-reasoning text |
|
|
17
|
+
| `gpt-5.3-codex` | Agentic coding, code editing, and tool-heavy coding workflows |
|
|
18
|
+
| `gpt-5.1-codex-mini` | Cheaper coding workflows |
|
|
19
|
+
| `gpt-image-2` | Best image generation and edit quality |
|
|
20
|
+
| `gpt-image-1.5` | Less expensive image generation and edit quality |
|
|
21
|
+
| `gpt-image-1-mini` | Cost-optimized image generation |
|
|
22
|
+
| `gpt-4o-mini-tts` | Text-to-speech |
|
|
23
|
+
| `gpt-4o-mini-transcribe` | Speech-to-text, fast and cost-efficient |
|
|
24
|
+
| `gpt-realtime-1.5` | Realtime voice and multimodal sessions |
|
|
25
|
+
| `gpt-realtime-mini` | Cheaper realtime sessions |
|
|
26
|
+
| `gpt-audio` | Chat Completions audio input and output |
|
|
27
|
+
| `gpt-audio-mini` | Cheaper Chat Completions audio workflows |
|
|
28
|
+
| `sora-2` | Faster iteration and draft video generation |
|
|
29
|
+
| `sora-2-pro` | Higher-quality production video |
|
|
30
|
+
| `omni-moderation-latest` | Text and image moderation |
|
|
31
|
+
| `text-embedding-3-large` | Higher-quality retrieval embeddings; default in this skill because no best-specific row exists |
|
|
32
|
+
| `text-embedding-3-small` | Lower-cost embeddings |
|
|
33
|
+
|
|
34
|
+
## Maintenance notes
|
|
35
|
+
|
|
36
|
+
- This file will drift unless it is periodically re-verified against current OpenAI docs.
|
|
37
|
+
- If this file conflicts with current docs, the docs win.
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
GPT-5.5 works best when prompts define the outcome and leave room for the model to choose an efficient solution path. Compared with earlier models, you can often use shorter, more outcome-oriented prompts: describe what good looks like, what constraints matter, what evidence is available, and what the final answer should contain.
|
|
2
|
+
|
|
3
|
+
Avoid carrying over every instruction from an older prompt stack. Legacy prompts often over-specify the process because earlier models needed more help staying on track. With GPT-5.5, that can add noise, narrow the model's search space, or lead to overly mechanical answers.
|
|
4
|
+
|
|
5
|
+
For more detail on GPT-5.5 behavior changes, start with the [Using GPT-5.5 guide](/api/docs/guides/latest-model). This guide focuses on prompt changes that follow from those behavior changes.
|
|
6
|
+
|
|
7
|
+
The patterns here are starting points. Adapt them to your product surface, tools, evals, and user experience goals.
|
|
8
|
+
|
|
9
|
+
## Personality and behavior
|
|
10
|
+
|
|
11
|
+
GPT-5.5's default style is efficient, direct, and task-oriented. This is useful for production systems: responses stay focused, behavior is easier to steer, and the model avoids unnecessary conversational padding.
|
|
12
|
+
|
|
13
|
+
For customer-facing assistants, support workflows, coaching experiences, and other conversational products, define both personality and collaboration style.
|
|
14
|
+
|
|
15
|
+
- **Personality** controls how the assistant sounds: tone, warmth, directness, formality, humor, empathy, and level of polish.
|
|
16
|
+
- **Collaboration style** controls how the assistant works: when it asks questions, when it makes assumptions, how proactive it should be, how much context it gives, when it checks work, and how it handles uncertainty or risk.
|
|
17
|
+
|
|
18
|
+
Keep both short. Personality instructions should shape the user experience. Collaboration instructions should shape task behavior. Neither should replace clear goals, success criteria, tool rules, or stopping conditions.
|
|
19
|
+
|
|
20
|
+
Example personality block for a steady task-focused assistant:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
# Personality
|
|
24
|
+
You are a capable collaborator: approachable, steady, and direct. Assume the user is competent and acting in good faith, and respond with patience, respect, and practical helpfulness.
|
|
25
|
+
|
|
26
|
+
Prefer making progress over stopping for clarification when the request is already clear enough to attempt. Use context and reasonable assumptions to move forward. Ask for clarification only when the missing information would materially change the answer or create meaningful risk, and keep any question narrow.
|
|
27
|
+
|
|
28
|
+
Stay concise without becoming curt. Give enough context for the user to understand and trust the answer, then stop. Use examples, comparisons, or simple analogies when they make the point easier to grasp. When correcting the user or disagreeing, be candid but constructive. When an error is pointed out, acknowledge it plainly and focus on fixing it.
|
|
29
|
+
|
|
30
|
+
Match the user's tone within professional bounds. Avoid emojis and profanity by default, unless the user explicitly asks for that style or has clearly established it as appropriate for the conversation.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Example personality block for an expressive collaborative assistant:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
# Personality
|
|
37
|
+
Adopt a vivid conversational presence: intelligent, curious, playful when appropriate, and attentive to the user's thinking. Ask good questions when the problem is blurry, then become decisive once there is enough context.
|
|
38
|
+
|
|
39
|
+
Be warm, collaborative, and polished. Conversation should feel easy and alive, but not chatty for its own sake. Offer a real point of view rather than merely mirroring the user, while staying responsive to their goals and constraints.
|
|
40
|
+
|
|
41
|
+
Be thoughtful and grounded when the task calls for synthesis or advice. State a clear recommendation when you have enough context, explain important tradeoffs, and name uncertainty without becoming evasive.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
For more expressive products, add warmth, curiosity, humor, or point of view explicitly, but keep the block short. Use personality to shape the experience, not to compensate for unclear goals or missing task instructions.
|
|
45
|
+
|
|
46
|
+
## Improve time to first visible token with a preamble
|
|
47
|
+
|
|
48
|
+
In streaming applications, users notice how long it takes before the first visible response appears. GPT-5.5 may spend time reasoning, planning, or preparing tool calls before emitting visible text.
|
|
49
|
+
|
|
50
|
+
For longer or tool-heavy tasks, prompt the model to start with a short preamble: a brief visible update that acknowledges the request and states the first step. This can improve perceived responsiveness without changing the underlying task.
|
|
51
|
+
|
|
52
|
+
Use this pattern when the task may take more than one step, require tool calls, or involve a long-running agent workflow.
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
Before any tool calls for a multi-step task, send a short user-visible update that acknowledges the request and states the first step. Keep it to one or two sentences.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
For coding agents that expose separate message phases, you can be more explicit:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
You must always start with an intermediary update before any content in the analysis channel if the task will require calling tools. The user update should acknowledge the request and explain your first step.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Outcome-first prompts and stopping conditions
|
|
65
|
+
|
|
66
|
+
GPT-5.5 is strongest when the prompt defines the target outcome, success criteria, constraints, and available context, then lets the model choose the path.
|
|
67
|
+
|
|
68
|
+
For many tasks, describe the destination rather than every step. This gives the model room to choose the right search, tool, or reasoning strategy for the task.
|
|
69
|
+
|
|
70
|
+
Prefer this:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
Resolve the customer's issue end to end.
|
|
74
|
+
|
|
75
|
+
Success means:
|
|
76
|
+
- the eligibility decision is made from the available policy and account data
|
|
77
|
+
- any allowed action is completed before responding
|
|
78
|
+
- the final answer includes completed_actions, customer_message, and blockers
|
|
79
|
+
- if evidence is missing, ask for the smallest missing field
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Avoid unnecessary absolute rules.** Older prompts often use strict instructions like `ALWAYS`, `NEVER`, `must`, and `only` to control model behavior. Use those words for true invariants, such as safety rules, required output fields, or actions that should never happen. For judgment calls, such as when to search, ask for clarification, use a tool, or keep iterating, prefer decision rules instead.
|
|
83
|
+
|
|
84
|
+
Avoid this style of instruction unless every step is truly required:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
First inspect A, then inspect B, then compare every field, then think through
|
|
88
|
+
all possible exceptions, then decide which tool to call, then call the tool,
|
|
89
|
+
then explain the entire process to the user.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Add explicit stopping conditions:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
Resolve the user query in the fewest useful tool loops, but do not let loop minimization outrank correctness, accessible fallback evidence, calculations, or required citation tags for factual claims.
|
|
96
|
+
|
|
97
|
+
After each result, ask: "Can I answer the user's core request now with useful evidence and citations for the factual claims?" If yes, answer.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Define missing-evidence behavior:
|
|
101
|
+
|
|
102
|
+
```text
|
|
103
|
+
Use the minimum evidence sufficient to answer correctly, cite it precisely, then stop.
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Formatting
|
|
107
|
+
|
|
108
|
+
GPT-5.5 is highly steerable on output format and structure. Use that control when it improves comprehension or product fit.
|
|
109
|
+
|
|
110
|
+
Set `text.verbosity`, describe the expected output shape, and reserve heavier structure for cases where it improves comprehension or your product UI needs a stable artifact. The API default for `text.verbosity` is `medium`; use `low` when you prefer shorter, more concise responses.
|
|
111
|
+
|
|
112
|
+
Plain conversational formatting:
|
|
113
|
+
|
|
114
|
+
```text
|
|
115
|
+
Let formatting serve comprehension. Use plain paragraphs as the default format for normal conversation, explanations, reports, documentation, and technical writeups. Keep the presentation clean and readable without making the structure feel heavier than the content.
|
|
116
|
+
|
|
117
|
+
Use headers, bold text, bullets, and numbered lists sparingly. Reach for them when the user requests them, when the answer needs clear comparison or ranking, or when the information would be harder to scan as prose. Otherwise, favor short paragraphs and natural transitions.
|
|
118
|
+
|
|
119
|
+
Respect formatting preferences from the user. If they ask for a terse answer, minimal formatting, no bullets, no headers, or a specific structure, follow that preference unless there is a strong reason not to.
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Add explicit audience and length guidance:
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
Write for a senior business audience. Keep the answer under 400 words. Use short paragraphs and only include bullets when they improve scannability. Prioritize the conclusion first, then the reasoning, then caveats.
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
For editing, rewriting, summaries, or customer-facing messages, tell the model what to preserve before asking it to improve style. This pattern is useful when you want polish without expansion.
|
|
129
|
+
|
|
130
|
+
```text
|
|
131
|
+
Preserve the requested artifact, length, structure, and genre first. Quietly improve clarity, flow, and correctness. Do not add new claims, extra sections, or a more promotional tone unless explicitly requested.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Grounding, citations, and retrieval budgets
|
|
135
|
+
|
|
136
|
+
For grounded answers, citation behavior should be part of the prompt. Define what needs support, what counts as enough evidence, and how the model should behave when evidence is missing. Absence of evidence shouldn't automatically become a factual "no." For more details and examples, see the [citation formatting guide](/api/docs/guides/citation-formatting).
|
|
137
|
+
|
|
138
|
+
### Add an explicit retrieval budget
|
|
139
|
+
|
|
140
|
+
Retrieval budgets are stopping rules for search. They tell the model when enough evidence is enough.
|
|
141
|
+
|
|
142
|
+
```text
|
|
143
|
+
For ordinary Q&A, start with one broad search using short, discriminative keywords. If the top results contain enough citable support for the core request, answer from those results instead of searching again.
|
|
144
|
+
|
|
145
|
+
Make another retrieval call only when:
|
|
146
|
+
- The top results do not answer the core question.
|
|
147
|
+
- A required fact, parameter, owner, date, ID, or source is missing.
|
|
148
|
+
- The user asked for exhaustive coverage, a comparison, or a comprehensive list.
|
|
149
|
+
- A specific document, URL, email, meeting, record, or code artifact must be read.
|
|
150
|
+
- The answer would otherwise contain an important unsupported factual claim.
|
|
151
|
+
|
|
152
|
+
Do not search again to improve phrasing, add examples, cite nonessential details, or support wording that can safely be made more generic.
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Creative drafting guardrails
|
|
156
|
+
|
|
157
|
+
For drafting tasks, tell the model which claims must come from sources and which parts may be creatively written. This is especially important for slides, launch copy, customer summaries, talk tracks, leadership blurbs, and narrative framing.
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
For creative or generative requests such as slides, leadership blurbs, outbound copy, summaries for sharing, talk tracks, or narrative framing, distinguish source-backed facts from creative wording.
|
|
161
|
+
|
|
162
|
+
- Use retrieved or provided facts for concrete product, customer, metric, roadmap, date, capability, and competitive claims, and cite those claims.
|
|
163
|
+
- Do not invent specific names, first-party data claims, metrics, roadmap status, customer outcomes, or product capabilities to make the draft sound stronger.
|
|
164
|
+
- If there is little or no citable support, write a useful generic draft with placeholders or clearly labeled assumptions rather than unsupported specifics.
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Frontend engineering and visual taste
|
|
168
|
+
|
|
169
|
+
For frontend work, refer to the [example instructions](/api/docs/guides/frontend-prompt) for practical ways to steer UI quality. They cover product and user context, design-system alignment, first-screen usability, familiar controls, expected states, responsive behavior, and common generated-UI defaults to avoid, such as generic heroes, nested cards, decorative gradients, visible instructional text, and broken layouts.
|
|
170
|
+
|
|
171
|
+
## Prompt the model to check its work
|
|
172
|
+
|
|
173
|
+
Give GPT-5.5 access to tools that let it check outputs when validation is possible.
|
|
174
|
+
|
|
175
|
+
For coding agents, ask for concrete validation commands:
|
|
176
|
+
|
|
177
|
+
```text
|
|
178
|
+
After making changes, run the most relevant validation available:
|
|
179
|
+
- targeted unit tests for changed behavior
|
|
180
|
+
- type checks or lint checks when applicable
|
|
181
|
+
- build checks for affected packages
|
|
182
|
+
- a minimal smoke test when full validation is too expensive
|
|
183
|
+
|
|
184
|
+
If validation cannot be run, explain why and describe the next best check.
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
For visual artifacts, ask for inspection after rendering:
|
|
188
|
+
|
|
189
|
+
```text
|
|
190
|
+
Render the artifact before finalizing. Inspect the rendered output for layout, clipping, spacing, missing content, and visual consistency. Revise until the rendered output matches the requirements.
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
For engineering and planning tasks, make implementation plans traceable:
|
|
194
|
+
|
|
195
|
+
```text
|
|
196
|
+
For implementation plans, include:
|
|
197
|
+
- requirements and where each is addressed
|
|
198
|
+
- named resources, files, APIs, or systems involved
|
|
199
|
+
- state transitions or data flow where relevant
|
|
200
|
+
- validation commands or checks
|
|
201
|
+
- failure behavior
|
|
202
|
+
- privacy and security considerations
|
|
203
|
+
- open questions that materially affect implementation
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Phase parameter
|
|
207
|
+
|
|
208
|
+
Starting with GPT-5.4, long-running or tool-heavy Responses workflows can use assistant-item `phase` values to distinguish intermediate updates from final answers. GPT-5.5 uses the same pattern.
|
|
209
|
+
|
|
210
|
+
If you use `previous_response_id`, the API preserves prior assistant state automatically. If your application manually replays assistant output items into the next request, preserve each original `phase` value and pass it back unchanged. This matters most when a response includes preambles, repeated tool calls, or a final answer after intermediate assistant updates.
|
|
211
|
+
|
|
212
|
+
```text
|
|
213
|
+
If manually replaying assistant items:
|
|
214
|
+
- Preserve assistant `phase` values exactly.
|
|
215
|
+
- Use `phase: "commentary"` for intermediate user-visible updates.
|
|
216
|
+
- Use `phase: "final_answer"` for the completed answer.
|
|
217
|
+
- Do not add `phase` to user messages.
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Suggested prompt structure
|
|
221
|
+
|
|
222
|
+
Use this structure as a starting point for complex prompts. Keep each section short. Add detail only where it changes behavior.
|
|
223
|
+
|
|
224
|
+
```text
|
|
225
|
+
Role: [1-2 sentences defining the model's function, context, and job]
|
|
226
|
+
|
|
227
|
+
# Personality
|
|
228
|
+
[tone, demeanor, and collaboration style]
|
|
229
|
+
|
|
230
|
+
# Goal
|
|
231
|
+
[user-visible outcome]
|
|
232
|
+
|
|
233
|
+
# Success criteria
|
|
234
|
+
[what must be true before the final answer]
|
|
235
|
+
|
|
236
|
+
# Constraints
|
|
237
|
+
[policy, safety, business, evidence, and side-effect limits]
|
|
238
|
+
|
|
239
|
+
# Output
|
|
240
|
+
[sections, length, and tone]
|
|
241
|
+
|
|
242
|
+
# Stop rules
|
|
243
|
+
[when to retry, fallback, abstain, ask, or stop]
|
|
244
|
+
```
|