spring-ai-alibaba
Provides comprehensive guidance for Spring AI Alibaba including Alibaba Cloud AI services integration, model APIs, and AI application development. Use when the user asks about Spring AI Alibaba, needs to use Alibaba Cloud AI services, or integrate AI capabilities in Spring applications.
npx skills add majiayu000/claude-skill-registry --skill spring-ai-alibaba --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Spring AI Alibaba 开发指南 ## 概述 Spring AI Alibaba 提供了与阿里云 DashScope(通义千问)的集成,支持使用阿里云的大语言模型服务。 ## 核心功能 ### 1. 项目创建 **依赖**: ```xml <dependency> <groupId>com.alibaba.cloud.ai</groupId> <artifactId>spring-ai-starter-model-aliyun-dashscope</artifactId> </dependency> ``` **或使用 Gradle**: ```gradle dependencies { implementation 'com.alibaba.cloud.ai:spring-ai-starter-model-aliyun-dashscope' } ``` ### 2. 配置 **application.yml**: ```yaml spring: ai: alibaba: dashscope: api-key: ${DASHSCOPE_API_KEY} chat: options: model: qwen-turbo temperature: 0.7 max-tokens: 2000 ``` **application.properties**: ```properties spring.ai.alibaba.dashscope.api-key=${DASHSCOPE_API_KEY} spring.ai.alibaba.dashscope.chat.options.model=qwen-turbo spring.ai.alibaba.dashscope.chat.options.temperature=0.7 spring.ai.alibaba.dashscope.chat.options.max-tokens=2000 ``` ### 3. Chat Client **使用 ChatClient**: ```java @Service public class ChatService { private final ChatClient chatClient; public ChatService(ChatClient chatClient) { this.chatClient = chatClient; } public String chat(String message) { return chatClient.call(message); } public String chatWithPrompt(String userMessage) { Prompt prompt = new Prompt(new UserMessage(u
- 概述
- 核心功能
- 1. 项目创建
- 2. 配置
- 3. Chat Client
- 4. 模型选择
- 5. Prompt Template
- 6. Embedding
- 7. 多轮对话
- 最佳实践
- 1. 配置管理
- 2. 错误处理
- 3. 性能优化
- 4. 成本控制
What does the spring-ai-alibaba skill do?
Provides comprehensive guidance for Spring AI Alibaba including Alibaba Cloud AI services integration, model APIs, and AI application development. Use when the user asks about Spring AI Alibaba, needs to use Alibaba Cloud AI services, or integrate AI capabilities in Spring applications.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill spring-ai-alibaba --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
