aicore-sdk-js

aicore-sdk-js is a skill for Claude Code, Codex from SAP/ai-skills-library. It costs 246 tokens per session (2,186 once invoked), scanned A, original, Apache-2.0.

A TypeScript and JavaScript code-generation guide for SAP GenAI Hub, SAP's hosted generative-AI platform. It covers SAP AI SDK libraries for chat, language models, document search, prompt templates, and batch jobs.

In plain words
What is it for?
Use it to create JS or TS examples for chat completions, streaming responses, multi-turn conversations, retrieval-augmented generation (RAG), prompt registries, and batch requests.
Why use it?
It helps you avoid outdated or non-working SDK code and reminds you what setup information is needed before generating an example.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create JS or TS examples for chat completions, streaming responses, multi-turn conversations, retrieval-augmented generation (RAG), prompt registries, and batch requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sap/ai-skills-library/aicore-sdk-js
About the project

SAP/ai-skills-library is a catalogue for discovering, filtering, and installing AI skills that support SAP digital assistants. SAP users and contributors can install listed skills with the skills CLI across compatible coding agents, while skill authors keep their implementations in their own public repositories and register them with the library. The catalogue contains five of the library's skills and its plugin.

SAP/ai-skills-library · 89 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SAP/ai-skills-library --skill aicore-sdk-js
Clone the repo
git clone --depth 1 https://github.com/SAP/ai-skills-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aicore-sdk-js

README.md
[![agentmods](https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-js/github.svg)](https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-js)
Your own site
<a href="https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-js"><img src="https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-js/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aicore-sdk-js

Your own site · 80×15
<a href="https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-js"><img src="https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-js.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00246 $0.02186
Opus 5.5 $0.00098 $0.00874
Sonnet 5.5 $0.00049 $0.00437
Haiku 4.5 $0.00025 $0.00219

Measured 2d ago against content hash b2d697011b99, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aicore-sdk-js scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (assets/chat_openai_proxy.ts, assets/chat_sap_sdk.ts, assets/context_registry.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aicore-sdk-js/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rules

  1. If no deployment URL is known, check the SAP AI Core console or contact your admin to list or create one before generating code.
  2. Always include aicore configure credential guidance in generated code comments; link to Connecting to AI Core for setup details.
  3. 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.
  4. Target @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.
  5. 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.
  6. 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) / OpenAI npm package via LiteLLM proxy?
    • 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/orchestration for portability. If they want to stay on OpenAI → use @sap-ai-sdk/openai (SapOpenAi.createClient) as the simpler native OpenAI SDK alternative; no LiteLLM proxy needed.

Sources & Fallback

Use the best source available, in this order. Never block on a source that isn't present.

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 147 lines · 246 tokens per session scan A b2d697011b99

Subscribe to this mod's changes

aicore-sdk-js is a skill published in the GitHub repository SAP/ai-skills-library (89 stars, last pushed 2d ago), licensed Apache-2.0. It adds 246 tokens to every session and 2,186 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

Other skills, from other repositories

developing-genkit-js

Develop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.

google/skills · 60 tokens

azure-search-documents-ts

Build search applications using Azure AI Search SDK for JavaScript (@azure/search-documents). Use when creating/managing indexes, implementing vector/hybrid search, semantic ranking, or building ag...

benjaminasterA/antigravity-awesome-skills · 43 tokens

migrate-from-ai-sdk

Use when porting an app from the Vercel AI SDK (ai, @ai-sdk/) to @deuz-sdk/core. Triggers include "migrate from the AI SDK", "replace ai with @deuz-sdk/core", "we use streamText/generateText/useChat and want to switch", removing @ai-sdk/openai or @ai-sdk/anthropic, porting a toUIMessageStreamResponse route, converting…

Deuz-AI/Deuz-SDK · 118 tokens

aws-sdk-java-v2-bedrock

Provides Amazon Bedrock patterns using AWS SDK for Java 2.x. Invokes foundation models (Claude, Llama, Titan), generates text and images, creates embeddings for RAG, streams real-time responses, and configures Spring Boot integration. Use when asking about Bedrock integration, Java SDK for AI models, AWS generative…

giuseppe-trisciuoglio/developer-kit · 92 tokens

langchain4j-ai-services-patterns

Provides patterns to build declarative AI Services with LangChain4j for LLM integration, chatbot development, AI agent implementation, and conversational AI in Java. Generates type-safe AI services using interface-based patterns, annotations, memory management, and tools integration. Use when creating AI-powered Java…

giuseppe-trisciuoglio/developer-kit · 85 tokens

vercel-ai-sdk

Decision guide for the Vercel AI SDK (ai and @ai-sdk/) in TypeScript, covering the version matrix, agent loop, structured output, tool approval, streaming, testing, and migration traps. Use when building or upgrading AI SDK code.

krzysztofsurdy/code-virtuoso · 59 tokens