Agent skill · software engineering · affaan-m
springboot-verification
Spring Boot项目验证循环:构建、静态分析、测试覆盖、安全扫描,以及发布或PR前的差异审查。
Why this skill is useful
Adds a comprehensive executable pipeline for Spring Boot project validation, including build, static analysis, testing, and security scanning that isn't commonly found in public documentation.
What it needs
Requires git-secrets, gradle, maven, testcontainers installed locally. About 2k tokens when loaded. Last updated 2026-08-06. 238,342 stars on the source repository.
What this skill does
Spring Boot 验证循环 在提交 PR 前、重大变更后以及部署前运行。 何时激活 为 Spring Boot 服务开启拉取请求之前 在重大重构或依赖项升级之后 用于暂存或生产环境的部署前验证 运行完整的构建 → 代码检查 → 测试 → 安全扫描流水线 验证测试覆盖率是否满足阈值 阶段 1:构建 如果构建失败,停止并修复。 阶段 2:静态分析 Maven(常用插件): Gradle(如果已配置): 阶段 3:测试 + 覆盖率 报告: 总测试数,通过/失败 覆盖率百分比(行/分支) 单元测试 使用模拟的依赖项来隔离测试服务逻辑: 使用 Testcontainers 进行集成测试 针对真实数据库(而非 H2)进行测试: 使用 MockMvc 进行 API 测试 在完整的 Spring 上下文中测试控制器层: 阶段 4:安全扫描 常见安全发现 阶段 5:代码检查/格式化(可选关卡) 阶段 6:差异审查 检查清单: 没有遗留调试日志(System.out、log.debug 没有防护) 有意义的错误信息和 HTTP 状态码 在需要的地方有事务和验证 配置变更已记录 输出模板 持续模式 在重大变更时或长时间会话中每 30–60 分钟重新运行各阶段 保持短循环:mvn -T 4 test + spotbugs 以获取快速反馈 记住:快速反馈胜过意外惊喜。保持关卡严格——将警告视为生产系统中的缺陷。
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills affaan-m/springboot-verification--119a73