Agent skill

Spring AI

by magnus919 in magnus919/agent-skills

Diagnose and operate Spring AI projects with version-aware Maven or Gradle checks for ChatClient, advisors, retrieval, conversation memory, tool/MCP boundaries, streaming, configuration, and…

MITAuto-check passedDevOps & Cloud

Install Spring AI

skills CLI
$ npx skills add magnus919/agent-skills --skill spring-ai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install magnus919/agent-skills spring-ai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/magnus919/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/spring-ai .claude/skills/spring-ai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
spring-ai
GitHub stars
115
Token cost
~1.2k tokens
SKILL.md length
517 words
Files
11 (incl. scripts, references)
Skills in repo
131
Repo updated
First seen
Licence
MIT

At a glance

Diagnose and operate Spring AI projects with version-aware Maven or Gradle checks for ChatClient, advisors, retrieval, conversation memory, tool/MCP boundaries, streaming, configuration, and…

  • Works in 8 steps: Run the checker and retain its JSON… → Resolve build compatibility findings… → Inspect ChatClient advisor order and… → …
  • Setup compatibility
  • SKILL.md covers Entry check, Workflow, Scope and routing and Version posture, plus 1 more section
  • Runs Python and Java scripts from its folder; calls python3

What it does

Spring AI is an agent skill from magnus919/agent-skills. Diagnose and operate Spring AI projects with version-aware Maven or Gradle checks for ChatClient, advisors, retrieval, conversation memory, tool/MCP boundaries, streaming, configuration, and observability. Use for setup compatibility, local smoke checks, and failure triage; do not use for provider-specific model evaluation, general Java/Spring development, security threat modeling, or production rollout governance.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts and reference files (for example `README.md`, `evals/evals.json` and `references/compatibility-and-setup.md`). Compatibility notes: Requires Python 3.8+ standard library; Maven/Gradle are optional and only needed to run a project build.

It sits in DevOps & Cloud, covering Machine learning, Threat modeling and Observability. It works with Model Context Protocol, Gradle and Java. The repository describes itself as: Curated collection of AI agent skills for Hermes and other agent frameworks. The licence is MIT.

When your agent uses it

  • Setup compatibility
  • Local smoke checks
  • Do not use for provider-specific model evaluation
  • General Java/Spring development

Example prompts

  • “/spring-ai”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Requires Python 3.8+ standard library; Maven/Gradle are optional and only needed to run a project build.

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Run the checker and retain its JSON output with the project revision.
  2. Resolve build compatibility findings against the official Spring AI and Spring Boot documentation in references/source-index.md; do not…
  3. Inspect ChatClient advisor order and parameters. Every memory-advisor call needs an explicit conversation identifier derived from the…
  4. For retrieval, verify document ownership/authorization before retrieval context enters a prompt. Test empty retrieval, stale data…
  5. For tools and MCP, treat model tool requests as untrusted proposals. The application owns authorization and execution. Bound tool names…
  6. For streaming, preserve partial output as provisional until completion; test cancellation, timeout, disconnect, and failed completion. Do…
  7. Keep prompt/completion logging disabled by default in production. If enabled temporarily, document redaction, access, retention, and…
  8. Run the project’s own tests/build when dependencies and provider credentials are available. The checker does not prove provider…

What it can do on your machine

Read from SKILL.md and the folder at commit 22b4723. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python and Java), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Python 3.8+ standard library; Maven/Gradle are optional and only needed to run a project build.

    From compatibility in the SKILL.md frontmatter.

Context cost

Spring AI loads about 1.2k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 107 tokens; SKILL.md has 517 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~107
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from magnus919/agent-skills at commit 22b4723, republished under its MIT licence (© magnus919). 517 words, ~1,213 tokens.

Download SKILL.mdSave it as .claude/skills/spring-ai/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
spring-ai
description
Diagnose and operate Spring AI projects with version-aware Maven or Gradle checks for ChatClient, advisors, retrieval, conversation memory, tool/MCP boundaries, streaming, configuration, and observability. Use for setup compatibility, local smoke checks, and failure triage; do not use for provider-specific model evaluation, general Java/Spring development, security threat modeling, or production rollout governance.
compatibility
Requires Python 3.8+ standard library; Maven/Gradle are optional and only needed to run a project build.
license
MIT
metadata.tags
spring-ai, spring-boot, java, maven, gradle, chatclient, rag, mcp, diagnostics
metadata.verified_date
2026-09-14
metadata.supported_spring_ai
2.0.1 (current stable documentation); 1.0.9 maintenance reference

Spring AI

