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.
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.
npx skills add SAP/ai-skills-library --skill aicore-sdk-javagit clone --depth 1 https://github.com/SAP/ai-skills-libraryWrote 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.
[](https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-java)<a href="https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-java"><img src="https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-java/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.
<a href="https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-java"><img src="https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-java.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00135 | $0.01945 |
| Opus 5.5 | $0.00054 | $0.00778 |
| Sonnet 5.5 | $0.00027 | $0.00389 |
| Haiku 4.5 | $0.00014 | $0.00194 |
Grade A, and why
aicore-sdk-java 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.
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.
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sources & Fallback
Resolve answers in this priority order:
- Assets (
assets/directory) — check for a matching template first and serve it directly. Assets are always available offline and contain runnable, tested code. - Context7 MCP — if no asset matches, fetch live docs via Context7:
resolve-library-id: SAP/ai-sdk-java, thenget-library-docs. Context7 returns the most up-to-date API shapes straight from the repo. Silently fall back to step 3 if Context7 is not installed. references/SDK_JAVA.md— offline reference when Context7 is unavailable. Use this rather than guessing.
Do not fabricate class names, method signatures, or config shapes. If none of the three sources cover the question, say so and point the user to https://sap.github.io/ai-sdk/docs/java/ directly.
Rules
- If no deployment exists, check the SAP AI Core console or contact your admin to list or create one before generating code.
- Always include credential guidance in generated code comments; link to Connecting to AI Core for setup details.
- Use
OrchestrationAiModelconstants (e.g.OrchestrationAiModel.GPT_4O_MINI) — never raw model name strings. - Always use
OrchestrationClientas the primary client for chat, streaming, embeddings, grounding, and filtering.OpenAiClient(openaiartifact) is only for direct OpenAI proxy use cases — do not recommend it for general chat. - Streaming has two distinct APIs — use each correctly:
OrchestrationClient.streamChatCompletion()in a Spring Boot controller: always useResponseBodyEmitter+ThreadContextExecutors.getExecutor().execute()to forward deltas. Never useSseEmitter,Thread.ofVirtual(), or expose a rawFluxfrom the controller.- Spring AI
ChatModel.stream()(OrchestrationChatModel/OpenAiChatModel): this method is part of the Spring AIChatModelinterface and legitimately returnsFlux<ChatResponse>. Composing theFluxdirectly (e.g..doOnNext(…).blockLast()) is correct — do not replace it withResponseBodyEmitter.
- Gather these details before generating code — ask only for what the user hasn't provided:
- Use case: chat / streaming / multi-turn / embeddings / grounding / filtering?
- Model: check the SAP AI Core console or the SAP GenAI Hub documentation for available models
- Build tool: Maven or Gradle?
- Framework: plain Java / Spring Boot?
- For SDK bugs or unexpected runtime behavior: acknowledge the issue, share only verified workarounds from the assets or reference docs, and direct the user to https://github.com/SAP/ai-sdk-java/issues. Do not speculate about SDK internals or diagnose bugs not covered by a source above.
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/BatchOrchestration.java 3.7 KB
- assets/ChatOrchestration.java 1.4 KB
- assets/EmbeddingsOrchestration.java 1.6 KB
- assets/FilteringOrchestration.java 5.1 KB
- assets/GroundingOrchestration.java 2.0 KB
- assets/MaskingOrchestration.java 2.9 KB
- assets/MultiTurnOrchestration.java 1.6 KB
- assets/OpenAiNative.java 4.0 KB
- assets/PromptRegistryOrchestration.java 2.0 KB
- assets/RptOrchestration.java 3.8 KB
- assets/SpringAiOpenAi.java 2.3 KB
- assets/SpringAiOrchestration.java 2.4 KB
- assets/StreamingOrchestration.java 1.3 KB
- evals/evals.json 12 KB
- evals/trigger_evals.json 2.8 KB
- README.md 989 B
- references/SDK_JAVA.md 24 KB
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.
- 2d ago First seen · 150 lines · 135 tokens per session scan A c5c55d710e5f
aicore-sdk-java is a skill published in the GitHub repository SAP/ai-skills-library (89 stars, last pushed 2d ago), licensed Apache-2.0. It adds 135 tokens to every session and 1,945 once invoked, about $0.0005 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.
Other skills, from other repositories
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…
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…
chunking-strategy
Provides chunking strategies for RAG systems. Generates chunk size recommendations (256-1024 tokens), overlap percentages (10-20%), and semantic boundary detection methods. Validates semantic coherence and evaluates retrieval precision/recall metrics. Use when building retrieval-augmented generation systems, vector…
rag
Implements document chunking, embedding generation, vector storage, and retrieval pipelines for Retrieval-Augmented Generation systems. Use when building RAG applications, creating document Q&A systems, or integrating AI with knowledge bases.
spring-ai
Spring AI for integrating AI/ML models (OpenAI, Azure, Ollama, etc.) into Spring applications. Covers ChatClient, embeddings, RAG, vector stores, and function calling. USE WHEN: user mentions "spring ai", "ChatClient", "LLM integration Spring", "RAG Spring", "embeddings Java", "vector store Spring", "OpenAI Spring…
flink-udf
Build and deploy Apache Flink user-defined functions (UDFs) in Java for stream processing over Kafka. Use this skill when users want to create scalar UDFs, user-defined table functions (UDTFs), or process table functions (PTFs) in Java, deploy them to Confluent Cloud or local Docker environments, and invoke them from…