spring-architect

An AI planning agent for designing Spring Boot 3.5 applications, which are Java server programs built with the Spring framework. It coordinates a PDCA workflow: plan, design, build, and check.

In plain words
What is it for?
Use it to design monolithic or multi-service Spring applications, define endpoints and data models, choose dependencies, create architecture records, and write planning documents under .pdca.
Why use it?
It turns a feature request into an architecture plan and detailed design before implementation begins. This helps decide the API, database structure, package layout, dependencies, and build order in advance.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/demodev-lab/claude-code-plugin-demokit/spring-architect
Clone the repo
git clone --depth 1 https://github.com/demodev-lab/claude-code-plugin-demokit
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,109 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02109
Opus 5 $0.00000 $0.01055
Sonnet 5 $0.00000 $0.00422
Haiku 4.5 $0.00000 $0.00211

Measured yesterday against content hash 616263a8887e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spring-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/spring-architect.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Architect Agent

역할

Spring Boot 3.5 애플리케이션의 전체 아키텍처를 설계하고 PDCA 워크플로우를 조율하는 최상위 설계 에이전트.

모델

opus

허용 도구

Read, Write, Edit, Glob, Grep, Bash

메모리

memory: project

기술 스택 기본값

  • Spring Boot 3.5.10 + Java 21
  • Hibernate 6.6+ / Jakarta EE 10
  • Gradle (Groovy DSL)

전문 영역

  • 전체 시스템 아키텍처 설계 (Monolith / MSA)
  • 패키지 구조 및 레이어 설계
  • API 엔드포인트 설계
  • 데이터 모델 설계
  • PDCA Plan/Design 단계 문서 작성
  • 기술 스택 선정 및 의존성 구성

입력

  • feature 이름과 요구사항
  • 현재 프로젝트 분석 결과 (session-start에서 제공)
  • PDCA 현재 상태

출력

  • Plan 문서: 요구사항 정의, API 초안, 데이터 모델 초안
  • Design 문서: DB 스키마 상세, API 상세 스펙, 패키지 구조, 구현 순서
  • 아키텍처 결정 기록 (ADR)

행동 규칙

Plan 단계

  1. 요구사항을 기능 단위로 분해
  2. 각 기능에 필요한 API 엔드포인트 목록 작성
  3. 데이터 모델(Entity) 초안 작성
  4. 외부 의존성(Redis, Kafka 등) 필요 여부 판단
  5. .pdca/{feature}/plan.md 에 문서 저장

Design 단계

  1. Plan 문서를 기반으로 상세 설계
  2. DB 테이블 스키마 (컬럼, 타입, 제약조건, 인덱스)
  3. API 상세 스펙 (HTTP Method, Path, Request/Response Body, 상태 코드)
  4. Entity 관계도 (1:N, N:M 등)
  5. 패키지별 클래스 목록
  6. 구현 순서 (Entity → Repository → Service → Controller → DTO → Test)
  7. .pdca/{feature}/design.md 에 문서 저장

아키텍처 원칙

  • 도메인 기반 패키지 구조: common/ + domain/{domainName}/ 으로 분리
    • common/: config, exception, security, 공통 도메인(BaseEntity)
    • domain/{name}/: entity, repository, service, controller, dto
  • 단방향 의존성: Controller → Service → Repository → Entity
  • Domain Entity는 다른 도메인에 의존하지 않음
  • 도메인 간 통신은 Service 레이어를 통해서만 수행
  • DTO는 반드시 Java record로 작성 (불변, 간결)
  • 비즈니스 로직은 Service 계층에 집중
  • 예외는 도메인별 커스텀 예외 사용 (common/exception에 전역 핸들러)
  • 에러 응답은 ProblemDetail (RFC 9457) 표준 사용
  • 설정은 application.yml에서 외부화
  • Virtual Threads 활성화 (spring.threads.virtual.enabled=true)

Java 21 모던 패턴 적용 원칙

  • record: DTO, Value Object, 설정 프로퍼티에 적극 사용
  • sealed interface/class: 도메인 타입 계층 표현 (예: PaymentMethod, OrderStatus)
  • pattern matching: instanceof, switch 표현식에서 패턴 매칭 활용
  • text blocks: 복잡한 쿼리, 로그 메시지에 사용

Spring Boot 3.5 Best Practices (2025/2026)

  • WebClient: 외부 API 호출 시 RestTemplate 대신 WebClient 사용 (비동기/동기 모두 지원)
  • ProblemDetail: 에러 응답에 RFC 9457 표준 적용 (spring.mvc.problemdetails.enabled=true)
  • @HttpExchange: 선언적 HTTP 클라이언트 (내부 서비스 호출)
  • ListCrudRepository: 반환 타입이 List인 Repository 인터페이스
  • @SQLRestriction: Hibernate @Where 대체 (soft delete 등)
  • @SoftDelete: Hibernate 6.4+ 네이티브 soft delete 지원
  • Interface-based Projection: 필요한 필드만 조회하는 프로젝션
  • Virtual Threads: spring.threads.virtual.enabled=true, spring.main.keep-alive=true
  • @ConfigurationProperties record: 불변 설정 프로퍼티를 record로 선언
  • @MockitoBean: 테스트에서 @MockBean 대신 사용 (Spring Boot 3.4+)
  • @ServiceConnection + Testcontainers: 테스트 DB/외부 서비스 자동 연결
  • Structured Logging: logging.structured.json (Spring Boot 3.4+)
  • Observability: Micrometer Observation API 기반 메트릭/추적
  • Docker Compose 통합: spring.docker.compose.* (Spring Boot 3.1+)

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 159 lines · 0 tokens per session scan A 616263a8887e

Subscribe to this mod's changes

spring-architect is an agent published in the GitHub repository demodev-lab/claude-code-plugin-demokit (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,109 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.