/ 目录 / 演练场 / sivalabs-agent-skills
● 社区 sivaprasadreddy ⚡ 即开即用

sivalabs-agent-skills

作者 sivaprasadreddy · sivaprasadreddy/sivalabs-agent-skills

Spring Boot skills for AI coding agents — idiomatic Boot 3.x, Testcontainers, Jakarta EE patterns.

sivalabs-agent-skills encodes Spring Boot best practices from Siva Katamreddy: modern Boot 3.x features, constructor injection, Jakarta namespace, Testcontainers for integration tests, Flyway, validation, OpenAPI, and common pitfalls. Clone once and Claude writes Boot code that actually looks like what Boot developers write in 2025, not 2017.

为什么要用

核心特性

实时演示

实际使用效果

sivalabs-agent-skill.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "sivalabs-agent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sivaprasadreddy/sivalabs-agent-skills",
        "~/.claude/skills/sivalabs-agent-skills"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "sivalabs-agent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sivaprasadreddy/sivalabs-agent-skills",
        "~/.claude/skills/sivalabs-agent-skills"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "sivalabs-agent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sivaprasadreddy/sivalabs-agent-skills",
        "~/.claude/skills/sivalabs-agent-skills"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "sivalabs-agent-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sivaprasadreddy/sivalabs-agent-skills",
        "~/.claude/skills/sivalabs-agent-skills"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "sivalabs-agent-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/sivaprasadreddy/sivalabs-agent-skills",
        "~/.claude/skills/sivalabs-agent-skills"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "sivalabs-agent-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/sivaprasadreddy/sivalabs-agent-skills",
          "~/.claude/skills/sivalabs-agent-skills"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add sivalabs-agent-skill -- git clone https://github.com/sivaprasadreddy/sivalabs-agent-skills ~/.claude/skills/sivalabs-agent-skills

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: sivalabs-agent-skills

How to scaffold a Spring Boot service with modern defaults

👤 Java developers starting a new Boot service ⏱ ~60 min intermediate

何时使用: Greenfield Boot project and you don't want to re-decide every convention.

前置条件
  • Java 17+ and Maven/Gradle — sdkman install java 21.0.2-tem
  • Skill cloned — git clone https://github.com/sivaprasadreddy/sivalabs-agent-skills ~/.claude/skills/sivalabs-agent-skills
步骤
  1. Describe the service
    Scaffold a Spring Boot 3.2 REST service 'orders-service' with JPA, PostgreSQL, Flyway, and Testcontainers.✓ 已复制
    → Proper project layout + pom/build.gradle + baseline migrations
  2. Add a feature
    Add an /orders endpoint with POST/GET and validation.✓ 已复制
    → Controller + service + repository + validation
  3. Integration tests
    Add integration tests using Testcontainers PostgreSQL.✓ 已复制
    → Tests boot a container, hit endpoints, pass

结果: A running Boot service with tests.

注意事项
  • Claude defaults to field injection — Skill prompts constructor injection; if not, re-ask explicitly
搭配使用: filesystem · github

Migrate a Boot 2.x service to 3.x (Jakarta namespace)

👤 Teams carrying Boot 2.x tech debt ⏱ ~180 min advanced

何时使用: You've been putting off the javax → jakarta migration.

步骤
  1. Audit
    Audit this project — list everything that needs to change for Boot 3.✓ 已复制
    → Full change list: imports, plugin versions, config properties
  2. Execute the shift
    Apply the jakarta namespace shift and upgrade dependencies.✓ 已复制
    → Passing compile after edits
  3. Fix the broken tests
    Fix tests that broke — usually Mockito strictness or auto-config changes.✓ 已复制
    → Green tests

结果: A migrated service you can actually merge.

注意事项
  • Missed javax references in config or third-party libs — Use the migrator's report + a grep sweep

组合

与其他 MCP 搭配,撬动十倍杠杆

sivalabs-agent-skill + filesystem

Operate across a multi-module Boot project

Walk my Boot project and add Testcontainers to every persistence module.✓ 已复制
sivalabs-agent-skill + github

Open PRs with concise migration steps

Open a PR titled 'chore: migrate orders-service to Boot 3.2'.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
boot-scaffolding service intent + stack Greenfield 0
testcontainers-integration service + container stack Whenever persistence is involved 0
boot-2-to-3-migration project root Upgrade tasks 0

成本与限制

运行它的成本

API 配额
none
每次调用 Token 数
5–25k per task
费用
free
提示
Migrate one module at a time; don't dump the monorepo on Claude

安全

权限、密钥、影响范围

凭据存储: none at skill level
数据出站: none

故障排查

常见错误与修复

Testcontainers fails in CI

Ensure CI has Docker available and the runner supports privileged containers.

验证: docker ps
Flyway migration fails on existing DB

Ask Claude for a baseline migration and mark existing schema.

替代方案

sivalabs-agent-skills 对比其他方案

替代方案何时用它替代权衡
symfony-ux-skillYou work in PHP/Symfony insteadDifferent stack
jetpack-compose-skillYou're on Android instead of server JavaDifferent runtime

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills