aicore-sdk-js
БесплатноЗапускает вложенные скриптыНе проверенGenerate working TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk/orchestration, @sap-ai-sdk/foundation-models, @sap-ai-sdk/openai…
от SAP★ 162 звезды на GitHubОб этом скилле
Rules
- If no deployment URL is known, check the SAP AI Core console or contact your admin to list or create one before generating code.
- Always include
aicore configurecredential guidance in generated code comments; link to Connecting to AI Core for setup details. - JS/TS lifecycle management (create/list/delete deployments) is not available in this skill — use the SAP AI Core console or contact your admin for deployment management.
- Target
@sap-ai-sdkv2 (orchestration2.14+). The preferred invocation pattern is passingmessagesdirectly tochatCompletion()/stream(). Only usepromptTemplating.prompt.templatewith{{?placeholder}}values when the user explicitly wants a server-side reusable template. Never emit the v1 shapellm: { model_name }/templating: { template }— it does not compile against v2. - Never emit Python code snippets — this skill is JS/TS only. If the user asks for Python, inform them that no Python skill is available in this repo and point them to https://sap.github.io/ai-sdk/ for Python SDK guidance.
- Gather these details before generating code — ask only for what the user hasn't provided:
- Framework:
@sap-ai-sdk/*(recommended) /@sap-ai-sdk/langchain(LangChain)? - Use case: chat / streaming / embeddings?
- Runtime: Node.js / Bun / browser?
- Model + Deployment ID: check the SAP AI Core console for existing deployments
- Model-switching intent (ask only when the user specifies an OpenAI model like gpt-4o, gpt-4.1, etc.): do they plan to switch models later (e.g. to Claude or Gemini)? If yes → recommend
@sap-ai-sdk/orchestrationfor portability. If they want to stay on OpenAI → use@sap-ai-sdk/openai(SapOpenAi.createClient) as the simpler native OpenAI SDK alternative.
- Framework:
Sources & Fallback
Use the best source available, in this order. Never block on a source that isn't present.
- Baked-in reference (always available).
references/SDK_JS.mdandassets/*.tsare 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 MCP (use if available). If the
context7query-docstool 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. - Web docs (last resort). For anything neither source covers, point to llms.txt or fetch the online docs.
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.
Asset Map
| 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 |
Установить aicore-sdk-js в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aicore-sdk-js?
Generate working TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk/orchestration, @sap-ai-sdk/foundation-models, @sap-ai-sdk/openai (native OpenAI SDK), @sap-ai-sdk/langchain (LangChain), @sap-ai-sdk/document-grounding (RAG), @sap-ai-sdk/prompt-registry, @sap-ai-sdk/llm-batch (batch jobs), @sap-ai-sdk/rpt (tabular prediction), or @sap-ai-sdk/context-registry (data destinations, tabular artifacts, scenario configurations). WHEN: user asks for TypeScript, JavaScript, Node.js, or JS/TS code that calls a GenAI Hub model, wants a TypeScript starter project, asks how to use @sap-ai-sdk in their app, asks how to use LangChain (JS/TS) with SAP AI Core, or wants JS/TS for RAG/document-grounding, prompt templates, batch LLM jobs, tabular (RPT) prediction, or managing data destinations / tabular artifacts / scenario configurations via the Context Registry. DO NOT USE FOR: Java code — use `aicore-sdk-java`.
Как установить скилл aicore-sdk-js?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aicore-sdk-js запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic