claudeApiContent.ts
skills/bundled/claudeApiContent.ts
76
Lines
4280
Bytes
3
Exports
26
Imports
10
Keywords
What this is
This page documents one file from the repository and includes its full source so you can read it without leaving the docs site.
Beginner explanation
This file is one piece of the larger system. Its name, directory, imports, and exports show where it fits. Start by reading the exports and related files first.
How it is used
Start from the exports list and related files. Those are the easiest clues for where this file fits into the system.
Expert explanation
Architecturally, this file intersects with integrations. It contains 76 lines, 26 detected imports, and 3 detected exports.
Important relationships
Detected exports
SKILL_MODEL_VARSSKILL_PROMPTSKILL_FILES
Keywords
claude-apipythontypescriptsharedagent-sdkreadmeskillmodelspatternsbatches
Detected imports
./claude-api/csharp/claude-api.md./claude-api/curl/examples.md./claude-api/go/claude-api.md./claude-api/java/claude-api.md./claude-api/php/claude-api.md./claude-api/python/agent-sdk/patterns.md./claude-api/python/agent-sdk/README.md./claude-api/python/claude-api/batches.md./claude-api/python/claude-api/files-api.md./claude-api/python/claude-api/README.md./claude-api/python/claude-api/streaming.md./claude-api/python/claude-api/tool-use.md./claude-api/ruby/claude-api.md./claude-api/SKILL.md./claude-api/shared/error-codes.md./claude-api/shared/live-sources.md./claude-api/shared/models.md./claude-api/shared/prompt-caching.md./claude-api/shared/tool-use-concepts.md./claude-api/typescript/agent-sdk/patterns.md./claude-api/typescript/agent-sdk/README.md./claude-api/typescript/claude-api/batches.md./claude-api/typescript/claude-api/files-api.md./claude-api/typescript/claude-api/README.md./claude-api/typescript/claude-api/streaming.md./claude-api/typescript/claude-api/tool-use.md
Source notes
This page embeds the full file contents. Small or leaf files are still indexed honestly instead of being over-explained.
Full source
// Content for the claude-api bundled skill.
// Each .md file is inlined as a string at build time via Bun's text loader.
import csharpClaudeApi from './claude-api/csharp/claude-api.md'
import curlExamples from './claude-api/curl/examples.md'
import goClaudeApi from './claude-api/go/claude-api.md'
import javaClaudeApi from './claude-api/java/claude-api.md'
import phpClaudeApi from './claude-api/php/claude-api.md'
import pythonAgentSdkPatterns from './claude-api/python/agent-sdk/patterns.md'
import pythonAgentSdkReadme from './claude-api/python/agent-sdk/README.md'
import pythonClaudeApiBatches from './claude-api/python/claude-api/batches.md'
import pythonClaudeApiFilesApi from './claude-api/python/claude-api/files-api.md'
import pythonClaudeApiReadme from './claude-api/python/claude-api/README.md'
import pythonClaudeApiStreaming from './claude-api/python/claude-api/streaming.md'
import pythonClaudeApiToolUse from './claude-api/python/claude-api/tool-use.md'
import rubyClaudeApi from './claude-api/ruby/claude-api.md'
import skillPrompt from './claude-api/SKILL.md'
import sharedErrorCodes from './claude-api/shared/error-codes.md'
import sharedLiveSources from './claude-api/shared/live-sources.md'
import sharedModels from './claude-api/shared/models.md'
import sharedPromptCaching from './claude-api/shared/prompt-caching.md'
import sharedToolUseConcepts from './claude-api/shared/tool-use-concepts.md'
import typescriptAgentSdkPatterns from './claude-api/typescript/agent-sdk/patterns.md'
import typescriptAgentSdkReadme from './claude-api/typescript/agent-sdk/README.md'
import typescriptClaudeApiBatches from './claude-api/typescript/claude-api/batches.md'
import typescriptClaudeApiFilesApi from './claude-api/typescript/claude-api/files-api.md'
import typescriptClaudeApiReadme from './claude-api/typescript/claude-api/README.md'
import typescriptClaudeApiStreaming from './claude-api/typescript/claude-api/streaming.md'
import typescriptClaudeApiToolUse from './claude-api/typescript/claude-api/tool-use.md'
// @[MODEL LAUNCH]: Update the model IDs/names below. These are substituted into {{VAR}}
// placeholders in the .md files at runtime before the skill prompt is sent.
// After updating these constants, manually update the two files that still hardcode models:
// - claude-api/SKILL.md (Current Models pricing table)
// - claude-api/shared/models.md (full model catalog with legacy versions and alias mappings)
export const SKILL_MODEL_VARS = {
OPUS_ID: 'claude-opus-4-6',
OPUS_NAME: 'Claude Opus 4.6',
SONNET_ID: 'claude-sonnet-4-6',
SONNET_NAME: 'Claude Sonnet 4.6',
HAIKU_ID: 'claude-haiku-4-5',
HAIKU_NAME: 'Claude Haiku 4.5',
// Previous Sonnet ID — used in "do not append date suffixes" example in SKILL.md.
PREV_SONNET_ID: 'claude-sonnet-4-5',
} satisfies Record<string, string>
export const SKILL_PROMPT: string = skillPrompt
export const SKILL_FILES: Record<string, string> = {
'csharp/claude-api.md': csharpClaudeApi,
'curl/examples.md': curlExamples,
'go/claude-api.md': goClaudeApi,
'java/claude-api.md': javaClaudeApi,
'php/claude-api.md': phpClaudeApi,
'python/agent-sdk/README.md': pythonAgentSdkReadme,
'python/agent-sdk/patterns.md': pythonAgentSdkPatterns,
'python/claude-api/README.md': pythonClaudeApiReadme,
'python/claude-api/batches.md': pythonClaudeApiBatches,
'python/claude-api/files-api.md': pythonClaudeApiFilesApi,
'python/claude-api/streaming.md': pythonClaudeApiStreaming,
'python/claude-api/tool-use.md': pythonClaudeApiToolUse,
'ruby/claude-api.md': rubyClaudeApi,
'shared/error-codes.md': sharedErrorCodes,
'shared/live-sources.md': sharedLiveSources,
'shared/models.md': sharedModels,
'shared/prompt-caching.md': sharedPromptCaching,
'shared/tool-use-concepts.md': sharedToolUseConcepts,
'typescript/agent-sdk/README.md': typescriptAgentSdkReadme,
'typescript/agent-sdk/patterns.md': typescriptAgentSdkPatterns,
'typescript/claude-api/README.md': typescriptClaudeApiReadme,
'typescript/claude-api/batches.md': typescriptClaudeApiBatches,
'typescript/claude-api/files-api.md': typescriptClaudeApiFilesApi,
'typescript/claude-api/streaming.md': typescriptClaudeApiStreaming,
'typescript/claude-api/tool-use.md': typescriptClaudeApiToolUse,
}