Use this operational skill to inspect a real Maven or Gradle Spring AI project before changing it. The included diagnostic CLI is offline and provider-neutral: it reads build files, application configuration, and source to report compatibility clues, unsafe defaults, missing conversation IDs, streaming prerequisites, tool/MCP boundaries, retrieval configuration, and observability risks. It never sends prompts or exposes API-key values.

Entry check

Confirm the project root and whether the task is read-only or will modify configuration/code. Read-only diagnosis can proceed. Before the first state-changing action, confirm the target project, scope, and rollback path (usually a reviewed commit or revert); the CLI itself is read-only.

Run:

sh
python3 spring-ai/scripts/spring_ai_check.py --root /path/to/project --json

The result is stable JSON with status, project, facts, findings, and errors. Exit 0 means no error-severity finding; exit 1 means an error-severity finding or warnings promoted by --strict; exit 2 means an invalid invocation or unreadable project.

Workflow

  1. Run the checker and retain its JSON output with the project revision.
  2. Resolve build compatibility findings against the official Spring AI and Spring Boot documentation in references/source-index.md; do not infer support from a transitive dependency alone.
  3. Inspect ChatClient advisor order and parameters. Every memory-advisor call needs an explicit conversation identifier derived from the application’s authenticated/session boundary; never use a shared default.
  4. For retrieval, verify document ownership/authorization before retrieval context enters a prompt. Test empty retrieval, stale data, provider errors, and latency separately.
  5. For tools and MCP, treat model tool requests as untrusted proposals. The application owns authorization and execution. Bound tool names, arguments, timeout, retry, side effects, and audit fields. Verify MCP transport and schema against the current project dependency.
  6. For streaming, preserve partial output as provisional until completion; test cancellation, timeout, disconnect, and failed completion. Do not treat a partial stream as a committed answer or side effect.
  7. Keep prompt/completion logging disabled by default in production. If enabled temporarily, document redaction, access, retention, and rollback.
  8. Run the project’s own tests/build when dependencies and provider credentials are available. The checker does not prove provider connectivity, model quality, RAG correctness, or production readiness.
Show full SKILL.md (172 more words)Show less

Scope and routing

  • ChatClient/advisors, Spring configuration, local diagnostics, and framework troubleshooting belong here.
  • Model quality, evaluator design, statistical comparisons, and trace schemas belong to agent-evals-and-observability.
  • Authority, fallback, disablement, budgets, and rollout belong to agent-production-operations.
  • Threat modeling and security implementation belong to secure-software-engineering.
  • General Java/Spring application design belongs to the relevant engineering skill.

Version posture

The official documentation currently presents Spring AI 2.0.1 as the latest stable line and retains a 1.0 reference (1.0.9). APIs differ across lines: for example, current 2.0 documentation describes ToolCallingAdvisor as the ChatClient tool loop, while 1.x applications may use model-internal tool loops. The checker reports observed versions and flags uncertainty; it does not rewrite dependencies or claim that a version combination is supported without a primary compatibility source. Re-check references/source-index.md and release notes when upgrading.

Completion

Stop when the project’s build/config/source facts, findings, owner routes, and limitations are recorded, or when an external dependency (provider credentials, unavailable build tool, private artifact repository) is explicitly marked blocked. Do not claim a successful live smoke test from static diagnostics.

© magnus919, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (scripts, references) in spring-ai of magnus919/agent-skills.

  • SKILL.md
  • README.md
  • evals/evals.json
  • examples/minimal-project/pom.xml
  • examples/minimal-project/src/main/java/example/Demo.java
  • examples/minimal-project/src/main/resources/application.properties
  • references/compatibility-and-setup.md
  • references/integration-boundaries.md
  • references/source-index.md
  • scripts/spring_ai_check.py
  • scripts/test_spring_ai_check.py

Open the folder on GitHubat commit 22b4723

Compare with similar skills

Spring AI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Spring AI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Spring AI this skillmagnus919/agent-skills115—~1.2kAutomated safety check: PassMIT
Observability Triageevery-app/open-seo23k—~1.7kAutomated safety check: PassMIT
UModel Root Cause Analysisalibaba/UnifiedModel415—~1.9kAutomated safety check: PassCustom licence
Agentmeasureroy-tong/AgentMeasure219—~753Automated safety check: PassMIT
Logging Observabilitygetsentry/toolkit920—~2.6kAutomated safety check: PassCustom licence
Deploy Observabilityaliyun/alibabacloud-observability-mcp-server166—~2.6kAutomated safety check: NotesNone

