Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
fix: Update deprecated AI models and fix script bugs
Jez5e99b79df0a4
diff --git a/commands/reflect.md b/commands/reflect.mdindex 593ec019..b8564cf6 100644--- a/commands/reflect.md+++ b/commands/reflect.md@@ -1,5 +1,23 @@You are performing a self-reflection on the current conversation to capture operational knowledge that would otherwise be lost when context clears.+## CRITICAL: Work from Memory Only++**DO NOT** run bash commands to scan files for dates, versions, or "last updated" references. This reflection is about the **conversation that just happened** - work entirely from what you remember from our session.++**DO NOT**:+- Loop through files looking for dates+- Run grep/head/cat commands to analyze docs+- Search for "last updated" or version strings+- Scan CLAUDE.md, README.md, or other docs++**DO**:+- Reflect on what we discussed and learned+- Extract patterns from the work we did together+- Identify workflows discovered during our conversation+- Note corrections made during this session++---+## PurposeExtract **operational knowledge** from this session - workflows discovered, patterns learned, tool sequences, and nuanced approaches that don't belong in commits, planning docs, or progress tracking but would be valuable for future Claude Code sessions.diff --git a/scripts/check-ai-models.sh b/scripts/check-ai-models.shindex 1cc81d5f..ca06ec27 100755--- a/scripts/check-ai-models.sh+++ b/scripts/check-ai-models.sh@@ -351,9 +351,9 @@ for skill_dir in "$SKILLS_DIR"/*/ ; do((TOTAL_SKILLS++))# Check if skill references AI models- local before_count=$TOTAL_MODEL_REFS+ before_count=$TOTAL_MODEL_REFScheck_skill_ai_models "$skill_dir" "$skill_name"- local after_count=$TOTAL_MODEL_REFS+ after_count=$TOTAL_MODEL_REFSif [ $after_count -gt $before_count ]; then((SKILLS_WITH_MODELS++))diff --git a/scripts/check-github-releases.sh b/scripts/check-github-releases.shindex b9368743..63a94698 100755--- a/scripts/check-github-releases.sh+++ b/scripts/check-github-releases.sh@@ -233,7 +233,7 @@ for skill_dir in "$SKILLS_DIR"/*/ ; do# Check if skill has GitHub URLsif [ -f "$skill_dir/SKILL.md" ]; then- local has_github=$(grep -c 'https://github\.com/' "$skill_dir/SKILL.md" || true)+ has_github=$(grep -c 'https://github\.com/' "$skill_dir/SKILL.md" || true)if [ "$has_github" -gt 0 ]; thencheck_skill_github_releases "$skill_dir" "$skill_name"((SKILLS_WITH_REPOS++))diff --git a/skills/ai-sdk-core/SKILL.md b/skills/ai-sdk-core/SKILL.mdindex f1062f06..93652149 100644--- a/skills/ai-sdk-core/SKILL.md+++ b/skills/ai-sdk-core/SKILL.md@@ -276,7 +276,7 @@ AI SDK v5 introduced extensive breaking changes. If migrating from v4, follow thimport { generateText } from 'ai';const result = await generateText({- model: openai.chat('gpt-4'),+ model: openai.chat('gpt-4-turbo'),maxTokens: 500,providerMetadata: { openai: { user: 'user-123' } },tools: {@@ -295,7 +295,7 @@ const result = await generateText({import { generateText, tool, stopWhen, stepCountIs } from 'ai';const result = await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),maxOutputTokens: 500,providerOptions: { openai: { user: 'user-123' } },tools: {@@ -349,7 +349,7 @@ import { AI_APICallError } from 'ai';try {const result = await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt: 'Hello',});} catch (error) {@@ -388,7 +388,7 @@ import { AI_NoObjectGeneratedError } from 'ai';try {const result = await generateObject({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),schema: z.object({ /* complex schema */ }),prompt: 'Generate data',});@@ -456,7 +456,7 @@ export default {```typescript// Use the onError callback (added in v4.1.22)const stream = streamText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt: 'Hello',onError({ error }) {console.error('Stream error:', error);@@ -475,7 +475,7 @@ for await (const chunk of stream.textStream) {// Fallback if not using onError callbacktry {const stream = streamText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt: 'Hello',});@@ -507,7 +507,7 @@ import { AI_LoadAPIKeyError } from 'ai';try {const result = await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt: 'Hello',});} catch (error) {@@ -540,7 +540,7 @@ import { AI_InvalidArgumentError } from 'ai';try {const result = await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),maxOutputTokens: -1, // Invalid!prompt: 'Hello',});@@ -570,7 +570,7 @@ import { AI_NoContentGeneratedError } from 'ai';try {const result = await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt: 'Some prompt',});} catch (error) {@@ -606,7 +606,7 @@ import { AI_TypeValidationError } from 'ai';try {const result = await generateObject({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),schema: z.object({age: z.number().min(0).max(120), // Strict validation}),@@ -642,7 +642,7 @@ import { AI_RetryError } from 'ai';try {const result = await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt: 'Hello',maxRetries: 3, // Default is 2});@@ -678,7 +678,7 @@ async function generateWithBackoff(prompt: string, retries = 3) {for (let i = 0; i < retries; i++) {try {return await generateText({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),prompt,});} catch (error) {@@ -715,7 +715,7 @@ async function generateWithBackoff(prompt: string, retries = 3) {// Define inside functions or use type assertions:function generateData() {const schema = z.object({ /* complex schema */ });- return generateObject({ model: openai('gpt-4'), schema, prompt: '...' });+ return generateObject({ model: openai('gpt-4-turbo'), schema, prompt: '...' });}// Or use z.lazy() for recursive schemas:@@ -747,7 +747,7 @@ https://ai-sdk.dev/docs/troubleshooting/common-issues/slow-type-checking```typescript// Use built-in retry and mode selectionconst result = await generateObject({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),schema: mySchema,prompt: 'Generate data',mode: 'json', // Force JSON mode (supported by GPT-4)@@ -757,7 +757,7 @@ const result = await generateObject({// Or catch and retry manually:try {const result = await generateObject({- model: openai('gpt-4'),+ model: openai('gpt-4-turbo'),schema: mySchema,prompt: 'Generate data',});diff --git a/skills/google-gemini-api/SKILL.md b/skills/google-gemini-api/SKILL.mdindex bf8ded85..f6def1da 100644--- a/skills/google-gemini-api/SKILL.md+++ b/skills/google-gemini-api/SKILL.md@@ -1664,7 +1664,7 @@ import { GoogleGenAI, DynamicRetrievalConfigMode } from '@google/genai';const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });const response = await ai.models.generateContent({- model: 'gemini-1.5-flash',+ model: 'gemini-2.5-flash',contents: 'Who won the euro 2024?',config: {tools: [