opencode-skills-antigravity 1.0.4 → 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.
Files changed (151) hide show
  1. package/bundled-skills/ad-creative/SKILL.md +371 -0
  2. package/bundled-skills/ad-creative/evals/evals.json +90 -0
  3. package/bundled-skills/ad-creative/references/generative-tools.md +637 -0
  4. package/bundled-skills/ad-creative/references/platform-specs.md +213 -0
  5. package/bundled-skills/ai-seo/SKILL.md +407 -0
  6. package/bundled-skills/ai-seo/evals/evals.json +90 -0
  7. package/bundled-skills/ai-seo/references/content-patterns.md +285 -0
  8. package/bundled-skills/ai-seo/references/platform-ranking-factors.md +152 -0
  9. package/bundled-skills/backend-dev-guidelines/SKILL.md +1 -1
  10. package/bundled-skills/cc-skill-security-review/SKILL.md +1 -1
  11. package/bundled-skills/churn-prevention/SKILL.md +433 -0
  12. package/bundled-skills/churn-prevention/evals/evals.json +93 -0
  13. package/bundled-skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
  14. package/bundled-skills/churn-prevention/references/dunning-playbook.md +408 -0
  15. package/bundled-skills/claude-api/LICENSE.txt +202 -0
  16. package/bundled-skills/claude-api/SKILL.md +252 -0
  17. package/bundled-skills/claude-api/csharp/claude-api.md +70 -0
  18. package/bundled-skills/claude-api/curl/examples.md +164 -0
  19. package/bundled-skills/claude-api/go/claude-api.md +146 -0
  20. package/bundled-skills/claude-api/java/claude-api.md +128 -0
  21. package/bundled-skills/claude-api/php/claude-api.md +88 -0
  22. package/bundled-skills/claude-api/python/agent-sdk/README.md +269 -0
  23. package/bundled-skills/claude-api/python/agent-sdk/patterns.md +319 -0
  24. package/bundled-skills/claude-api/python/claude-api/README.md +404 -0
  25. package/bundled-skills/claude-api/python/claude-api/batches.md +182 -0
  26. package/bundled-skills/claude-api/python/claude-api/files-api.md +162 -0
  27. package/bundled-skills/claude-api/python/claude-api/streaming.md +162 -0
  28. package/bundled-skills/claude-api/python/claude-api/tool-use.md +587 -0
  29. package/bundled-skills/claude-api/ruby/claude-api.md +87 -0
  30. package/bundled-skills/claude-api/shared/error-codes.md +205 -0
  31. package/bundled-skills/claude-api/shared/live-sources.md +121 -0
  32. package/bundled-skills/claude-api/shared/models.md +68 -0
  33. package/bundled-skills/claude-api/shared/tool-use-concepts.md +305 -0
  34. package/bundled-skills/claude-api/typescript/agent-sdk/README.md +220 -0
  35. package/bundled-skills/claude-api/typescript/agent-sdk/patterns.md +150 -0
  36. package/bundled-skills/claude-api/typescript/claude-api/README.md +313 -0
  37. package/bundled-skills/claude-api/typescript/claude-api/batches.md +106 -0
  38. package/bundled-skills/claude-api/typescript/claude-api/files-api.md +98 -0
  39. package/bundled-skills/claude-api/typescript/claude-api/streaming.md +178 -0
  40. package/bundled-skills/claude-api/typescript/claude-api/tool-use.md +477 -0
  41. package/bundled-skills/codex-review/SKILL.md +1 -1
  42. package/bundled-skills/cold-email/SKILL.md +167 -0
  43. package/bundled-skills/cold-email/evals/evals.json +94 -0
  44. package/bundled-skills/cold-email/references/benchmarks.md +83 -0
  45. package/bundled-skills/cold-email/references/follow-up-sequences.md +81 -0
  46. package/bundled-skills/cold-email/references/frameworks.md +90 -0
  47. package/bundled-skills/cold-email/references/personalization.md +79 -0
  48. package/bundled-skills/cold-email/references/subject-lines.md +53 -0
  49. package/bundled-skills/content-strategy/SKILL.md +374 -0
  50. package/bundled-skills/content-strategy/evals/evals.json +90 -0
  51. package/bundled-skills/content-strategy/references/headless-cms.md +194 -0
  52. package/bundled-skills/context7-auto-research/SKILL.md +1 -1
  53. package/bundled-skills/dbos-golang/SKILL.md +1 -1
  54. package/bundled-skills/dbos-python/SKILL.md +1 -1
  55. package/bundled-skills/dbos-typescript/SKILL.md +1 -1
  56. package/bundled-skills/debug-buttercup/SKILL.md +1 -1
  57. package/bundled-skills/defuddle/SKILL.md +50 -0
  58. package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
  59. package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
  60. package/bundled-skills/docs/integrations/jetski-gemini-loader/package.json +1 -0
  61. package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
  62. package/bundled-skills/docs/maintainers/skills-import-2026-03-21.md +81 -0
  63. package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
  64. package/bundled-skills/docs/users/bundles.md +1 -1
  65. package/bundled-skills/docs/users/claude-code-skills.md +1 -1
  66. package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
  67. package/bundled-skills/docs/users/getting-started.md +1 -1
  68. package/bundled-skills/docs/users/kiro-integration.md +1 -1
  69. package/bundled-skills/docs/users/usage.md +4 -4
  70. package/bundled-skills/docs/users/visual-guide.md +4 -4
  71. package/bundled-skills/evaluation/SKILL.md +1 -1
  72. package/bundled-skills/exa-search/SKILL.md +1 -1
  73. package/bundled-skills/firecrawl-scraper/SKILL.md +1 -1
  74. package/bundled-skills/frontend-dev-guidelines/SKILL.md +1 -1
  75. package/bundled-skills/gha-security-review/SKILL.md +2 -1
  76. package/bundled-skills/git-pushing/SKILL.md +1 -1
  77. package/bundled-skills/internal-comms/LICENSE.txt +202 -0
  78. package/bundled-skills/internal-comms/SKILL.md +35 -0
  79. package/bundled-skills/internal-comms/examples/3p-updates.md +47 -0
  80. package/bundled-skills/internal-comms/examples/company-newsletter.md +65 -0
  81. package/bundled-skills/internal-comms/examples/faq-answers.md +30 -0
  82. package/bundled-skills/internal-comms/examples/general-comms.md +16 -0
  83. package/bundled-skills/json-canvas/SKILL.md +253 -0
  84. package/bundled-skills/json-canvas/references/EXAMPLES.md +329 -0
  85. package/bundled-skills/lead-magnets/SKILL.md +319 -0
  86. package/bundled-skills/lead-magnets/references/benchmarks.md +129 -0
  87. package/bundled-skills/lead-magnets/references/format-guide.md +196 -0
  88. package/bundled-skills/memory-systems/SKILL.md +1 -1
  89. package/bundled-skills/obsidian-bases/SKILL.md +506 -0
  90. package/bundled-skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +173 -0
  91. package/bundled-skills/obsidian-cli/SKILL.md +115 -0
  92. package/bundled-skills/obsidian-markdown/SKILL.md +205 -0
  93. package/bundled-skills/obsidian-markdown/references/CALLOUTS.md +58 -0
  94. package/bundled-skills/obsidian-markdown/references/EMBEDS.md +63 -0
  95. package/bundled-skills/obsidian-markdown/references/PROPERTIES.md +61 -0
  96. package/bundled-skills/product-marketing-context/SKILL.md +250 -0
  97. package/bundled-skills/product-marketing-context/evals/evals.json +85 -0
  98. package/bundled-skills/react-best-practices/SKILL.md +1 -1
  99. package/bundled-skills/revops/SKILL.md +352 -0
  100. package/bundled-skills/revops/evals/evals.json +91 -0
  101. package/bundled-skills/revops/references/automation-playbooks.md +290 -0
  102. package/bundled-skills/revops/references/lifecycle-definitions.md +278 -0
  103. package/bundled-skills/revops/references/routing-rules.md +203 -0
  104. package/bundled-skills/revops/references/scoring-models.md +247 -0
  105. package/bundled-skills/sales-enablement/SKILL.md +358 -0
  106. package/bundled-skills/sales-enablement/evals/evals.json +91 -0
  107. package/bundled-skills/sales-enablement/references/deck-frameworks.md +263 -0
  108. package/bundled-skills/sales-enablement/references/demo-scripts.md +355 -0
  109. package/bundled-skills/sales-enablement/references/objection-library.md +270 -0
  110. package/bundled-skills/sales-enablement/references/one-pager-templates.md +208 -0
  111. package/bundled-skills/seo/SKILL.md +139 -0
  112. package/bundled-skills/seo/references/cwv-thresholds.md +108 -0
  113. package/bundled-skills/seo/references/eeat-framework.md +214 -0
  114. package/bundled-skills/seo/references/quality-gates.md +155 -0
  115. package/bundled-skills/seo/references/schema-types.md +118 -0
  116. package/bundled-skills/seo-competitor-pages/SKILL.md +229 -0
  117. package/bundled-skills/seo-content/SKILL.md +186 -0
  118. package/bundled-skills/seo-dataforseo/SKILL.md +395 -0
  119. package/bundled-skills/seo-geo/SKILL.md +254 -0
  120. package/bundled-skills/seo-hreflang/SKILL.md +209 -0
  121. package/bundled-skills/seo-image-gen/SKILL.md +183 -0
  122. package/bundled-skills/seo-images/SKILL.md +193 -0
  123. package/bundled-skills/seo-page/SKILL.md +103 -0
  124. package/bundled-skills/seo-plan/SKILL.md +136 -0
  125. package/bundled-skills/seo-plan/assets/agency.md +175 -0
  126. package/bundled-skills/seo-plan/assets/ecommerce.md +167 -0
  127. package/bundled-skills/seo-plan/assets/generic.md +144 -0
  128. package/bundled-skills/seo-plan/assets/local-service.md +160 -0
  129. package/bundled-skills/seo-plan/assets/publisher.md +153 -0
  130. package/bundled-skills/seo-plan/assets/saas.md +135 -0
  131. package/bundled-skills/seo-programmatic/SKILL.md +184 -0
  132. package/bundled-skills/seo-schema/SKILL.md +178 -0
  133. package/bundled-skills/seo-sitemap/SKILL.md +129 -0
  134. package/bundled-skills/seo-technical/SKILL.md +175 -0
  135. package/bundled-skills/site-architecture/SKILL.md +366 -0
  136. package/bundled-skills/site-architecture/evals/evals.json +88 -0
  137. package/bundled-skills/site-architecture/references/mermaid-templates.md +216 -0
  138. package/bundled-skills/site-architecture/references/navigation-patterns.md +305 -0
  139. package/bundled-skills/site-architecture/references/site-type-templates.md +293 -0
  140. package/bundled-skills/skill-improver/SKILL.md +1 -1
  141. package/bundled-skills/tavily-web/SKILL.md +1 -1
  142. package/bundled-skills/test-fixing/SKILL.md +1 -1
  143. package/bundled-skills/tool-design/SKILL.md +1 -1
  144. package/bundled-skills/ui-ux-pro-max/SKILL.md +1 -1
  145. package/bundled-skills/verification-before-completion/SKILL.md +1 -1
  146. package/bundled-skills/wiki-changelog/SKILL.md +1 -1
  147. package/bundled-skills/wiki-onboarding/SKILL.md +1 -1
  148. package/bundled-skills/wiki-qa/SKILL.md +1 -1
  149. package/bundled-skills/wiki-researcher/SKILL.md +1 -1
  150. package/bundled-skills/wiki-vitepress/SKILL.md +1 -1
  151. package/package.json +1 -1
