Generates TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk packages: orchestration, foundation-models, openai, langchain, document-grounding (RAG), prompt-registry, llm-batch, rpt, and context-registry.
Ships in aicore-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
aicore configure credential guidance in generated code comments; link to Connecting to AI Core for setup details.@sap-ai-sdk v2 (orchestration 2.14+). The preferred invocation pattern is passing messages directly to chatCompletion() / stream(). Only use promptTemplating.prompt.template with {{?placeholder}} values when the user explicitly wants a server-side reusable template. Never emit the v1 shape llm: { model_name } / templating: { template } — it does not compile against v2.@sap-ai-sdk/* (recommended) / @sap-ai-sdk/langchain (LangChain)?@sap-ai-sdk/orchestration for portability. If they want to stay on OpenAI → use @sap-ai-sdk/openai (SapOpenAi.createClient) as the simpler native OpenAI SDK alternative.Use the best source available, in this order. Never block on a source that isn't present.
references/SDK_JS.md and assets/*.ts are the
compile-checked v2 floor. They are correct for the common paths (chat, streaming, LangChain,
embeddings) and require no network or MCP. Use them by default.context7 query-docs tool is registered in
this session, prefer it for the freshest API, version-specific details, or any feature the
baked-in reference marks as fast-moving (tool calling, data masking, document grounding,
prompt registry). Library ID: /websites/sap_github_io_ai-sdk_js. If the tool is not
available, silently fall back to the baked-in reference — do not ask the user to install it.Do not fabricate API shapes from memory — this SDK's v1 and v2 APIs differ, and guessing reproduces stale v1 code. When unsure, use source 2 if present, else source 3.
| Use case | Template | Install |
|---|---|---|
Chat via @sap-ai-sdk/orchestration (recommended) | assets/chat_sap_sdk.ts | npm install @sap-ai-sdk/orchestration |
Streaming via @sap-ai-sdk/orchestration | assets/streaming.ts | npm install @sap-ai-sdk/orchestration |
| Native OpenAI SDK (chat/stream/embeds/Responses) | assets/openai_native.ts | npm install @sap-ai-sdk/openai openai zod |
LangChain via AzureOpenAiChatClient | assets/langchain_openai.ts | npm install @sap-ai-sdk/langchain @langchain/core |
LangChain via OrchestrationClient | assets/langchain_orchestration.ts | npm install @sap-ai-sdk/langchain @langchain/core |
| RAG / document grounding | assets/document_grounding.ts | npm install @sap-ai-sdk/document-grounding |
| Managed prompt templates | assets/prompt_registry.ts | npm install @sap-ai-sdk/prompt-registry |
| Batch LLM jobs | assets/llm_batch.ts | npm install @sap-ai-sdk/llm-batch @sap-ai-sdk/ai-api @sap-ai-sdk/foundation-models |
| Tabular prediction (SAP-RPT-1, not chat) | assets/rpt.ts | npm install @sap-ai-sdk/rpt |
| Context Registry (data destinations, tabular artifacts, scenario configs) | assets/context_registry.ts | npm install @sap-ai-sdk/context-registry |
| Tabular Orchestration (RPT predict via Scenario Config or inline context) | assets/tabular_orchestration.ts | npm install @sap-ai-sdk/tabular-orchestration |
Real-time speech/text via WebSocket (gpt-realtime) | assets/realtime.ts | npm install @sap-ai-sdk/openai openai ws |
# @sap-ai-sdk (recommended — native SAP SDK)
npm install @sap-ai-sdk/orchestration @sap-ai-sdk/foundation-models
# Native OpenAI SDK surface on AI Core
npm install @sap-ai-sdk/openai openai zod
# LangChain integration
npm install @sap-ai-sdk/langchain @langchain/core
# RAG, prompt templates, batch jobs, tabular prediction
npm install @sap-ai-sdk/document-grounding
npm install @sap-ai-sdk/prompt-registry
npm install @sap-ai-sdk/llm-batch @sap-ai-sdk/ai-api @sap-ai-sdk/foundation-models
npm install @sap-ai-sdk/rpt
# With bun
bun add @sap-ai-sdk/orchestration @sap-ai-sdk/foundation-models
Pass messages directly — this is the default pattern. Only use promptTemplating.prompt.template with {{?placeholder}} values when the user explicitly wants a reusable server-side template.
import { OrchestrationClient } from "@sap-ai-sdk/orchestration";
const client = new OrchestrationClient({
promptTemplating: {
model: {
name: "anthropic--claude-4.5-haiku",
params: { temperature: 0.7 },
},
},
});
const response = await client.chatCompletion({
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Hello!" },
],
});
console.log(response.getContent());
Run with: npx tsx index.ts or bun run index.ts
aicore-sdk-java| Trigger | Load |
|---|---|
@sap-ai-sdk/* API, OrchestrationClient, streaming | references/SDK_JS.md |
LangChain, AzureOpenAiChatClient, @sap-ai-sdk/langchain | references/SDK_JS.md |
Native OpenAI SDK, SapOpenAi, Responses API | references/SDK_JS.md |
| RAG, document grounding, prompt registry, batch, RPT | references/SDK_JS.md |
| Tool calling, data masking, grounding config internals | Context7 (if available), else references/SDK_JS.md |
README.md (opens in a new tab)assets/chat_sap_sdk.ts (opens in a new tab)assets/context_registry.ts (opens in a new tab)assets/document_grounding.ts (opens in a new tab)assets/langchain_openai.ts (opens in a new tab)assets/langchain_orchestration.ts (opens in a new tab)assets/llm_batch.ts (opens in a new tab)assets/openai_native.ts (opens in a new tab)assets/prompt_registry.ts (opens in a new tab)assets/realtime.ts (opens in a new tab)assets/rpt.ts (opens in a new tab)assets/streaming.ts (opens in a new tab)assets/tabular_orchestration.ts (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger_evals.json (opens in a new tab)references/SDK_JS.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/aicore-admin-resourcesVerify and configure SAP AI Core credentials, retrieve auth tokens, and manage resource groups. WHEN: user wants to check if AI Core is set up, configure credentials, get a Bearer token, fix authentication errors, run a setup health check, or list, create, update, or delete resource groups. DO NOT USE FOR: managing deployments — use `aicore-lifecycle-management`; listing foundation models — use `genai-hub-foundation-models`.
/aicore-lifecycle-managementManage SAP AI Core lifecycle resources: scenarios, executables, configurations, and deployments. WHEN: user wants to list or inspect scenarios or executables, create or list configurations, create or list or stop or delete or patch deployments, get deployment logs, or remove duplicate LLM deployments. DO NOT USE FOR: listing foundation models or getting inference examples — use `genai-hub-foundation-models`; managing resource groups, secrets, or GitOps resources — use `aicore-admin-resources`.
/aicore-sdk-javaGenerate working Java boilerplate for SAP GenAI Hub using the SAP AI SDK for Java (com.sap.ai.sdk). Covers chat completion, streaming, multi-turn conversations, prompt templates, content filtering, data masking, embeddings, RAG/grounding, prompt registry, and Spring Boot streaming. WHEN: user asks for Java or Kotlin code that calls a GenAI Hub model, wants a Java starter project, asks how to use com.sap.ai.sdk in their app, or asks how to integrate AI Core into a Spring Boot or plain Java application. DO NOT USE FOR: JavaScript/TypeScript code — use `aicore-sdk-js`.
/aicore-skills:aicore-sdk-jsfrom aicore-skills
npx claudepluginhub sap/ai-skills-library --plugin aicore-skillsOther plugins' skills for the same job