CLAUDE.md · alibaba/spring-ai-alibaba
CLAUDE.md from alibaba/spring-ai-alibaba: 151 lines covering Project Overview, Repository Structure, Build System, Architecture & Key Concepts and more.
Template by alibaba
Chalk Labs
Need help deploying CLAUDE.md · alibaba/spring-ai-alibaba?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/alibaba/spring-ai-alibaba/main/CLAUDE.md -o CLAUDE.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-generation, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A CLAUDE.md file: project memory Claude Code loads at the start of every session.
- For
- Claude Code
- Length
- 151 lines
- File
CLAUDE.md
Sections
- Project Overview
- Repository Structure
- Build System
- Architecture & Key Concepts
- Code Style & Conventions
- Testing
- Tips for AI Assistants
- Important Links
First lines (shown under the repo's Apache-2.0 license)
# CLAUDE.md - AI Assistant Guide for Spring AI Alibaba This file provides guidance for AI assistants working with the Spring AI Alibaba codebase. ## Project Overview Spring AI Alibaba is a production-ready framework for building Agentic, Workflow, and Multi-agent applications. It is an implementation of the Spring AI framework tailored for Alibaba Cloud services and components. It provides a comprehensive ecosystem for developing AI-powered applications with built-in context engineering and human-in-the-loop support. **Key Features:** - Multi-Agent Orchestration with built-in patterns - Context Engineering with human-in-the-loop, context compaction, editing, model call limits - Graph-based workflow with conditional routing, nested graphs, parallel execution - A2A (Agent-to-Agent) support with Nacos integration - Rich model support (DashScope, OpenAI, DeepSeek) and MCP (Model Context Protocol) - One-stop visual agent platform ## Repository Structure ``` spring-ai-alibaba/ ├── spring-ai-alibaba-agent-framework/ # Multi-agent framework (Sequential, Parallel, Routing, etc.) ├── spring-ai-alibaba-graph-core/ # Runtime providing persistence, workflow orchestration, state mgmt ├── spring-ai-alibaba-studio/ # Embedded UI for debugging agents visually ├── spring-ai-alibaba-admin/ # One-stop Agent platform (visual dev, observability, MCP mgmt) ├── spring-ai-alibaba-bom/ # Bill of Materials for dependency management ├── spring-boot-starters/ # Spring Boot Starters │ ├── spring-ai-alibaba-starter-a2a-nacos/ # Nacos A2A communication │ ├── spring-ai-alibaba-starter-builtin-nodes/ # Built-in workflow nodes │ ├── spring-ai-alibaba-starter-config-nacos/ # Dynamic config with Nacos │ └── spring-ai-alibaba-starter-graph-observation/ # Observability ├── examples/ # Example applications │ ├── chatbot/ # Chatbot example │ ├── deepresearch/ # Deep research agent example │ └── documentation/ # Documentation examples ├── tools/ # Build and linting tools └── docs/ # Documentation ``` ## Build System ### Prerequisites - **JDK**: 17 (Required by `java.version` property) - **Maven**: 3.6+ - **Git** ### Common Build Commands ```shell # Build the entire project (skip tests) ./mvnw -B package -DskipTests=true # Build a specific module ./mvnw -pl :spring-ai-alibaba-agent-framework -B package -DskipTests=true # Clean project ./mvnw clean # Run tests ./mvnw test # Run linting checks (using Makefile) make lint make licenses-check ``` ## Architecture & Key Concepts ### Core Components - **Agent Framework**: Built-in agents like `SequentialAgent`, `ParallelAgent`, `RoutingAgent`, `LoopAgent`. - **Graph Core**: Underlying engine for stateful agents, supporting persistence (PostgreSQL, MySQL, Oracle, MongoDB, Redis, File). - **A2A (Agent-to-Agent)**: Enables agents to seek and communicate with each other using Nacos as a registry. - **Admin & Studio**: Provides visual tools for developing and debugging agent workflows. ### Technology Stack - **Framework**: Spring Boot 3.5.x, Spring AI 1.1.x - **Cloud Integration**: Alibaba Cloud DashScope, Nacos (Service Discovery & Config) - **Observability**: Spring Cloud Observation (Micrometer/OpenTelemetry) ## Code Style & Conventions ### General Guidelines - Follow **Spring AI** standard code formatting. - Use **Apache 2.0** license headers for all Java files. - **Java 17** features are encouraged (records, switch expressions, text blocks). - Avoid `System.out.println` - use SLF4J logging. - Use `final` for local variables and parameters where appropriate. - Use Lombok annotations (`@Data`, `@Slf4j`, etc.) to reduce boilerplate. ### Linting & Formatting The project uses `make` for linting tasks: - `make codespell`: Checks for spelling errors. - `make yaml-lint`: Checks YAML file formatting. - `make licenses-check`: Verifies license headers. ### License Header ```java /* * Copyright 2025-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ ``` ## Testing ### Frameworks - **JUnit 5** (`org.junit.jupiter`) - **Mockito** ### Running Tests ```shell # Run all tests ./mvnw test # Run a specific test class ./mvnw -pl :<module-name> -Dtest=<TestClassName> test ``` ## Tips for AI Assistants 1. **JDK Version**: Project targets JDK 17. Use appropriate language features. 2. **Spring Boot**: Uses Spring Boot 3.x. Be aware of `jakarta.*` namespace vs `javax.*`. 3. **Dependencies**: Check `spring-ai-alibaba-bom` or parent pom for version management. 4. **Makefile**: Use the Makefile in the root for project maintenance tasks (linting, license checks). 5. **Structure**: When adding new features, prefer creating or updating modules within `spring-ai-alibaba-agent-framework` or `spring-boot-starters` depending on the scope. ## Important Links - **Issues**: [https://github.com/alibaba/spring-ai-alibaba/issues](https://github.com/alibaba/spring-ai-alibaba/issues) - **Source**: [https://github.com/alibaba/spring-ai-alibaba](https://github.com/alibaba/spring-ai-alibaba) - **Contributing**: [CONTRIBUTING.md](CONTRIBUTING.md)
Signals
- Stars
- 11,060
- Forks
- 2,462
- Open issues
- 77
- Last commit (this folder)
- Mar 10, 2026 (7 months ago)
- Last release
- Mar 10, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/alibaba/spring-ai-alibaba
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from alibaba
- 0.830score
skill-upper
alibaba
Capture and review Agent Skill observations, and create, run, diagnose, or iteratively improve Skill evaluations (evals) with the skill-up CLI.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.824score
code-stats
alibaba
Analyzes code files and reports statistics including line counts, file counts by extension, and total size.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
mood-booster
alibaba
Triggered when the user expresses boredom, low mood, frustration, irritation, or a need to relax.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
code-review-assistant
alibaba
Triggered when the user submits code or requests a code review.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
data-transformer
alibaba
Triggered when the user needs to convert data formats, such as CSV to JSON, JSON to YAML, or XML to JSON.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
code-quality-analyzer
alibaba
Triggered when the user submits code or requests a comprehensive code quality analysis.
SkillAFreshness: A★ 1.3KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get CLAUDE.md · alibaba/spring-ai-alibaba running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
CLAUDE.md · alibaba/spring-ai-alibaba. Agent Mart. https://agentmart.dev/templates/alibaba-spring-ai-alibaba-claude-md (last updated 2026-10-24)