AGENT SKILL

spring-boot-engineer

Use when building or extending a Spring Boot 3.x Java backend — REST, Spring Security, JPA, WebFlux, Actuator. Triggers on: "Spring Boot API", "스프링 시큐리티 설정", "JPA 연동". Not for service decomposition or query tuning.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 3
Forks
1

01 前言 Front Matter

name
spring-boot-engineer
license
MIT
metadata
{ "role": "specialist", "scope": "implementation", "domain": "backend", "version": "1.1.0", "triggers": "Spring Boot, Spring Security, Spring Data JPA, Spring Cloud, WebFlux, Java REST API, Actuator", "output-format": "code", "related-skills": "database-optimizer, architecture-designer, transaction-boundary-reviewer, kotlin-specialist" }
scenarios
[ "Build a REST API with Spring Boot including security, JPA, and error handling", "Help me configure Spring Security for JWT-based authentication", "Add caching, transaction management, and validation to our Spring Boot service", "Spring Boot로 REST API를 만들어줘 — 시큐리티와 JPA 포함", "JWT 인증을 위한 Spring Security 설정을 도와줘" ]
description
Use when building or extending a Spring Boot 3.x Java backend — REST, Spring Security, JPA, WebFlux, Actuator. Triggers on: "Spring Boot API", "스프링 시큐리티 설정", "JPA 연동". Not for service decomposition or query tuning.
compatibility
{ "optional": [ "think-tool" ], "recommended": [], "remote_mcp_note": "think-tool이 있으면 트랜잭션 경계 설계와 보안 설정 검토를 더 체계적으로 수행합니다. Claude 설정 → MCP Servers에서 remote SSE 엔드포인트를 추가하세요." }

02 资源文件 6

03 SKILL.md 正文

Standing Mandates

  • NEVER report a feature done from reading the code. Run the project's own build and tests (./mvnw test or ./gradlew test, whichever the repo has) and quote the pass/total line; a test you could not run is written not run: <command>. A wrong requestMatchers order or a missing @Valid compiles fine and fails only when run.
  • NEVER return a JPA entity from a controller. Serialization walks lazy associations (LazyInitializationException or a hidden query per row) and exposes columns nobody chose to publish. Return a response record.
  • NEVER leave an endpoint without a security test that asserts the unauthenticated and the unauthorized response as well as the success (a deliberately public endpoint: one test asserting it stays public). Filter-chain rules match first-to-last, so a broad matcher placed early silently decides.
  • NEVER rely on @Transactional on a private method or a self-invoked method: the proxy is bypassed and no transaction starts. Put the boundary on a public method of a separate bean.
  • NEVER use Boot 2.x idioms (WebSecurityConfigurerAdapter, antMatchers, javax.*): they were removed or moved in Spring Security 6 and Boot 3, so the code does not compile.
  • Missing facts (Boot and Java version, database, token issuer, who may call what) are read from pom.xml / build.gradle / application*.yml first; the rest is [확인 필요: ○○]. Never invent an issuer URI, a secret or a role name, and never commit a secret.
  • Goal: every endpoint has @Valid input, a security rule and a test; the build is green with the output quoted; the closing tally recounts to the controller files.

Spring Boot Engineer

Not for service decomposition (develop:architecture-designer), slow JPA queries or indexes (develop:database-optimizer), transaction-scope analysis of existing code (develop:transaction-boundary-reviewer), Kotlin idioms (develop:kotlin-specialist), or an exploit audit (develop:security-auditor).

Process

  1. Analyze — read the build file and config; pin API contracts, data model, security needs; list [확인 필요].
  2. Design — persistence, remote-call and security approach in a few lines; get agreement before writing code.
  3. Implement — layers with constructor injection (final fields; no field @Autowired); @ConfigurationProperties for settings; secrets from environment or a secret store.
  4. Secure — authentication, resource-server rules, method-level checks, CORS (references/security.md).
  5. Test — slice tests, Testcontainers where a real database matters, security tests (references/testing.md). Run the build; read the result.
  6. Operate — Actuator health endpoints on; with the app running, /actuator/health reports UP.
  7. Recount — count controllers' endpoints, those with @Valid bodies, a security rule, and a test; fix the tally if it differs.

Output Template

## <feature>

1. Entity; request/response records with validation annotations
2. Repository interface
3. Service: constructor injection, @Transactional (writes) / readOnly = true (reads)
4. Controller: @Valid input, response records, @RestControllerAdvice
5. Tests: @WebMvcTest / @DataJpaTest, security cases

Open: [확인 필요: ○○] ...

Endpoints <n> · @Valid <v> · security rule <s> · security test <t>
Build: <command> → <pass>/<total> | not run: <command>

What Claude Does / What You Do

Claude You
Scaffolds layered code, security rules, JPA queries Provide domain requirements and the data model
Writes transaction boundaries and test slices Run the full suite and fix environment failures
Sets up Actuator and health indicators Connect your monitoring and issuer/secret store

Reference Guide

Need Read Covers
Worked example references/example-book.md Entity to controller for one resource
Controllers and API errors references/web.md DTOs, validation, problem details, outbound clients, CORS
Persistence references/data.md Entity mapping, repositories, fetching, transactions, migrations
Authentication and authorization references/security.md Filter chain, resource server, method rules
Distributed deployment references/cloud.md Config, discovery, gateway, resilience, probes, packaging
Tests references/testing.md Slices, Testcontainers, security tests

Related Skills

  • develop:architecture-designer — architecture decisions before implementation
  • develop:database-optimizer — JPA query performance and index tuning
  • develop:transaction-boundary-reviewer — @Transactional boundary analysis
  • develop:kotlin-specialist — Kotlin-idiomatic Spring services
  • develop:security-auditor — exploitability audit of the finished service

04 同仓库更多 Skills

newkayak12
newkayak12/claude-skills

diagram

Use when something must be drawn as a checked figure, not Mermaid: page layout, B-tree, lock timeline, ER, benchmark chart, architecture, sequence. SVG + PNG. Triggers: "도식화해줘", "그림으로 그려줘", "책에 넣을 그림", "시퀀스 다이어그램", "draw this as a figure".

★ 3
newkayak12
newkayak12/claude-skills

test-master

Use when writing, improving, or auditing tests, or writing case specs with expected results from a spec. Triggers: "테스트 작성", "테스트 케이스 작성", "test case writing", "단위 테스트", "커버리지 분석", "test plan", "defect report".

★ 3
newkayak12
newkayak12/claude-skills

sre-engineer

Use when setting up production reliability practices. Triggers on: "SLO 정하고 싶어", "에러 버짓", "알람 피로", "반복 작업(toil) 줄이기", "golden signals dashboard", "burn-rate alert". Not for active incidents or chaos tests.

★ 3
newkayak12
newkayak12/claude-skills

sql-pro

Use when someone needs help writing or rewriting SQL — authoring complex joins, CTEs, window functions, or recursive queries — or designing a schema from scratch, normalizing an existing one, or migrating queries between database dialects.

★ 3
newkayak12
newkayak12/claude-skills

spec-driven-development

Use when a feature should be specified before it is coded — stories, acceptance criteria, tasks, a per-criterion check. Triggers: "스펙 먼저", "명세부터 쓰고 구현", "수용 기준 먼저", "spec first", "spec-driven development".

★ 3
newkayak12
newkayak12/claude-skills

like-my-code

Use when a repo's code style must become written policy — harness conventions (coding.md, boundaries.md) backed by repo evidence. Triggers: "내 코드 스타일로 컨벤션 뽑아줘", "이 레포 스타일을 정책으로", "like my code", "extract conventions from this repo".

★ 3