Similar skills

  • Observability Triage

    every-app/open-seo

    Triage OpenSEO production errors in Cloudflare Workers Observability — verified query recipes, counting gotchas, and a known-noise filter list applied automatically.

    23k GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • UModel Root Cause Analysis

    alibaba/UnifiedModel

    Investigates a service incident to its root cause by querying a UModel object graph alongside metrics, logs, topology and recent deployments.

    415 GitHub stars~1.9k tokensUpdated 16 days ago
    DevOps & CloudAuto-check passed
  • Agentmeasure

    roy-tong/AgentMeasure

    Check whether agent telemetry preserves measurement semantics.

    219 GitHub stars~753 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Logging Observability

    getsentry/toolkit

    Official

    Review code for correct logging and error handling patterns.

    920 GitHub stars~2.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Deploy Observability

    aliyun/alibabacloud-observability-mcp-server

    Deploy, start, and update the Alibaba Cloud Observability MCP Server (阿里云可观测 MCP Server).

    166 GitHub stars~2.6k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Exploring Apm Traces

    PostHog/posthog

    Official

    Investigates distributed application performance using PostHog APM (OpenTelemetry span) data via MCP.

    40k GitHub stars~3.5k tokensUpdated today
    DevOps & CloudAuto-check passed

More from magnus919/agent-skills

All 131 skills in this repo
  • Artifact Pyramids

    magnus919/agent-skills

    Organize durable agent research outputs as summaries, analysis, and evidence dossiers.

    115 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Ascii City Engine

    magnus919/agent-skills

    Build portable, first-person colored ASCII city engines and small GIS-derived city packs.

    115 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Color Management

    magnus919/agent-skills

    Manage color workflows with ICC profiles, working spaces, gamut mapping, and color science.

    115 GitHub stars~2.6k tokensUpdated today
    Auto-check: notes
  • Data Scientist

    magnus919/agent-skills

    A skill your agent uses for PhD-level expertise in data science, statistics, and machine learning: rigorous statistical analysis, experimental design, causal inference, advanced modeling, research…

    115 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Docker Compose

    magnus919/agent-skills

    Use Docker Compose to define, run, debug, and harden multi-container applications.

    115 GitHub stars~2k tokensUpdated today
    Auto-check: notes
  • Fpga Development

    magnus919/agent-skills

    Design, review, simulate, and verify FPGA logic using explicit RTL contracts, clock and reset models, CDC analysis, timing constraints, and reproducible implementation evidence.

    115 GitHub stars~2.7k tokensUpdated today
    Auto-check passed

Questions about Spring AI

What does Spring AI do?

Diagnose and operate Spring AI projects with version-aware Maven or Gradle checks for ChatClient, advisors, retrieval, conversation memory, tool/MCP boundaries, streaming, configuration, and…. Spring AI is an agent skill from magnus919/agent-skills. Diagnose and operate Spring AI projects with version-aware Maven or Gradle checks for ChatClient, advisors, retrieval, conversation memory, tool/MCP boundaries, streaming, configuration, and observability.

When should I use Spring AI?

Spring AI fits situations like: setup compatibility; local smoke checks; do not use for provider-specific model evaluation; general Java/Spring development.

How do I install Spring AI in Claude Code?

Run `npx skills add magnus919/agent-skills --skill spring-ai -a claude-code`. Or copy the skill folder (spring-ai in magnus919/agent-skills) into .claude/skills/spring-ai in your project. Claude Code loads it when a task matches its description.

How do I install Spring AI in Codex?

Run `npx skills add magnus919/agent-skills --skill spring-ai -a codex`. Or copy the skill folder (spring-ai in magnus919/agent-skills) into .agents/skills/spring-ai in your project. Codex loads it when a task matches its description.

Can I use Spring AI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add magnus919/agent-skills --skill spring-ai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spring-ai, .gemini/skills/spring-ai, .github/skills/spring-ai and .opencode/skills/spring-ai in your project.

What does Spring AI need to run?

Going by SKILL.md and its folder, Spring AI needs Python and Java for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3. Compatibility (from SKILL.md): Requires Python 3.8+ standard library; Maven/Gradle are optional and only needed to run a project build..

Does Spring AI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Spring AI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Spring AI use?

Spring AI is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Spring AI use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Spring AI?

Skills that share tags, products or a category with Spring AI: Observability Triage (every-app/open-seo, 23k stars), UModel Root Cause Analysis (alibaba/UnifiedModel, 415 stars), Agentmeasure (roy-tong/AgentMeasure, 219 stars) and Logging Observability (getsentry/toolkit, 920 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Spring AI?

magnus919 (a GitHub user) maintains it in magnus919/agent-skills, which has 115 GitHub stars. The repository holds 131 skills in this directory. The repository was last updated on October 10, 2026.

Source: magnus919/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.