@@ -0,0 +1,205 @@
1
+ # HTTP Error Codes Reference
2
+
3
+ This file documents HTTP error codes returned by the Claude API, their common causes, and how to handle them. For language-specific error handling examples, see the `python/` or `typescript/` folders.
4
+
5
+ ## Error Code Summary
6
+
7
+ | Code | Error Type | Retryable | Common Cause |
8
+ | ---- | ----------------------- | --------- | ------------------------------------ |
9
+ | 400 | `invalid_request_error` | No | Invalid request format or parameters |
10
+ | 401 | `authentication_error` | No | Invalid or missing API key |
11
+ | 403 | `permission_error` | No | API key lacks permission |
12
+ | 404 | `not_found_error` | No | Invalid endpoint or model ID |
13
+ | 413 | `request_too_large` | No | Request exceeds size limits |
14
+ | 429 | `rate_limit_error` | Yes | Too many requests |
15
+ | 500 | `api_error` | Yes | Anthropic service issue |
16
+ | 529 | `overloaded_error` | Yes | API is temporarily overloaded |
17
+
18
+ ## Detailed Error Information
19
+
20
+ ### 400 Bad Request
21
+
22
+ **Causes:**
23
+
24
+ - Malformed JSON in request body
25
+ - Missing required parameters (`model`, `max_tokens`, `messages`)
26
+ - Invalid parameter types (e.g., string where integer expected)
27
+ - Empty messages array
28
+ - Messages not alternating user/assistant
29
+
30
+ **Example error:**
31
+
32
+ ```json
33
+ {
34
+ "type": "error",
35
+ "error": {
36
+ "type": "invalid_request_error",
37
+ "message": "messages: roles must alternate between \"user\" and \"assistant\""
38
+ }
39
+ }
40
+ ```
41
+
42
+ **Fix:** Validate request structure before sending. Check that:
43
+
44
+ - `model` is a valid model ID
45
+ - `max_tokens` is a positive integer
46
+ - `messages` array is non-empty and alternates correctly
47
+
48
+ ---
49
+
50
+ ### 401 Unauthorized
51
+
52
+ **Causes:**
53
+
54
+ - Missing `x-api-key` header or `Authorization` header
55
+ - Invalid API key format
56
+ - Revoked or deleted API key
57
+
58
+ **Fix:** Ensure `ANTHROPIC_API_KEY` environment variable is set correctly.
59
+
60
+ ---
61
+
62
+ ### 403 Forbidden
63
+
64
+ **Causes:**
65
+
66
+ - API key doesn't have access to the requested model
67
+ - Organization-level restrictions
68
+ - Attempting to access beta features without beta access
69
+
70
+ **Fix:** Check your API key permissions in the Console. You may need a different API key or to request access to specific features.
71
+
72
+ ---
73
+
74
+ ### 404 Not Found
75
+
76
+ **Causes:**
77
+
78
+ - Typo in model ID (e.g., `claude-sonnet-4.6` instead of `claude-sonnet-4-6`)
79
+ - Using deprecated model ID
80
+ - Invalid API endpoint
81
+
82
+ **Fix:** Use exact model IDs from the models documentation. You can use aliases (e.g., `claude-opus-4-6`).
83
+
84
+ ---
85
+
86
+ ### 413 Request Too Large
87
+
88
+ **Causes:**
89
+
90
+ - Request body exceeds maximum size
91
+ - Too many tokens in input
92
+ - Image data too large
93
+
94
+ **Fix:** Reduce input size — truncate conversation history, compress/resize images, or split large documents into chunks.
95
+
96
+ ---
97
+
98
+ ### 400 Validation Errors
99
+
100
+ Some 400 errors are specifically related to parameter validation:
101
+
102
+ - `max_tokens` exceeds model's limit
103
+ - Invalid `temperature` value (must be 0.0-1.0)
104
+ - `budget_tokens` >= `max_tokens` in extended thinking
105
+ - Invalid tool definition schema
106
+
107
+ **Common mistake with extended thinking:**
108
+
109
+ ```
110
+ # Wrong: budget_tokens must be < max_tokens
111
+ thinking: budget_tokens=10000, max_tokens=1000 → Error!
112
+
113
+ # Correct
114
+ thinking: budget_tokens=10000, max_tokens=16000
115
+ ```
116
+
117
+ ---
118
+
119
+ ### 429 Rate Limited
120
+
121
+ **Causes:**
122
+
123
+ - Exceeded requests per minute (RPM)
124
+ - Exceeded tokens per minute (TPM)
125
+ - Exceeded tokens per day (TPD)
126
+
127
+ **Headers to check:**
128
+
129
+ - `retry-after`: Seconds to wait before retrying
130
+ - `x-ratelimit-limit-*`: Your limits
131
+ - `x-ratelimit-remaining-*`: Remaining quota
132
+
133
+ **Fix:** The Anthropic SDKs automatically retry 429 and 5xx errors with exponential backoff (default: `max_retries=2`). For custom retry behavior, see the language-specific error handling examples.
134
+
135
+ ---
136
+
137
+ ### 500 Internal Server Error
138
+
139
+ **Causes:**
140
+
141
+ - Temporary Anthropic service issue
142
+ - Bug in API processing
143
+
144
+ **Fix:** Retry with exponential backoff. If persistent, check [status.anthropic.com](https://status.anthropic.com).
145
+
146
+ ---
147
+
148
+ ### 529 Overloaded
149
+
150
+ **Causes:**
151
+
152
+ - High API demand
153
+ - Service capacity reached
154
+
155
+ **Fix:** Retry with exponential backoff. Consider using a different model (Haiku is often less loaded), spreading requests over time, or implementing request queuing.
156
+
157
+ ---
158
+
159
+ ## Common Mistakes and Fixes
160
+
161
+ | Mistake | Error | Fix |
162
+ | ------------------------------- | ---------------- | ------------------------------------------------------- |
163
+ | `budget_tokens` >= `max_tokens` | 400 | Ensure `budget_tokens` < `max_tokens` |
164
+ | Typo in model ID | 404 | Use valid model ID like `claude-opus-4-6` |
165
+ | First message is `assistant` | 400 | First message must be `user` |
166
+ | Consecutive same-role messages | 400 | Alternate `user` and `assistant` |
167
+ | API key in code | 401 (leaked key) | Use environment variable |
168
+ | Custom retry needs | 429/5xx | SDK retries automatically; customize with `max_retries` |
169
+
170
+ ## Typed Exceptions in SDKs
171
+
172
+ **Always use the SDK's typed exception classes** instead of checking error messages with string matching. Each HTTP error code maps to a specific exception class:
173
+
174
+ | HTTP Code | TypeScript Class | Python Class |
175
+ | --------- | --------------------------------- | --------------------------------- |
176
+ | 400 | `Anthropic.BadRequestError` | `anthropic.BadRequestError` |
177
+ | 401 | `Anthropic.AuthenticationError` | `anthropic.AuthenticationError` |
178
+ | 403 | `Anthropic.PermissionDeniedError` | `anthropic.PermissionDeniedError` |
179
+ | 404 | `Anthropic.NotFoundError` | `anthropic.NotFoundError` |
180
+ | 429 | `Anthropic.RateLimitError` | `anthropic.RateLimitError` |
181
+ | 500+ | `Anthropic.InternalServerError` | `anthropic.InternalServerError` |
182
+ | Any | `Anthropic.APIError` | `anthropic.APIError` |
183
+
184
+ ```typescript
185
+ // ✅ Correct: use typed exceptions
186
+ try {
187
+ const response = await client.messages.create({...});
188
+ } catch (error) {
189
+ if (error instanceof Anthropic.RateLimitError) {
190
+ // Handle rate limiting
191
+ } else if (error instanceof Anthropic.APIError) {
192
+ console.error(`API error ${error.status}:`, error.message);
193
+ }
194
+ }
195
+
196
+ // ❌ Wrong: don't check error messages with string matching
197
+ try {
198
+ const response = await client.messages.create({...});
199
+ } catch (error) {
200
+ const msg = error instanceof Error ? error.message : String(error);
201
+ if (msg.includes("429") || msg.includes("rate_limit")) { ... }
202
+ }
203
+ ```
204
+
205
+ All exception classes extend `Anthropic.APIError`, which has a `status` property. Use `instanceof` checks from most specific to least specific (e.g., check `RateLimitError` before `APIError`).
@@ -0,0 +1,121 @@
1
+ # Live Documentation Sources
2
+
3
+ This file contains WebFetch URLs for fetching current information from platform.claude.com and Agent SDK repositories. Use these when users need the latest data that may have changed since the cached content was last updated.
4
+
5
+ ## When to Use WebFetch
6
+
7
+ - User explicitly asks for "latest" or "current" information
8
+ - Cached data seems incorrect
9
+ - User asks about features not covered in cached content
10
+ - User needs specific API details or examples
11
+
12
+ ## Claude API Documentation URLs
13
+
14
+ ### Models & Pricing
15
+
16
+ | Topic | URL | Extraction Prompt |
17
+ | --------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
18
+ | Models Overview | `https://platform.claude.com/docs/en/about-claude/models/overview.md` | "Extract current model IDs, context windows, and pricing for all Claude models" |
19
+ | Pricing | `https://platform.claude.com/docs/en/pricing.md` | "Extract current pricing per million tokens for input and output" |
20
+
21
+ ### Core Features
22
+
23
+ | Topic | URL | Extraction Prompt |
24
+ | ----------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
25
+ | Extended Thinking | `https://platform.claude.com/docs/en/build-with-claude/extended-thinking.md` | "Extract extended thinking parameters, budget_tokens requirements, and usage examples" |
26
+ | Adaptive Thinking | `https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking.md` | "Extract adaptive thinking setup, effort levels, and Claude Opus 4.6 usage examples" |
27
+ | Effort Parameter | `https://platform.claude.com/docs/en/build-with-claude/effort.md` | "Extract effort levels, cost-quality tradeoffs, and interaction with thinking" |
28
+ | Tool Use | `https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview.md` | "Extract tool definition schema, tool_choice options, and handling tool results" |
29
+ | Streaming | `https://platform.claude.com/docs/en/build-with-claude/streaming.md` | "Extract streaming event types, SDK examples, and best practices" |
30
+ | Prompt Caching | `https://platform.claude.com/docs/en/build-with-claude/prompt-caching.md` | "Extract cache_control usage, pricing benefits, and implementation examples" |
31
+
32
+ ### Media & Files
33
+
34
+ | Topic | URL | Extraction Prompt |
35
+ | ----------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------- |
36
+ | Vision | `https://platform.claude.com/docs/en/build-with-claude/vision.md` | "Extract supported image formats, size limits, and code examples" |
37
+ | PDF Support | `https://platform.claude.com/docs/en/build-with-claude/pdf-support.md` | "Extract PDF handling capabilities, limits, and examples" |
38
+
39
+ ### API Operations
40
+
41
+ | Topic | URL | Extraction Prompt |
42
+ | ---------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
43
+ | Batch Processing | `https://platform.claude.com/docs/en/build-with-claude/batch-processing.md` | "Extract batch API endpoints, request format, and polling for results" |
44
+ | Files API | `https://platform.claude.com/docs/en/build-with-claude/files.md` | "Extract file upload, download, and referencing in messages, including supported types and beta header" |
45
+ | Token Counting | `https://platform.claude.com/docs/en/build-with-claude/token-counting.md` | "Extract token counting API usage and examples" |
46
+ | Rate Limits | `https://platform.claude.com/docs/en/api/rate-limits.md` | "Extract current rate limits by tier and model" |
47
+ | Errors | `https://platform.claude.com/docs/en/api/errors.md` | "Extract HTTP error codes, meanings, and retry guidance" |
48
+
49
+ ### Tools
50
+
51
+ | Topic | URL | Extraction Prompt |
52
+ | -------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
53
+ | Code Execution | `https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool.md` | "Extract code execution tool setup, file upload, container reuse, and response handling" |
54
+ | Computer Use | `https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use.md` | "Extract computer use tool setup, capabilities, and implementation examples" |
55
+
56
+ ### Advanced Features
57
+
58
+ | Topic | URL | Extraction Prompt |
59
+ | ------------------ | ----------------------------------------------------------------------------- | --------------------------------------------------- |
60
+ | Structured Outputs | `https://platform.claude.com/docs/en/build-with-claude/structured-outputs.md` | "Extract output_config.format usage and schema enforcement" |
61
+ | Compaction | `https://platform.claude.com/docs/en/build-with-claude/compaction.md` | "Extract compaction setup, trigger config, and streaming with compaction" |
62
+ | Citations | `https://platform.claude.com/docs/en/build-with-claude/citations.md` | "Extract citation format and implementation" |
63
+ | Context Windows | `https://platform.claude.com/docs/en/build-with-claude/context-windows.md` | "Extract context window sizes and token management" |
64
+
65
+ ---
66
+
67
+ ## Claude API SDK Repositories
68
+
69
+ | SDK | URL | Description |
70
+ | ---------- | --------------------------------------------------------- | ------------------------------ |
71
+ | Python | `https://github.com/anthropics/anthropic-sdk-python` | `anthropic` pip package source |
72
+ | TypeScript | `https://github.com/anthropics/anthropic-sdk-typescript` | `@anthropic-ai/sdk` npm source |
73
+ | Java | `https://github.com/anthropics/anthropic-sdk-java` | `anthropic-java` Maven source |
74
+ | Go | `https://github.com/anthropics/anthropic-sdk-go` | Go module source |
75
+ | Ruby | `https://github.com/anthropics/anthropic-sdk-ruby` | `anthropic` gem source |
76
+ | C# | `https://github.com/anthropics/anthropic-sdk-csharp` | NuGet package source |
77
+ | PHP | `https://github.com/anthropics/anthropic-sdk-php` | Composer package source |
78
+
79
+ ---
80
+
81
+ ## Agent SDK Documentation URLs
82
+
83
+ ### Core Documentation
84
+
85
+ | Topic | URL | Extraction Prompt |
86
+ | -------------------- | ----------------------------------------------------------- | --------------------------------------------------------------- |
87
+ | Agent SDK Overview | `https://platform.claude.com/docs/en/agent-sdk.md` | "Extract the Agent SDK overview, key features, and use cases" |
88
+ | Agent SDK Python | `https://github.com/anthropics/claude-agent-sdk-python` | "Extract Python SDK installation, imports, and basic usage" |
89
+ | Agent SDK TypeScript | `https://github.com/anthropics/claude-agent-sdk-typescript` | "Extract TypeScript SDK installation, imports, and basic usage" |
90
+
91
+ ### SDK Reference (GitHub READMEs)
92
+
93
+ | Topic | URL | Extraction Prompt |
94
+ | -------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
95
+ | Python SDK | `https://raw.githubusercontent.com/anthropics/claude-agent-sdk-python/main/README.md` | "Extract Python SDK API reference, classes, and methods" |
96
+ | TypeScript SDK | `https://raw.githubusercontent.com/anthropics/claude-agent-sdk-typescript/main/README.md` | "Extract TypeScript SDK API reference, types, and functions" |
97
+
98
+ ### npm/PyPI Packages
99
+
100
+ | Package | URL | Description |
101
+ | ----------------------------------- | -------------------------------------------------------------- | ------------------------- |
102
+ | claude-agent-sdk (Python) | `https://pypi.org/project/claude-agent-sdk/` | Python package on PyPI |
103
+ | @anthropic-ai/claude-agent-sdk (TS) | `https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk` | TypeScript package on npm |
104
+
105
+ ### GitHub Repositories
106
+
107
+ | Resource | URL | Description |
108
+ | -------------- | ----------------------------------------------------------- | ----------------------------------- |
109
+ | Python SDK | `https://github.com/anthropics/claude-agent-sdk-python` | Python package source |
110
+ | TypeScript SDK | `https://github.com/anthropics/claude-agent-sdk-typescript` | TypeScript/Node.js package source |
111
+ | MCP Servers | `https://github.com/modelcontextprotocol` | Official MCP server implementations |
112
+
113
+ ---
114
+
115
+ ## Fallback Strategy
116
+
117
+ If WebFetch fails (network issues, URL changed):
118
+
119
+ 1. Use cached content from the language-specific files (note the cache date)
120
+ 2. Inform user the data may be outdated
121
+ 3. Suggest they check platform.claude.com or the GitHub repos directly
@@ -0,0 +1,68 @@
1
+ # Claude Model Catalog
2
+
3
+ **Only use exact model IDs listed in this file.** Never guess or construct model IDs — incorrect IDs will cause API errors. Use aliases wherever available. For the latest information, WebFetch the Models Overview URL in `shared/live-sources.md`.
4
+
5
+ ## Current Models (recommended)
6
+
7
+ | Friendly Name | Alias (use this) | Full ID | Context | Max Output | Status |
8
+ |-------------------|---------------------|-------------------------------|----------------|------------|--------|
9
+ | Claude Opus 4.6 | `claude-opus-4-6` | — | 200K (1M beta) | 128K | Active |
10
+ | Claude Sonnet 4.6 | `claude-sonnet-4-6` | - | 200K (1M beta) | 64K | Active |
11
+ | Claude Haiku 4.5 | `claude-haiku-4-5` | `claude-haiku-4-5-20251001` | 200K | 64K | Active |
12
+
13
+ ### Model Descriptions
14
+
15
+ - **Claude Opus 4.6** — Our most intelligent model for building agents and coding. Supports adaptive thinking (recommended), 128K max output tokens (requires streaming for large outputs). 1M context window available in beta via `context-1m-2025-08-07` header.
16
+ - **Claude Sonnet 4.6** — Our best combination of speed and intelligence. Supports adaptive thinking (recommended). 1M context window available in beta via `context-1m-2025-08-07` header. 64K max output tokens.
17
+ - **Claude Haiku 4.5** — Fastest and most cost-effective model for simple tasks.
18
+
19
+ ## Legacy Models (still active)
20
+
21
+ | Friendly Name | Alias (use this) | Full ID | Status |
22
+ |-------------------|---------------------|-------------------------------|--------|
23
+ | Claude Opus 4.5 | `claude-opus-4-5` | `claude-opus-4-5-20251101` | Active |
24
+ | Claude Opus 4.1 | `claude-opus-4-1` | `claude-opus-4-1-20250805` | Active |
25
+ | Claude Sonnet 4.5 | `claude-sonnet-4-5` | `claude-sonnet-4-5-20250929` | Active |
26
+ | Claude Sonnet 4 | `claude-sonnet-4-0` | `claude-sonnet-4-20250514` | Active |
27
+ | Claude Opus 4 | `claude-opus-4-0` | `claude-opus-4-20250514` | Active |
28
+
29
+ ## Deprecated Models (retiring soon)
30
+
31
+ | Friendly Name | Alias (use this) | Full ID | Status |
32
+ |-------------------|---------------------|-------------------------------|------------|
33
+ | Claude Haiku 3 | — | `claude-3-haiku-20240307` | Deprecated |
34
+
35
+ ## Retired Models (no longer available)
36
+
37
+ | Friendly Name | Full ID | Retired |
38
+ |-------------------|-------------------------------|-------------|
39
+ | Claude Sonnet 3.7 | `claude-3-7-sonnet-20250219` | Feb 19, 2026 |
40
+ | Claude Haiku 3.5 | `claude-3-5-haiku-20241022` | Feb 19, 2026 |
41
+ | Claude Opus 3 | `claude-3-opus-20240229` | Jan 5, 2026 |
42
+ | Claude Sonnet 3.5 | `claude-3-5-sonnet-20241022` | Oct 28, 2025 |
43
+ | Claude Sonnet 3.5 | `claude-3-5-sonnet-20240620` | Oct 28, 2025 |
44
+ | Claude Sonnet 3 | `claude-3-sonnet-20240229` | Jul 21, 2025 |
45
+ | Claude 2.1 | `claude-2.1` | Jul 21, 2025 |
46
+ | Claude 2.0 | `claude-2.0` | Jul 21, 2025 |
47
+
48
+ ## Resolving User Requests
49
+
50
+ When a user asks for a model by name, use this table to find the correct model ID:
51
+
52
+ | User says... | Use this model ID |
53
+ |-------------------------------------------|--------------------------------|
54
+ | "opus", "most powerful" | `claude-opus-4-6` |
55
+ | "opus 4.6" | `claude-opus-4-6` |
56
+ | "opus 4.5" | `claude-opus-4-5` |
57
+ | "opus 4.1" | `claude-opus-4-1` |
58
+ | "opus 4", "opus 4.0" | `claude-opus-4-0` |
59
+ | "sonnet", "balanced" | `claude-sonnet-4-6` |
60
+ | "sonnet 4.6" | `claude-sonnet-4-6` |
61
+ | "sonnet 4.5" | `claude-sonnet-4-5` |
62
+ | "sonnet 4", "sonnet 4.0" | `claude-sonnet-4-0` |
63
+ | "sonnet 3.7" | Retired — suggest `claude-sonnet-4-5` |
64
+ | "sonnet 3.5" | Retired — suggest `claude-sonnet-4-5` |
65
+ | "haiku", "fast", "cheap" | `claude-haiku-4-5` |
66
+ | "haiku 4.5" | `claude-haiku-4-5` |
67
+ | "haiku 3.5" | Retired — suggest `claude-haiku-4-5` |
68
+ | "haiku 3" | Deprecated — suggest `claude-haiku-4-5` |