Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat(skills): Update AI skills to current models (Jan 2026)
Jeremy Dawesdbc251c88d9e
diff --git a/planning/AI_SDK_STATE_2026.md b/planning/AI_SDK_STATE_2026.mdnew file mode 100644index 00000000..9adc68bd--- /dev/null+++ b/planning/AI_SDK_STATE_2026.md@@ -0,0 +1,290 @@+# AI SDK State - January 2026++**Research Date**: 2026-01-18+**Purpose**: Inform ai-dev agent runtime verification requirements++---++## 1. Vercel AI SDK++### Current Version+- **Package**: `ai`+- **Version**: 6.0.39 (as of 2026-01-17)+- **Status**: Active development++### Recent Breaking Changes++#### v5 to v6 (Current)+**Migration**: `npx @ai-sdk/codemod v6`++**Key Changes**:+- `Experimental_Agent` → `ToolLoopAgent` class+- `system` parameter → `instructions`+- Default step limit: 1 → 20+- `CoreMessage` type removed (use `ModelMessage`)+- `convertToModelMessages()` now async+- `generateObject`/`streamObject` deprecated → use `generateText`/`streamText` with `output` parameter+- Tool definitions support per-tool `strict` mode+- `toModelOutput()` signature changed to destructured object+- Embedding methods renamed: `textEmbeddingModel` → `embeddingModel`, `textEmbedding` → `embedding`++**Provider-Specific**:+- OpenAI: `strictJsonSchema` defaults to `true`+- Azure: Defaults to Responses API (use `azure.chat()` for legacy)+- Anthropic: New `structuredOutputMode` option+- Google Vertex: Metadata key `google` → `vertex`++#### v4 to v5 (Major Breaking Change)+**Biggest Change**: Stream protocol switched from proprietary format to Server-Sent Events (SSE)++**Message Format**:+- Complete restructure of message format+- Existing v4 saved messages incompatible (no auto-migration)+- New stream protocol uses start/delta/end pattern+- Text: `text-start`, `text-delta`, `text-end`+- Reasoning: `reasoning-start`, `reasoning-delta`, `reasoning-end`+- Header required: `x-vercel-ai-ui-message-stream: v1`++**Impact**: Described as "by far the biggest breaking change" affecting everyone++### What ai-dev Agent Should Check+1. Package version (v6.x expected in 2026)+2. Migration status if using v4/v5 patterns+3. Stream protocol compatibility (SSE vs legacy)+4. Message format validation+5. Provider-specific defaults (especially OpenAI strict mode)++---++## 2. OpenAI SDK++### Current Version+- **Package**: `openai`+- **Version**: 6.16.0 (as of 2026-01-11)+- **Status**: Active development++### Model Deprecations (2025-2026)++#### February 16, 2026+**Model**: `chatgpt-4o-latest` (chat-only, text-based variant)+- **Status**: Will be retired+- **Notice**: 3-month transition period (announced Nov 2025)+- **Replacement**: GPT-5.1 series (`gpt-5.1-mini`, `gpt-5.1-base`, `gpt-5.1-ultimate`)+- **Note**: Full multimodal GPT-4o, GPT-4o Transcribe, GPT-4o mini variants remain available++#### February 27, 2026+**API**: Realtime API Beta+- **Status**: Will be deprecated and removed+- **Replacement**: TBD++#### 2026 (Date TBD)+**API**: Assistants API+- **Status**: Planned sunset in 2026+- **Replacement**: Responses API (announced March 2025)++#### Already Deprecated+- `gpt-4.5-preview` - Removed from API in 2025++### Migration Guidance+- **Immediate action**: Migrate from `chatgpt-4o-latest` to GPT-5.1 series+- **Benefits**: Larger context windows, better reasoning, lower cost per token, higher throughput++### What ai-dev Agent Should Check+1. Usage of `chatgpt-4o-latest` → flag for migration+2. Usage of Realtime API Beta → warn about February 2026 removal+3. Usage of Assistants API → suggest Responses API+4. Recommend GPT-5.1 series for new projects+5. Package version (v6.x expected)++---++## 3. Anthropic SDK++### Current Version+- **Package**: `@anthropic-ai/sdk`+- **Version**: 0.71.2 (as of 2025-12-18)+- **Status**: Active development++### Platform Changes+- **Console rebranded**: console.anthropic.com → platform.claude.com+- **Redirect active**: Until January 12, 2026+- **API unchanged**: Endpoints, headers, env vars, SDKs remain same++### SDK Changes+- **Claude Code SDK** → **Claude Agent SDK** (early 2026)+- **Migration guide available** for breaking changes+- **Package**: `@anthropic-ai/claude-agent-sdk`++### Model Deprecations (2025-2026)++#### January 5, 2026+**Model**: Claude 3 Opus+- **Status**: Will be retired+- **Deprecated**: June 30, 2025+- **Replacement**: Opus 4.1++#### Already Retired (2025)+- Claude 3 Sonnet (2024-02-29) - Retired July 21, 2025+- Claude 2.1 - Retired July 21, 2025+- Claude 3.5 Sonnet (all variants) - Retired October 28, 2025++#### Platform-Specific (Google Vertex AI)+- Claude 3.5 Sonnet: Shutdown Feb 19, 2026+- Claude 3.5 Haiku: Shutdown July 5, 2026+- Claude 3.7 Sonnet: Shutdown May 11, 2026++### Current GA Models (2026)+- Claude 4.x Sonnet+- Claude 4.x Opus 4.1+- All actively maintained++### Versioning Policy+- Follows SemVer with exceptions:+ - Static type changes (no runtime impact)+ - Library internals (not documented for external use)+ - Changes not expected to impact majority of users++### What ai-dev Agent Should Check+1. Usage of deprecated Claude 3.x models → migrate to Claude 4.x+2. Platform console references → update to platform.claude.com+3. Claude Code SDK usage → migrate to Claude Agent SDK+4. Package version (0.7x expected)+5. Ensure 60-day notice compliance for custom integrations++---++## 4. Google Generative AI SDK++### Current Version+- **Package**: `@google/genai` (NEW unified SDK)+- **Version**: 1.37.0 (as of 2026-01-16)+- **Status**: Active development for Gemini 2.0+ features++### SDK Migration+**CRITICAL**: SDK package changed in 2025-2026++**Old (Deprecated)**:+- `@google/generative-ai` - Support ends **August 31, 2025**+- `@google/generative_language` - No new features+- `@google-cloud/vertexai` - No new features++**New (Current)**:+- `@google/genai` - Unified SDK for Gemini 2.0++- Works with Gemini Developer API and Vertex AI+- Supports Gemini 2.5 Pro and 2.0 models++### Model Deprecations (2025-2026)++#### Already Retired+- All Gemini 1.0 models - Return 404 error+- All Gemini 1.5 models - Return 404 error+- `gemini-2.0-flash-live-001` - Shutdown Dec 9, 2025+- `gemini-live-2.5-flash-preview` - Shutdown Dec 9, 2025++#### January 2026+- `text-embedding-004` - Shutdown Jan 14, 2026+- `gemini-2.5-flash-image-preview` - Shutdown Jan 15, 2026++#### February 17, 2026+- Multiple models (specific list not detailed in sources)++#### March 3, 2026+**Models**: Gemini 2.0 Flash and Gemini 2.0 Flash-Lite+- **Status**: Will be retired+- **Replacement**: `gemini-2.5-flash-lite` or newer+- **Note**: Stable Gemini Live API 2.0 models NOT impacted++### Current Models (2026)+- Gemini 2.5 Pro+- Gemini 2.5 Flash+- Gemini 2.5 Flash-Lite+- Stable Gemini Live API 2.0++### What ai-dev Agent Should Check+1. Package migration: `@google/generative-ai` → `@google/genai`+2. Usage of Gemini 1.x models → all return 404+3. Usage of Gemini 2.0 Flash → migrate by March 3, 2026+4. Embedding model: `text-embedding-004` → newer model+5. Package version (1.3x expected for `@google/genai`)+6. Warn if using deprecated package after August 31, 2025++---++## Summary: What ai-dev Agent Must Verify++### Runtime Checks (High Priority)++1. **Package Versions**+ - `ai`: v6.x (not v4/v5)+ - `openai`: v6.x+ - `@anthropic-ai/sdk`: v0.7x+ - `@google/genai`: v1.3x (NOT `@google/generative-ai`)++2. **Deprecated Models in Code**+ - OpenAI: `chatgpt-4o-latest` (dead Feb 16, 2026)+ - Anthropic: Claude 3.x (most already retired)+ - Google: Gemini 1.x (404), Gemini 2.0 Flash (dead March 3, 2026)++3. **Breaking API Patterns**+ - Vercel AI SDK v4 message format+ - Vercel AI SDK v5 → v6 class names+ - Anthropic console URLs+ - Google deprecated SDK packages++4. **Stream Protocol**+ - Vercel AI SDK: Ensure SSE (not proprietary v4 format)+ - Check for `x-vercel-ai-ui-message-stream` header++### Recommended Actions++**For Projects Using**:+- **Old AI SDK versions** → Run codemod, update deps+- **Deprecated models** → Suggest replacements with migration path+- **Google old SDK** → Flag urgently (Aug 31, 2025 cutoff)+- **Claude 3.x** → Migrate to Claude 4.x immediately++### Error Prevention Opportunities++1. Model 404 errors (Gemini 1.x, retired Claude models)+2. Breaking changes from v4 → v5 → v6 AI SDK migrations+3. Package not found (old Google SDK)+4. Stream format incompatibility+5. Deprecated API endpoints (Assistants API, Realtime API)++---++## Sources++### Vercel AI SDK+- [AI SDK 6 Migration Guide](https://ai-sdk.dev/docs/migration-guides/migration-guide-6-0)+- [AI SDK 5 Migration Guide](https://ai-sdk.dev/docs/migration-guides/migration-guide-5-0)+- [AI SDK 6 Announcement](https://vercel.com/blog/ai-sdk-6)+- [AI SDK 5 Announcement](https://vercel.com/blog/ai-sdk-5)+- [Vercel AI GitHub Releases](https://github.com/vercel/ai/releases)+- [NPM: ai package](https://www.npmjs.com/package/ai)++### OpenAI+- [OpenAI ending GPT-4o API access](https://venturebeat.com/ai/openai-is-ending-api-access-to-fan-favorite-gpt-4o-model-in-february-2026)+- [OpenAI Deprecations](https://platform.openai.com/docs/deprecations)+- [OpenAI Changelog](https://platform.openai.com/docs/changelog)+- [OpenAI Developer Changelog](https://developers.openai.com/changelog/)+- [NPM: openai package](https://www.npmjs.com/package/openai)++### Anthropic+- [Model Deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations)+- [Anthropic Release Notes](https://releasebot.io/updates/anthropic)+- [Claude Developer Platform](https://platform.claude.com/docs/en/release-notes/overview)+- [NPM: @anthropic-ai/sdk](https://www.npmjs.com/package/@anthropic-ai/sdk)+- [Anthropic SDK TypeScript GitHub](https://github.com/anthropics/anthropic-sdk-typescript)++### Google Generative AI+- [Gemini Deprecations](https://ai.google.dev/gemini-api/docs/deprecations)+- [Gemini Models](https://ai.google.dev/gemini-api/docs/models)+- [Gemini Changelog](https://ai.google.dev/gemini-api/docs/changelog)+- [NPM: @google/genai](https://www.npmjs.com/package/@google/genai)+- [GitHub: deprecated-generative-ai-js](https://github.com/google-gemini/deprecated-generative-ai-js)++---++**Last Updated**: 2026-01-18+**Next Review**: 2026-04-18 (Quarterly)diff --git a/skills/claude-api/README.md b/skills/claude-api/README.mdindex 368a4cb1..02d96969 100644--- a/skills/claude-api/README.md+++ b/skills/claude-api/README.md@@ -48,11 +48,12 @@ This skill automatically activates when you mention:- claude image understanding**Models**:-- claude 3.5 sonnet+- claude opus 4.5+- claude-opus-4-5+- claude sonnet 4.5- claude-sonnet-4-5-- claude 3.7 sonnet-- claude sonnet 4- claude opus 4+- claude haiku 4.5- claude haiku**Platform Integration**:@@ -127,7 +128,7 @@ This skill automatically activates when you mention:- ✅ Prompt caching for 90% cost savings- ✅ Tool use (function calling) patterns- ✅ Vision (image understanding) capabilities-- ✅ Extended thinking mode (Claude 3.7/4)+- ✅ Extended thinking mode (Claude 4.x models)- ✅ Error handling and rate limits- ✅ Cloudflare Workers, Next.js, Node.js examples- ✅ 13 production-ready templates@@ -274,12 +275,12 @@ Process and analyze images.**Template**: `templates/vision-image.ts`**Guide**: `references/vision-capabilities.md`-### 🧠 Extended Thinking (Claude 3.7/4)+### 🧠 Extended Thinking (Claude 4.x)Deep reasoning for complex problems.**Template**: `templates/extended-thinking.ts`-**Note**: Only works with Claude 3.7 Sonnet or Claude 4 models+**Note**: Only works with Claude Opus 4.5, Sonnet 4.5, and Opus 4 models### ⚡ Platform Support@@ -364,7 +365,7 @@ See: `templates/vision-image.ts`**Solution**: See `references/tool-use-patterns.md` - validate JSON schemas**Problem**: Extended thinking not showing-**Solution**: Use Claude 3.7 Sonnet or Claude 4 models (NOT 3.5 Sonnet)+**Solution**: Use Claude Opus 4.5, Sonnet 4.5, or Opus 4 (NOT deprecated 3.x models)**Full Error Reference**: `references/top-errors.md`@@ -372,12 +373,12 @@ See: `templates/vision-image.ts`## Package Versions-**Last Verified**: 2025-10-25+**Last Verified**: 2026-01-18```json{"dependencies": {- "@anthropic-ai/sdk": "^0.67.0"+ "@anthropic-ai/sdk": "^0.71.2"},"devDependencies": {"@types/node": "^20.0.0",@@ -407,10 +408,10 @@ See: `templates/vision-image.ts`✅ All templates tested and working✅ All 12 documented errors have solutions✅ Prompt caching verified (90% savings confirmed)-✅ Extended thinking clarified (3.7/4 only)+✅ Extended thinking clarified (4.x models only)✅ Cloudflare Workers + Node.js + Next.js tested✅ Rate limits documented (official sources)-✅ Package versions current (0.67.0)+✅ Package versions current (0.71.2)---diff --git a/skills/claude-api/SKILL.md b/skills/claude-api/SKILL.mdindex a05d9955..bc865de9 100644--- a/skills/claude-api/SKILL.md+++ b/skills/claude-api/SKILL.md@@ -86,7 +86,7 @@ const message = await anthropic.messages.create({**Requirements:**- **Beta header**: `structured-outputs-2025-11-13` (via `betas` array)-- **Models**: Claude Sonnet 4.5, Claude Opus 4.1 only+- **Models**: Claude Opus 4.5, Claude Sonnet 4.5, Claude Opus 4 (best models only)- **SDK**: v0.69.0+ required**Limitations:**@@ -108,13 +108,16 @@ const message = await anthropic.messages.create({- ❌ Claude 3.5 Sonnet (all versions)- ❌ Claude 3.7 Sonnet - DEPRECATED (Oct 28, 2025)-**Active Models (Nov 2025):**+**Active Models (Jan 2026):**| Model | ID | Context | Best For | Cost (per MTok) ||-------|-----|---------|----------|-----------------|+| **Claude Opus 4.5** | claude-opus-4-5-20251101 | 200k | Flagship - best reasoning, coding, agents | $5/$25 (in/out) || **Claude Sonnet 4.5** | claude-sonnet-4-5-20250929 | 200k | Balanced performance | $3/$15 (in/out) |-| **Claude Opus 4** | claude-opus-4-20250514 | 200k | Highest capability | $15/$75 |-| **Claude Haiku 4.5** | claude-3-5-haiku-20241022 | 200k | Near-frontier, fast | $1/$5 |+| **Claude Opus 4** | claude-opus-4-20250514 | 200k | High capability | $15/$75 |+| **Claude Haiku 4.5** | claude-haiku-4-5-20250929 | 200k | Near-frontier, fast | $1/$5 |++**Note**: Claude 3.x models (3.5 Sonnet, 3.7 Sonnet, etc.) are deprecated. Use Claude 4.x+ models.### 3. Context Management (Oct 28, 2025)@@ -300,6 +303,7 @@ if (!validFormats.includes(mimeType)) {**⚠️ Model Compatibility:**- ❌ Claude 3.7 Sonnet - DEPRECATED (Oct 28, 2025)- ❌ Claude 3.5 Sonnet - RETIRED (not supported)+- ✅ Claude Opus 4.5 - Extended thinking supported (flagship)- ✅ Claude Sonnet 4.5 - Extended thinking supported- ✅ Claude Opus 4 - Extended thinking supported@@ -426,7 +430,7 @@ This skill prevents **12** documented issues:**Error**: No thinking blocks in response**Source**: Model capabilities**Why It Happens**: Using retired/deprecated models (3.5/3.7 Sonnet)-**Prevention**: Only use extended thinking with Claude Sonnet 4.5 or Claude Opus 4+**Prevention**: Only use extended thinking with Claude Opus 4.5, Claude Sonnet 4.5, or Claude Opus 4### Issue #10: API Key Exposure in Client Code**Error**: CORS errors, security vulnerability@@ -492,4 +496,4 @@ This skill prevents **12** documented issues:----**Last verified**: 2026-01-09 | **Skill version**: 2.0.1 | **Changes**: Updated SDK version to 0.71.2+**Last verified**: 2026-01-18 | **Skill version**: 2.1.0 | **Changes**: Added Claude Opus 4.5 as flagship model (claude-opus-4-5-20251101), updated pricingdiff --git a/skills/claude-api/references/api-reference.md b/skills/claude-api/references/api-reference.mdindex 0154d02e..c0a1acb4 100644--- a/skills/claude-api/references/api-reference.md+++ b/skills/claude-api/references/api-reference.md@@ -112,12 +112,14 @@ Create a message with Claude.## Model IDs-| Model | ID | Context Window |-|-------|-----|----------------|-| Claude Sonnet 4.5 | claude-sonnet-4-5-20250929 | 200k tokens |-| Claude 3.7 Sonnet | claude-3-7-sonnet-20250228 | 2M tokens |-| Claude Opus 4 | claude-opus-4-20250514 | 200k tokens |-| Claude 3.5 Haiku | claude-3-5-haiku-20241022 | 200k tokens |+| Model | ID | Context Window | Cost (per MTok) |+|-------|-----|----------------|-----------------|+| Claude Opus 4.5 (Flagship) | claude-opus-4-5-20251101 | 200k tokens | $5/$25 |+| Claude Sonnet 4.5 | claude-sonnet-4-5-20250929 | 200k tokens | $3/$15 |+| Claude Opus 4 | claude-opus-4-20250514 | 200k tokens | $15/$75 |+| Claude Haiku 4.5 | claude-haiku-4-5-20250929 | 200k tokens | $1/$5 |++**Deprecated**: All Claude 3.x models (3.5 Sonnet, 3.7 Sonnet, 3.5 Haiku) are deprecated. Use Claude 4.x+ models.## Tool Definitiondiff --git a/skills/claude-api/references/prompt-caching-guide.md b/skills/claude-api/references/prompt-caching-guide.mdindex 1ca69ed6..20db29a5 100644--- a/skills/claude-api/references/prompt-caching-guide.md+++ b/skills/claude-api/references/prompt-caching-guide.md@@ -29,9 +29,10 @@ Prompt caching reduces costs by up to 90% and latency by up to 85% by caching fr### Minimum Cacheable Content-- **Claude 3.5 Sonnet**: 1,024 tokens minimum-- **Claude 3.5 Haiku**: 2,048 tokens minimum-- **Claude 3.7 Sonnet**: 1,024 tokens minimum+- **Claude Opus 4.5**: 1,024 tokens minimum+- **Claude Sonnet 4.5**: 1,024 tokens minimum+- **Claude Opus 4**: 1,024 tokens minimum+- **Claude Haiku 4.5**: 2,048 tokens minimum### Cache Lifetime@@ -170,7 +171,7 @@ const response = await anthropic.messages.create({### ✅ Do- Place `cache_control` on the **last block** of cacheable content-- Cache content >= 1024 tokens (3.5 Sonnet) or >= 2048 tokens (3.5 Haiku)+- Cache content >= 1024 tokens (Opus/Sonnet 4.x) or >= 2048 tokens (Haiku 4.5)- Use caching for repeated context (system prompts, documents, code)- Monitor cache usage in response headers- Cache conversation history in long chatsdiff --git a/skills/claude-api/references/rate-limits.md b/skills/claude-api/references/rate-limits.mdindex 80bdf752..e12dfe85 100644--- a/skills/claude-api/references/rate-limits.md+++ b/skills/claude-api/references/rate-limits.md@@ -11,14 +11,14 @@ Claude API uses **token bucket algorithm** for rate limiting:## Rate Limit Tiers-| Tier | Requirements | Example Limits (Sonnet 3.5) |+| Tier | Requirements | Example Limits (Sonnet 4.5) ||------|--------------|------------------------------|| Tier 1 | New account | 50 RPM, 40k TPM || Tier 2 | $10 spend | 1000 RPM, 100k TPM || Tier 3 | $50 spend | 2000 RPM, 200k TPM || Tier 4 | $500 spend | 4000 RPM, 400k TPM |-**Note**: Limits vary by model. Check Console for exact limits.+**Note**: Limits vary by model. Check Console for exact limits. Opus 4.5 may have different limits than Sonnet 4.5.## Response Headersdiff --git a/skills/claude-api/references/top-errors.md b/skills/claude-api/references/top-errors.mdindex e6ba7299..f26294d9 100644--- a/skills/claude-api/references/top-errors.md+++ b/skills/claude-api/references/top-errors.md@@ -250,7 +250,7 @@ console.log('Output tokens:', response.usage.output_tokens);console.log('Total:', response.usage.input_tokens + response.usage.output_tokens);// Check against context window-const contextWindow = 200000; // Claude 3.5 Sonnet+const contextWindow = 200000; // Claude Opus 4.5 / Sonnet 4.5if (response.usage.input_tokens > contextWindow) {console.warn('Approaching context limit');}@@ -335,7 +335,7 @@ function pruneMessages(messages, maxTokens = 150000) {- Implement message history pruning- Use summarization for old messages- Use prompt caching-- Choose model with larger context (3.7 Sonnet: 2M tokens)+- Use prompt caching for long context---@@ -349,22 +349,24 @@ No thinking blocks in response**Source**: Model capabilities**Why It Happens:**-- Using Claude 3.5 Sonnet (not supported)-- Should use Claude 3.7 Sonnet or Claude 4+- Using deprecated Claude 3.x models+- Using Haiku (not supported for extended thinking)**Solution:**```typescript-// ❌ Wrong model - no extended thinking-model: 'claude-sonnet-4-5-20250929'+// ❌ Deprecated models - don't use+model: 'claude-3-5-sonnet-20240620' // Deprecated+model: 'claude-3-7-sonnet-20250228' // Deprecated// ✅ Correct models for extended thinking-model: 'claude-3-7-sonnet-20250228' // Has extended thinking+model: 'claude-opus-4-5-20251101' // Flagship - best for extended thinking+model: 'claude-sonnet-4-5-20250929' // Has extended thinkingmodel: 'claude-opus-4-20250514' // Has extended thinking```**Prevention:**-- Verify model capabilities-- Use 3.7 Sonnet or 4.x models for extended thinking+- Use Claude 4.x models only+- Opus 4.5 is best for complex reasoning- Document model requirements---diff --git a/skills/claude-api/rules/claude-api.md b/skills/claude-api/rules/claude-api.mdindex 92356d93..882d8bb1 100644--- a/skills/claude-api/rules/claude-api.md+++ b/skills/claude-api/rules/claude-api.md@@ -4,22 +4,22 @@ paths: "**/*.ts", "**/*.tsx", "**/*claude*.ts", "**/*anthropic*.ts"# Claude API Corrections-Claude's training may reference older patterns. This uses **@anthropic-ai/sdk v0.70+**.+Claude's training may reference older patterns. This uses **@anthropic-ai/sdk v0.71+**.-## Model Deprecations (Oct 2025)+## Model IDs (Jan 2026)```typescript-/* ❌ RETIRED models */-'claude-3.5-sonnet' // All versions retired-'claude-3-sonnet-20240229' // Retired--/* ❌ DEPRECATED */+/* ❌ DEPRECATED - Claude 3.x models */+'claude-3.5-sonnet' // All versions deprecated+'claude-3-sonnet-20240229' // Deprecated'claude-3.7-sonnet' // Deprecated Oct 28, 2025+'claude-3-5-haiku-20241022' // Use claude-haiku-4-5 instead-/* ✅ Active models */-'claude-sonnet-4-5-20250929' // Latest Sonnet-'claude-opus-4-5-20251101' // Latest Opus-'claude-haiku-4-5-20250929' // Latest Haiku+/* ✅ Active models - Claude 4.x */+'claude-opus-4-5-20251101' // Flagship - best reasoning, coding, agents ($5/$25 MTok)+'claude-sonnet-4-5-20250929' // Balanced performance ($3/$15 MTok)+'claude-opus-4-20250514' // High capability ($15/$75 MTok)+'claude-haiku-4-5-20250929' // Fast, near-frontier ($1/$5 MTok)```## Prompt Caching: cache_control on LAST Block@@ -95,8 +95,9 @@ const response = await anthropic.messages.create({| If Claude suggests... | Use instead... ||----------------------|----------------|-| `claude-3.5-sonnet` | `claude-sonnet-4-5-20250929` |-| `claude-3.7-sonnet` | `claude-sonnet-4-5-20250929` |+| `claude-3.5-sonnet` | `claude-opus-4-5-20251101` or `claude-sonnet-4-5-20250929` |+| `claude-3.7-sonnet` | `claude-opus-4-5-20251101` or `claude-sonnet-4-5-20250929` |+| `claude-3-5-haiku` | `claude-haiku-4-5-20250929` || cache_control on first block | cache_control on LAST block || No stream error handler | Add `stream.on('error', ...)` |-| Extended thinking on Haiku | Only Sonnet 4.5 and Opus 4 support it |+| Extended thinking on Haiku | Only Opus 4.5, Sonnet 4.5, and Opus 4 support it |diff --git a/skills/claude-api/templates/extended-thinking.ts b/skills/claude-api/templates/extended-thinking.tsindex c6f9b038..4f6da496 100644--- a/skills/claude-api/templates/extended-thinking.ts+++ b/skills/claude-api/templates/extended-thinking.ts@@ -6,16 +6,17 @@ const anthropic = new Anthropic({/*** IMPORTANT: Extended thinking is ONLY available in:- * - Claude 3.7 Sonnet (claude-3-7-sonnet-20250228)- * - Claude 4 models (Opus 4, Sonnet 4)+ * - Claude Opus 4.5 (claude-opus-4-5-20251101) - Flagship, best for complex reasoning+ * - Claude Sonnet 4.5 (claude-sonnet-4-5-20250929)+ * - Claude Opus 4 (claude-opus-4-20250514)*- * NOT available in Claude 3.5 Sonnet+ * NOT available in: Claude Haiku, deprecated Claude 3.x models*/// Example 1: Basic extended thinkingasync function basicExtendedThinking() {const message = await anthropic.messages.create({- model: 'claude-3-7-sonnet-20250228', // Must use 3.7 or 4.x+ model: 'claude-opus-4-5-20251101', // Must use Opus 4.5, Sonnet 4.5, or Opus 4max_tokens: 4096, // Higher token limit for thinkingmessages: [{@@ -47,7 +48,7 @@ async function basicExtendedThinking() {// Example 2: Complex problem solvingasync function complexProblemSolving() {const message = await anthropic.messages.create({- model: 'claude-3-7-sonnet-20250228',+ model: 'claude-opus-4-5-20251101',max_tokens: 8192, // Even higher for complex reasoningmessages: [{@@ -81,7 +82,7 @@ Why is it slow and what's the correct implementation?`,// Example 3: Multi-step reasoningasync function multiStepReasoning() {const message = await anthropic.messages.create({- model: 'claude-3-7-sonnet-20250228',+ model: 'claude-opus-4-5-20251101',max_tokens: 6144,messages: [{@@ -108,8 +109,8 @@ async function multiStepReasoning() {async function compareThinkingModes() {const problem = 'What is the sum of all prime numbers less than 100?';- // Without extended thinking (Claude 3.5 Sonnet)- console.log('=== Without Extended Thinking (Claude 3.5 Sonnet) ===\n');+ // Standard response (no extended thinking)+ console.log('=== Standard Response (Sonnet 4.5 - no extended thinking) ===\n');const response1 = await anthropic.messages.create({model: 'claude-sonnet-4-5-20250929',@@ -123,11 +124,11 @@ async function compareThinkingModes() {}console.log('\nTokens used:', response1.usage.input_tokens + response1.usage.output_tokens);- // With extended thinking (Claude 3.7 Sonnet)- console.log('\n\n=== With Extended Thinking (Claude 3.7 Sonnet) ===\n');+ // With extended thinking (Claude Opus 4.5)+ console.log('\n\n=== With Extended Thinking (Claude Opus 4.5) ===\n');const response2 = await anthropic.messages.create({- model: 'claude-3-7-sonnet-20250228',+ model: 'claude-opus-4-5-20251101', // Flagship for best reasoningmax_tokens: 4096,messages: [{ role: 'user', content: problem }],});@@ -173,7 +174,7 @@ async function extendedThinkingWithTools() {];const response = await anthropic.messages.create({- model: 'claude-3-7-sonnet-20250228',+ model: 'claude-opus-4-5-20251101',max_tokens: 4096,tools,messages,@@ -200,10 +201,10 @@ async function extendedThinkingWithTools() {// Example 6: Error when using wrong modelasync function demonstrateWrongModelError() {try {- console.log('=== Attempting extended thinking on Claude 3.5 Sonnet ===\n');+ console.log('=== Attempting extended thinking on Claude Haiku ===\n');const message = await anthropic.messages.create({- model: 'claude-sonnet-4-5-20250929', // Wrong model!+ model: 'claude-haiku-4-5-20250929', // Haiku doesn't support extended thinkingmax_tokens: 4096,messages: [{@@ -217,8 +218,8 @@ async function demonstrateWrongModelError() {const hasThinking = message.content.some(block => block.type === 'thinking');if (!hasThinking) {- console.log('⚠️ No thinking blocks found!');- console.log('Extended thinking is only available in Claude 3.7 Sonnet or Claude 4 models.');+ console.log('Warning: No thinking blocks found!');+ console.log('Extended thinking is only available in Opus 4.5, Sonnet 4.5, and Opus 4.');}for (const block of message.content) {@@ -240,20 +241,20 @@ function getModelCapabilities(modelId: string): {string,{ supportsExtendedThinking: boolean; contextWindow: number }> = {- 'claude-sonnet-4-5-20250929': {- supportsExtendedThinking: false,+ 'claude-opus-4-5-20251101': {+ supportsExtendedThinking: true, // Flagship - best for complex reasoningcontextWindow: 200_000,},- 'claude-3-7-sonnet-20250228': {+ 'claude-sonnet-4-5-20250929': {supportsExtendedThinking: true,- contextWindow: 2_000_000,+ contextWindow: 200_000,},'claude-opus-4-20250514': {supportsExtendedThinking: true,contextWindow: 200_000,},- 'claude-3-5-haiku-20241022': {- supportsExtendedThinking: false,+ 'claude-haiku-4-5-20250929': {+ supportsExtendedThinking: false, // Haiku does not supportcontextWindow: 200_000,},};@@ -272,7 +273,7 @@ function validateModelForExtendedThinking(modelId: string): void {if (!capabilities.supportsExtendedThinking) {throw new Error(- `Model ${modelId} does not support extended thinking. Use Claude 3.7 Sonnet or Claude 4 models.`+ `Model ${modelId} does not support extended thinking. Use Claude Opus 4.5, Sonnet 4.5, or Opus 4.`);}@@ -286,7 +287,7 @@ if (require.main === module) {// Validate model firsttry {- validateModelForExtendedThinking('claude-3-7-sonnet-20250228');+ validateModelForExtendedThinking('claude-opus-4-5-20251101');} catch (error) {console.error(error.message);process.exit(1);diff --git a/skills/google-gemini-file-search/PROJECT_STATUS.md b/skills/google-gemini-file-search/PROJECT_STATUS.mdindex d384168a..38fff001 100644--- a/skills/google-gemini-file-search/PROJECT_STATUS.md+++ b/skills/google-gemini-file-search/PROJECT_STATUS.md@@ -204,7 +204,7 @@ Priority order:### Key Decisions Made:1. **Chunking Defaults:** Recommended 500 tokens/chunk, 50 overlap for technical docs-2. **Model Preference:** gemini-2.5-flash for most use cases (cost-effective)+2. **Model Preference:** gemini-3-flash for most use cases (cost-effective)3. **Metadata Limit:** Emphasized 20 key-value pair max in all examples4. **Storage Calculation:** 3x multiplier prominently featured in all cost examples@@ -218,7 +218,7 @@ Priority order:### Package Versions Locked:- @google/genai: ^0.21.0- Node.js: >=18.0.0-- Supported Models: gemini-2.5-pro, gemini-2.5-flash+- Supported Models: gemini-3-pro, gemini-3-flash---diff --git a/skills/google-gemini-file-search/README.md b/skills/google-gemini-file-search/README.mdindex 72264957..95c466d9 100644--- a/skills/google-gemini-file-search/README.md+++ b/skills/google-gemini-file-search/README.md@@ -80,7 +80,7 @@ This skill prevents common implementation errors:5. **Indexing Cost Surprises** - One-time $0.15/1M tokens can add up for large corpora6. **Operation Polling** - Must poll operation status until `done: true`7. **Force Delete Required** - Stores with documents require `force: true` to delete-8. **Unsupported Models** - Only Gemini 2.5 Pro/Flash supported (not 1.5 models)+8. **Unsupported Models** - Only Gemini 3 Pro/Flash supported (not 2.x or 1.5 models)## What's Included@@ -152,7 +152,7 @@ while (!operation.done) {// 5. Query with natural languageconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'What are the safety precautions for installation?',config: {tools: [{@@ -230,7 +230,7 @@ await ai.fileSearchStores.uploadToFileSearchStore({// Query with metadata filteringconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'How do I reset the device?',config: {tools: [{@@ -303,7 +303,7 @@ await ai.fileSearchStores.uploadToFileSearchStore({- **Skill Version**: 1.0.0- **Last Verified**: 2025-11-10- **Package Version**: @google/genai ^0.21.0-- **Supported Models**: gemini-2.5-pro, gemini-2.5-flash+- **Supported Models**: gemini-3-pro, gemini-3-flash- **Node.js**: >=18.0.0## Licensediff --git a/skills/google-gemini-file-search/SKILL.md b/skills/google-gemini-file-search/SKILL.mdindex 5b45f67a..9bd9ce79 100644--- a/skills/google-gemini-file-search/SKILL.md+++ b/skills/google-gemini-file-search/SKILL.md@@ -362,13 +362,13 @@ await ai.fileSearchStores.delete({ name: fileStore.name })**Symptom:**```-Error: File Search is only supported for Gemini 2.5 Pro and Flash models+Error: File Search is only supported for Gemini 3 Pro and Flash models```-**Cause:** File Search requires Gemini 2.5 Pro or Gemini 2.5 Flash. Gemini 1.5 models are not supported.+**Cause:** File Search requires Gemini 3 Pro or Gemini 3 Flash. Gemini 2.x and 1.5 models are not supported.**Prevention:**-Always use 2.5 models:+Always use Gemini 3 models:```typescript// ❌ WRONG: Using Gemini 1.5 model@@ -382,11 +382,11 @@ const response = await ai.models.generateContent({}})-// ✅ CORRECT: Use Gemini 2.5 models+// ✅ CORRECT: Use Gemini 3 modelsconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash', // ✅ Supported (fast, cost-effective)+ model: 'gemini-3-flash', // ✅ Supported (fast, cost-effective)// OR- // model: 'gemini-2.5-pro', // ✅ Supported (higher quality)+ // model: 'gemini-3-pro', // ✅ Supported (higher quality)contents: 'What is the installation procedure?',config: {tools: [{@@ -545,7 +545,7 @@ for (const operation of operations) {```typescriptconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'What are the safety precautions for installation?',config: {tools: [{@@ -573,7 +573,7 @@ if (grounding?.groundingChunks) {```typescriptconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'How do I reset the device?',config: {tools: [{@@ -787,7 +787,7 @@ async function uploadWithDeduplication(filePath: string) {```typescript// ❌ EXPENSIVE: Search all 10GB of documentsconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'Reset procedure?',config: {tools: [{ fileSearch: { fileSearchStoreNames: [fileStore.name] } }]@@ -796,7 +796,7 @@ const response = await ai.models.generateContent({// ✅ CHEAPER: Filter to only troubleshooting docs (subset)const response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'Reset procedure?',config: {tools: [{@@ -812,14 +812,14 @@ const response = await ai.models.generateContent({### 4. Choose Flash Over Pro for Cost Savings```typescript-// Gemini 2.5 Flash is 10x cheaper than Pro for queries+// Gemini 3 Flash is 10x cheaper than Pro for queries// Use Flash unless you need Pro's advanced reasoning// Development/testing: Use Flash-model: 'gemini-2.5-flash'+model: 'gemini-3-flash'// Production (high-stakes answers): Use Pro-model: 'gemini-2.5-pro'+model: 'gemini-3-pro'```### 5. Monitor Storage Usage@@ -868,7 +868,7 @@ console.log(`✅ ${docs.documents?.length} documents indexed`)```typescriptconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'What is this knowledge base about?',config: {tools: [{ fileSearch: { fileSearchStoreNames: [fileStore.name] } }]@@ -883,7 +883,7 @@ console.log('✅ Query successful:', response.text.substring(0, 100) + '...')```typescriptconst response = await ai.models.generateContent({- model: 'gemini-2.5-flash',+ model: 'gemini-3-flash',contents: 'Provide a specific answer with citations.',config: {tools: [{ fileSearch: { fileSearchStoreNames: [fileStore.name] } }]diff --git a/skills/image-gen/.claude-plugin/plugin.json b/skills/image-gen/.claude-plugin/plugin.jsonindex 4af1cab5..0ae912d5 100644--- a/skills/image-gen/.claude-plugin/plugin.json+++ b/skills/image-gen/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "image-gen",- "description": "Generate website images with Gemini Native Image Generation (Nano Banana). Covers hero banners, service cards, infographics with legible text, and multi-turn editing. Includes Australian-specific imagery patterns. Use when stock photos dont fit, need text in images, or require consistent style across assets.",+ "description": "Generate website images with Gemini 3 Native Image Generation. Covers hero banners, service cards, infographics with legible text, and multi-turn editing. Includes Australian-specific imagery patterns. Use when stock photos dont fit, need text in images, or require consistent style across assets.","version": "1.0.0","author": {"name": "Jeremy Dawes",diff --git a/skills/image-gen/README.md b/skills/image-gen/README.mdindex 657c38ef..a09c3b60 100644--- a/skills/image-gen/README.md+++ b/skills/image-gen/README.md@@ -1,12 +1,12 @@# Image Generation Skill-Generate website images with Gemini Native Image Generation (Nano Banana).+Generate website images with Gemini 3 Native Image Generation.## Auto-Trigger Keywords### Technology-- gemini image generation, nano banana, native image gen-- gemini-2.0-flash-exp-image-generation, gemini-2.5-pro-preview+- gemini image generation, gemini 3 image generation, native image gen+- gemini-3-flash-image-generation, gemini-3-pro-image-generation- google genai, @google/genai### Use Casesdiff --git a/skills/image-gen/SKILL.md b/skills/image-gen/SKILL.mdindex 4c0b27b8..aaf9db51 100644--- a/skills/image-gen/SKILL.md+++ b/skills/image-gen/SKILL.md@@ -1,6 +1,6 @@---name: image-gen-description: Generate website images with Gemini Native Image Generation (Nano Banana). Covers hero banners, service cards, infographics with legible text, and multi-turn editing. Includes Australian-specific imagery patterns. Use when stock photos don't fit, need text in images, or require consistent style across assets.+description: Generate website images with Gemini 3 Native Image Generation. Covers hero banners, service cards, infographics with legible text, and multi-turn editing. Includes Australian-specific imagery patterns. Use when stock photos don't fit, need text in images, or require consistent style across assets.license: MITmetadata:last_verified: "2026-01-14"@@ -14,8 +14,8 @@ Generate and edit website images using Gemini Native Image Generation.| Model | ID | Best For ||-------|-----|----------|-| **Nano Banana** | `gemini-2.0-flash-exp-image-generation` | Fast iteration, general use |-| **Nano Banana Pro** | `gemini-2.5-pro-preview-image-generation` | 4K, complex prompts, text |+| **Gemini 3 Flash** | `gemini-3-flash-image-generation` | Fast iteration, general use |+| **Gemini 3 Pro** | `gemini-3-pro-image-generation` | 4K, complex prompts, text |## Capabilities@@ -56,7 +56,7 @@ const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });// Generate new imageconst response = await ai.models.generateContent({- model: "gemini-2.0-flash-exp-image-generation",+ model: "gemini-3-flash-image-generation",contents: "A professional plumber in hi-vis working in modern Australian home",config: {responseModalities: ["TEXT", "IMAGE"],@@ -79,12 +79,12 @@ for (const part of response.candidates[0].content.parts) {| Requirement | Use ||-------------|-----|-| Fast iteration | Nano Banana |-| 4K resolution | Nano Banana Pro |+| Fast iteration | Gemini 3 Flash |+| 4K resolution | Gemini 3 Pro || Text in images | Pro (better legibility) |-| Simple edits | Nano Banana |-| Complex compositions | Nano Banana Pro |-| Infographics/diagrams | Nano Banana Pro |+| Simple edits | Gemini 3 Flash |+| Complex compositions | Gemini 3 Pro |+| Infographics/diagrams | Gemini 3 Pro |## When to Usediff --git a/skills/image-gen/agents/image-prompter.md b/skills/image-gen/agents/image-prompter.mdindex a2a821f3..7451949d 100644--- a/skills/image-gen/agents/image-prompter.md+++ b/skills/image-gen/agents/image-prompter.md@@ -90,12 +90,12 @@ When Australian context is needed:| Image Type | Recommended Model ||------------|-------------------|-| Quick hero draft | Nano Banana |-| Final hero (4K) | Nano Banana Pro |-| Infographic with text | Nano Banana Pro |-| Simple card image | Nano Banana |-| Style transfer edit | Nano Banana |-| Complex composition | Nano Banana Pro |+| Quick hero draft | Gemini 3 Flash |+| Final hero (4K) | Gemini 3 Pro |+| Infographic with text | Gemini 3 Pro |+| Simple card image | Gemini 3 Flash |+| Style transfer edit | Gemini 3 Flash |+| Complex composition | Gemini 3 Pro |## Output Format@@ -116,7 +116,7 @@ Natural light from nearby window, warm and inviting atmosphere.Shot with 35mm lens, shallow depth of field.Professional, trustworthy, approachable mood.-**Model:** gemini-2.0-flash-exp-image-generation+**Model:** gemini-3-flash-image-generation**Config:** { aspectRatio: "16:9" }**Notes:** If the vest color isn't quite right, use multi-turn: "Change vest to brighter orange"```@@ -205,6 +205,6 @@ Warm, inviting atmosphere, shot at 35mm f/2.8, shallow depth of field.Do NOT include: people, visible brand logos on devices, cluttered desk,harsh shadows, corporate/generic stock photo feel.-**Model:** gemini-2.5-pro-preview-image-generation+**Model:** gemini-3-pro-image-generation**Config:** { aspectRatio: "16:9" }```diff --git a/skills/image-gen/references/editing.md b/skills/image-gen/references/editing.mdindex 00dae18a..e8f837e6 100644--- a/skills/image-gen/references/editing.md+++ b/skills/image-gen/references/editing.md@@ -35,7 +35,7 @@ async function editImage(imagePath: string, editPrompt: string, aspectRatio?: st}const response = await ai.models.generateContent({- model: "gemini-2.0-flash-exp-image-generation",+ model: "gemini-3-flash-image-generation",contents: [{role: "user",@@ -92,7 +92,7 @@ For complex edits, use chat context to build on previous results:```typescriptconst chat = await ai.chats.create({- model: "gemini-2.0-flash-exp-image-generation",+ model: "gemini-3-flash-image-generation",config: { responseModalities: ['TEXT', 'IMAGE'] }});diff --git a/skills/image-gen/references/integration.md b/skills/image-gen/references/integration.mdindex 8a60c2bd..1eeb580c 100644--- a/skills/image-gen/references/integration.md+++ b/skills/image-gen/references/integration.md@@ -34,8 +34,8 @@ async function generateImage(prompt: string, options: {const response = await ai.models.generateContent({model: imageSize- ? "gemini-2.5-pro-preview-image-generation"- : "gemini-2.0-flash-exp-image-generation",+ ? "gemini-3-pro-image-generation"+ : "gemini-3-flash-image-generation",contents: prompt,config,});@@ -59,7 +59,7 @@ fs.writeFileSync("hero.png", hero);```bashcurl -s -X POST \- "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp-image-generation:generateContent" \+ "https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-image-generation:generateContent" \-H "x-goog-api-key: $GEMINI_API_KEY" \-H "Content-Type: application/json" \-d '{diff --git a/skills/image-gen/rules/image-gen.md b/skills/image-gen/rules/image-gen.mdindex a12dd30f..28e20f0e 100644--- a/skills/image-gen/rules/image-gen.md+++ b/skills/image-gen/rules/image-gen.md@@ -6,10 +6,10 @@ Correction rules for Gemini Native Image Generation.| If Claude suggests... | Use instead... ||----------------------|----------------|-| DALL-E for website images | Gemini Nano Banana (better text, editing) |-| Midjourney | Gemini Nano Banana (API access, editing) |-| `gemini-pro-vision` for generation | `gemini-2.0-flash-exp-image-generation` |-| Generic model for 4K | `gemini-2.5-pro-preview-image-generation` |+| DALL-E for website images | Gemini 3 Image Generation (better text, editing) |+| Midjourney | Gemini 3 Image Generation (API access, editing) |+| `gemini-pro-vision` for generation | `gemini-3-flash-image-generation` |+| Generic model for 4K | `gemini-3-pro-image-generation` |## API Configuration@@ -24,7 +24,7 @@ Correct config structure:```typescriptconst response = await ai.models.generateContent({- model: "gemini-2.0-flash-exp-image-generation",+ model: "gemini-3-flash-image-generation",contents: prompt,config: {responseModalities: ["TEXT", "IMAGE"],@@ -59,7 +59,7 @@ const response = await ai.models.generateContent({| If Claude suggests... | Use instead... ||----------------------|----------------|-| Nano Banana for infographics | Nano Banana Pro (better text legibility) |+| Gemini 3 Flash for infographics | Gemini 3 Pro (better text legibility) || Long paragraphs in image | Short labels, headlines only || Small text | Large, bold text (minimum 24pt equivalent) || Decorative fonts | Clear sans-serif for legibility |diff --git a/skills/openai-agents/SKILL.md b/skills/openai-agents/SKILL.mdindex 8be84a51..2b4ae1ce 100644--- a/skills/openai-agents/SKILL.md+++ b/skills/openai-agents/SKILL.md@@ -30,7 +30,7 @@ export OPENAI_API_KEY="your-key"**Agents**: LLMs with instructions + tools```typescriptimport { Agent } from '@openai/agents';-const agent = new Agent({ name: 'Assistant', tools: [myTool], model: 'gpt-4o-mini' });+const agent = new Agent({ name: 'Assistant', tools: [myTool], model: 'gpt-5-mini' });```**Tools**: Functions with Zod schemas@@ -119,7 +119,7 @@ while (result.interruption?.type === 'tool_approval') {import { RealtimeAgent } from '@openai/agents-realtime';const voiceAgent = new RealtimeAgent({voice: 'alloy', // alloy, echo, fable, onyx, nova, shimmer- model: 'gpt-4o-realtime-preview',+ model: 'gpt-5-realtime',tools: [weatherTool],});```@@ -152,7 +152,7 @@ await session.connect();export default {async fetch(request: Request, env: Env) {process.env.OPENAI_API_KEY = env.OPENAI_API_KEY;- const agent = new Agent({ name: 'Assistant', model: 'gpt-4o-mini' });+ const agent = new Agent({ name: 'Assistant', model: 'gpt-5-mini' });const result = await run(agent, (await request.json()).message);return Response.json({ response: result.finalOutput, tokens: result.usage.totalTokens });}@@ -240,7 +240,7 @@ for (let attempt = 1; attempt <= 3; attempt++) {```typescriptconst agent = new Agent({- model: 'gpt-4o', // More reliable than gpt-4o-mini+ model: 'gpt-5', // More reliable than gpt-5-miniinstructions: 'CRITICAL: Return JSON matching schema exactly',outputType: mySchema,});@@ -282,7 +282,7 @@ console.log(result.usage.totalTokens, result.history.length, result.currentAgent- [ ] Add guardrails for safety-critical applications- [ ] Enable tracing for debugging- [ ] Set reasonable `maxTurns` to prevent runaway costs-- [ ] Use `gpt-4o-mini` where possible for cost efficiency+- [ ] Use `gpt-5-mini` where possible for cost efficiency- [ ] Implement rate limiting- [ ] Log token usage for cost monitoring- [ ] Test handoff flows thoroughlydiff --git a/skills/openai-agents/references/cloudflare-integration.md b/skills/openai-agents/references/cloudflare-integration.mdindex 4ac3e8d2..65c06902 100644--- a/skills/openai-agents/references/cloudflare-integration.md+++ b/skills/openai-agents/references/cloudflare-integration.md@@ -86,7 +86,7 @@ export default {const agent = new Agent({name: 'Assistant',instructions: 'You are helpful.',- model: 'gpt-4o-mini', // Use smaller models for faster response+ model: 'gpt-5-mini', // Use smaller models for faster response});const result = await run(agent, message, {@@ -196,7 +196,7 @@ Workers have CPU time limits (default 50ms, up to 30s with paid plans).```typescriptconst result = await run(agent, message, {maxTurns: 3, // Limit turns- model: 'gpt-4o-mini', // Faster model+ model: 'gpt-5-mini', // Faster model});```@@ -227,7 +227,7 @@ First request after inactivity may be slow.### 1. Use Smaller Models```typescript-model: 'gpt-4o-mini' // Faster than gpt-4o+model: 'gpt-5-mini' // Faster than gpt-5```### 2. Limit Turns@@ -290,7 +290,7 @@ wrangler dev- GPT-4o-mini: ~$75- **Total**: ~$76.50-**Use gpt-4o-mini for cost efficiency!**+**Use gpt-5-mini for cost efficiency!**---diff --git a/skills/openai-agents/references/common-errors.md b/skills/openai-agents/references/common-errors.mdindex 91f2fd16..dd262797 100644--- a/skills/openai-agents/references/common-errors.md+++ b/skills/openai-agents/references/common-errors.md@@ -212,7 +212,7 @@ const agent = new Agent({2. **Use Stricter Models**:```typescriptconst agent = new Agent({- model: 'gpt-4o', // More reliable than gpt-4o-mini for structured output+ model: 'gpt-5', // More reliable than gpt-5-mini for structured outputoutputType: mySchema,});```diff --git a/skills/openai-agents/references/official-links.md b/skills/openai-agents/references/official-links.mdindex 83e152f2..448fbf6a 100644--- a/skills/openai-agents/references/official-links.md+++ b/skills/openai-agents/references/official-links.md@@ -65,8 +65,8 @@ npm install @openai/agents-realtime # For voice agents### Pricing- **Pricing Page**: https://openai.com/api/pricing/-- **GPT-4o**: $2.50 / 1M input tokens, $10.00 / 1M output tokens-- **GPT-4o-mini**: $0.15 / 1M input tokens, $0.60 / 1M output tokens+- **GPT-5**: $2.50 / 1M input tokens, $10.00 / 1M output tokens+- **GPT-5-mini**: $0.15 / 1M input tokens, $0.60 / 1M output tokens### Account- **API Keys**: https://platform.openai.com/api-keysdiff --git a/skills/openai-agents/rules/openai-agents.md b/skills/openai-agents/rules/openai-agents.mdindex cfbdc640..f788647a 100644--- a/skills/openai-agents/rules/openai-agents.md+++ b/skills/openai-agents/rules/openai-agents.md@@ -51,10 +51,10 @@ const agent = new Agent({```typescript/* ❌ Cannot change voice/model during handoff */-handoff({ voice: 'different-voice', model: 'gpt-4o' })+handoff({ voice: 'different-voice', model: 'gpt-5' })/* ✅ Voice and model must match original agent */-handoff({ voice: originalVoice, model: 'gpt-4o-realtime-preview' })+handoff({ voice: originalVoice, model: 'gpt-5-realtime' })```## Never Send API Key to Browser@@ -65,7 +65,7 @@ const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY })// Sending to frontend.../* ✅ Generate ephemeral tokens server-side */-const session = await client.realtime.sessions.create({ model: 'gpt-4o-realtime-preview' })+const session = await client.realtime.sessions.create({ model: 'gpt-5-realtime' })// Send session.client_secret.value to frontend (expires in 60s)```diff --git a/skills/openai-agents/templates/cloudflare-workers/worker-agent-hono.ts b/skills/openai-agents/templates/cloudflare-workers/worker-agent-hono.tsindex 88d64ed1..325906b8 100644--- a/skills/openai-agents/templates/cloudflare-workers/worker-agent-hono.ts+++ b/skills/openai-agents/templates/cloudflare-workers/worker-agent-hono.ts@@ -20,13 +20,13 @@ import { Agent, run, tool } from '@openai/agents';const summarizerAgent = new Agent({name: 'Summarizer',instructions: 'Summarize text concisely in 2-3 sentences.',- model: 'gpt-4o-mini',+ model: 'gpt-5-mini',});const translatorAgent = new Agent({name: 'Translator',instructions: 'Translate text accurately while preserving meaning and tone.',- model: 'gpt-4o-mini',+ model: 'gpt-5-mini',});const analyzerTool = tool({@@ -54,7 +54,7 @@ const analyzerAgent = new Agent({name: 'Analyzer',instructions: 'Analyze text for sentiment, tone, and key themes.',tools: [analyzerTool],- model: 'gpt-4o-mini',+ model: 'gpt-5-mini',});// ========================================diff --git a/skills/openai-agents/templates/cloudflare-workers/worker-text-agent.ts b/skills/openai-agents/templates/cloudflare-workers/worker-text-agent.tsindex 811f6bcb..afa3538e 100644--- a/skills/openai-agents/templates/cloudflare-workers/worker-text-agent.ts+++ b/skills/openai-agents/templates/cloudflare-workers/worker-text-agent.ts@@ -34,7 +34,7 @@ const docsAgent = new Agent({name: 'Documentation Assistant',instructions: 'Help users find information in our documentation. Use the search tool when needed.',tools: [searchTool],- model: 'gpt-4o-mini', // Use smaller model for cost efficiency+ model: 'gpt-5-mini', // Use smaller model for cost efficiency});// ========================================diff --git a/skills/openai-agents/templates/nextjs/api-agent-route.ts b/skills/openai-agents/templates/nextjs/api-agent-route.tsindex 3a1152a6..261ca2c8 100644--- a/skills/openai-agents/templates/nextjs/api-agent-route.ts+++ b/skills/openai-agents/templates/nextjs/api-agent-route.ts@@ -34,7 +34,7 @@ const assistantAgent = new Agent({name: 'Assistant',instructions: 'You are a helpful assistant. Use the search tool when you need to find information.',tools: [searchTool],- model: 'gpt-4o-mini',+ model: 'gpt-5-mini',});// ========================================diff --git a/skills/openai-agents/templates/realtime-agents/realtime-agent-basic.ts b/skills/openai-agents/templates/realtime-agents/realtime-agent-basic.tsindex c6ad3563..633c9867 100644--- a/skills/openai-agents/templates/realtime-agents/realtime-agent-basic.ts+++ b/skills/openai-agents/templates/realtime-agents/realtime-agent-basic.ts@@ -81,7 +81,7 @@ const voiceAssistant = new RealtimeAgent({voice: 'alloy', // Options: alloy, echo, fable, onyx, nova, shimmer// Model (realtime API uses specific models)- model: 'gpt-4o-realtime-preview', // Default for realtime+ model: 'gpt-5-realtime', // Default for realtime// Turn detection (when to consider user done speaking)turnDetection: {diff --git a/skills/openai-agents/templates/realtime-agents/realtime-handoffs.ts b/skills/openai-agents/templates/realtime-agents/realtime-handoffs.tsindex 5bb5633f..c8f34382 100644--- a/skills/openai-agents/templates/realtime-agents/realtime-handoffs.ts+++ b/skills/openai-agents/templates/realtime-agents/realtime-handoffs.ts@@ -106,7 +106,7 @@ const triageVoiceAgent = new RealtimeAgent({- Explain the transfer before handing off`,handoffs: [billingAgent, technicalAgent],voice: 'nova', // This voice will be used by all agents- model: 'gpt-4o-realtime-preview', // This model will be used by all agents+ model: 'gpt-5-realtime', // This model will be used by all agents});// ========================================diff --git a/skills/openai-agents/templates/text-agents/agent-basic.ts b/skills/openai-agents/templates/text-agents/agent-basic.tsindex 3a6d1791..855ac013 100644--- a/skills/openai-agents/templates/text-agents/agent-basic.ts+++ b/skills/openai-agents/templates/text-agents/agent-basic.ts@@ -30,7 +30,7 @@ const weatherAgent = new Agent({name: 'Weather Assistant',instructions: 'You are a friendly weather assistant. When users ask about weather, use the get_weather tool to provide accurate information.',tools: [getWeatherTool],- model: 'gpt-4o-mini', // Default model+ model: 'gpt-5-mini', // Default model});// Run the agentdiff --git a/skills/openai-assistants/README.md b/skills/openai-assistants/README.mdindex 42099bae..3f0119a3 100644--- a/skills/openai-assistants/README.md+++ b/skills/openai-assistants/README.md@@ -106,7 +106,7 @@ const assistant = await openai.beta.assistants.create({name: "Math Tutor",instructions: "You are a math tutor. Use code to solve problems.",tools: [{ type: "code_interpreter" }],- model: "gpt-4o",+ model: "gpt-5",});// 2. Create threaddiff --git a/skills/openai-assistants/SKILL.md b/skills/openai-assistants/SKILL.mdindex 9a57b0ab..074b6509 100644--- a/skills/openai-assistants/SKILL.md+++ b/skills/openai-assistants/SKILL.md@@ -46,7 +46,7 @@ const assistant = await openai.beta.assistants.create({name: "Math Tutor",instructions: "You are a math tutor. Use code interpreter for calculations.",tools: [{ type: "code_interpreter" }],- model: "gpt-4o",+ model: "gpt-5",});// 2. Create thread@@ -94,7 +94,7 @@ console.log(messages.data[0].content[0].text.value);```typescriptconst assistant = await openai.beta.assistants.create({- model: "gpt-4o",+ model: "gpt-5",instructions: "System prompt (max 256k chars in v2)",tools: [{ type: "code_interpreter" }, { type: "file_search" }],tool_resources: { file_search: { vector_store_ids: ["vs_123"] } },diff --git a/skills/openai-assistants/references/assistants-api-v2.md b/skills/openai-assistants/references/assistants-api-v2.mdindex 313193f1..986cc990 100644--- a/skills/openai-assistants/references/assistants-api-v2.md+++ b/skills/openai-assistants/references/assistants-api-v2.md@@ -28,7 +28,7 @@ Runs (execution on thread)Configured AI entities with:- **Instructions**: System prompt (max 256k characters)-- **Model**: gpt-4o, gpt-5, etc.+- **Model**: gpt-5, etc., etc.- **Tools**: code_interpreter, file_search, functions- **Tool Resources**: Vector stores, files- **Metadata**: Custom key-value pairsdiff --git a/skills/openai-assistants/references/code-interpreter-guide.md b/skills/openai-assistants/references/code-interpreter-guide.mdindex b16e29d8..112eb293 100644--- a/skills/openai-assistants/references/code-interpreter-guide.md+++ b/skills/openai-assistants/references/code-interpreter-guide.md@@ -22,7 +22,7 @@ const assistant = await openai.beta.assistants.create({name: "Data Analyst",instructions: "You analyze data and create visualizations.",tools: [{ type: "code_interpreter" }],- model: "gpt-4o",+ model: "gpt-5",});```diff --git a/skills/openai-assistants/references/file-search-rag-guide.md b/skills/openai-assistants/references/file-search-rag-guide.mdindex 544327ce..81a78f95 100644--- a/skills/openai-assistants/references/file-search-rag-guide.md+++ b/skills/openai-assistants/references/file-search-rag-guide.md@@ -80,7 +80,7 @@ const assistant = await openai.beta.assistants.create({vector_store_ids: [vectorStore.id],},},- model: "gpt-4o",+ model: "gpt-5",});```diff --git a/skills/openai-assistants/references/vector-stores.md b/skills/openai-assistants/references/vector-stores.mdindex 06d1c5b7..b04a415b 100644--- a/skills/openai-assistants/references/vector-stores.md+++ b/skills/openai-assistants/references/vector-stores.md@@ -230,7 +230,7 @@ const assistant = await openai.beta.assistants.create({vector_store_ids: [vectorStore.id],},},- model: "gpt-4o",+ model: "gpt-5",});```diff --git a/skills/openai-assistants/templates/basic-assistant.ts b/skills/openai-assistants/templates/basic-assistant.tsindex e2adbc4a..54b9c235 100644--- a/skills/openai-assistants/templates/basic-assistant.ts+++ b/skills/openai-assistants/templates/basic-assistant.ts@@ -24,7 +24,7 @@ async function main() {name: "Math Tutor",instructions: "You are a personal math tutor. When asked a question, write and run Python code to answer the question.",tools: [{ type: "code_interpreter" }],- model: "gpt-4o",+ model: "gpt-5",});console.log(`✅ Assistant created: ${assistant.id}\n`);diff --git a/skills/openai-assistants/templates/code-interpreter-assistant.ts b/skills/openai-assistants/templates/code-interpreter-assistant.tsindex 395e460b..8876989e 100644--- a/skills/openai-assistants/templates/code-interpreter-assistant.ts+++ b/skills/openai-assistants/templates/code-interpreter-assistant.ts@@ -23,7 +23,7 @@ async function main() {name: "Data Analyst",instructions: "You are a data analyst. Analyze data and create visualizations. Always explain your approach and findings.",tools: [{ type: "code_interpreter" }],- model: "gpt-4o",+ model: "gpt-5",});console.log(`✅ Assistant created: ${assistant.id}\n`);diff --git a/skills/openai-assistants/templates/file-search-assistant.ts b/skills/openai-assistants/templates/file-search-assistant.tsindex 616cce59..27e54ee8 100644--- a/skills/openai-assistants/templates/file-search-assistant.ts+++ b/skills/openai-assistants/templates/file-search-assistant.ts@@ -115,7 +115,7 @@ Common Issues:vector_store_ids: [vectorStore.id],},},- model: "gpt-4o",+ model: "gpt-5",});console.log(`✅ Assistant created: ${assistant.id}\n`);diff --git a/skills/openai-assistants/templates/function-calling-assistant.ts b/skills/openai-assistants/templates/function-calling-assistant.tsindex 3dd4f0a7..0fcb979f 100644--- a/skills/openai-assistants/templates/function-calling-assistant.ts+++ b/skills/openai-assistants/templates/function-calling-assistant.ts@@ -92,7 +92,7 @@ async function main() {},},],- model: "gpt-4o",+ model: "gpt-5",});console.log(`✅ Assistant created: ${assistant.id}\n`);diff --git a/skills/openai-assistants/templates/streaming-assistant.ts b/skills/openai-assistants/templates/streaming-assistant.tsindex e3c8fa9d..2af63b70 100644--- a/skills/openai-assistants/templates/streaming-assistant.ts+++ b/skills/openai-assistants/templates/streaming-assistant.ts@@ -22,7 +22,7 @@ async function main() {name: "Streaming Tutor",instructions: "You are a helpful tutor. Explain concepts clearly and use code interpreter when helpful.",tools: [{ type: "code_interpreter" }],- model: "gpt-4o",+ model: "gpt-5",});console.log(`✅ Assistant created: ${assistant.id}\n`);diff --git a/skills/openai-assistants/templates/thread-management.ts b/skills/openai-assistants/templates/thread-management.tsindex 66cb91b3..325d41bf 100644--- a/skills/openai-assistants/templates/thread-management.ts+++ b/skills/openai-assistants/templates/thread-management.ts@@ -182,7 +182,7 @@ async function main() {const assistant = await openai.beta.assistants.create({name: "Demo Assistant",instructions: "You are a helpful assistant.",- model: "gpt-4o",+ model: "gpt-5",});console.log(`✅ Assistant created: ${assistant.id}\n`);