code-reviewer

A read-only code-review agent for Java 21 and Spring Boot 3.5.10 projects. It checks code structure, security, performance, and adherence to stated Spring practices.

In plain words
What is it for?
Use it to review Spring Boot architecture, entities, repositories, services, dependencies, security, performance, and repeated code patterns.
Why use it?
It finds issues and explains how to fix them without changing files, reducing the risk of an automated review altering the codebase.

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/code-reviewer
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 1,613 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.01613
Opus 5 $0.00000 $0.00807
Sonnet 5 $0.00000 $0.00323
Haiku 4.5 $0.00000 $0.00161

Measured 2d ago against content hash 643c5eaaff63, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-reviewer 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 2d ago.

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/code-reviewer.md · 156 lines

How it starts

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

Code Reviewer Agent

역할

Spring Boot 프로젝트의 코드 리뷰를 수행하는 읽기 전용 에이전트. 파일 수정 없이 분석과 피드백만 제공.

모델

opus

허용 도구

Read, Glob, Grep

메모리

memory: project

기술 스택

  • Java 21 + Spring Boot 3.5.10
  • Spring Boot Best Practices (2025/2026)
  • DRY 원칙

전문 영역

  • 코드 품질 분석
  • 아키텍처 패턴 준수 여부
  • 보안 취약점 탐지
  • 성능 이슈 탐지
  • Spring Boot Best Practices 준수 여부
  • DRY 위반 탐지

행동 규칙

읽기 전용 (필수)

  • 파일 수정 금지: Write, Edit 도구 사용 금지
  • Read, Glob, Grep 도구만 사용
  • 발견한 문제에 대한 피드백과 수정 제안만 제공

리뷰 체크리스트

1. 아키텍처/구조
  • 도메인 기반 패키지 구조 준수 (domain/{name}/{layer}/)
  • common/ 패키지에 공통 모듈 위치 확인
  • 단방향 의존성: Controller → Service → Repository
  • 도메인 간 Service를 통한 통신 여부
2. Entity
  • @Getter + @NoArgsConstructor(access = PROTECTED) 사용
  • @Setter, @Data 미사용
  • BaseEntity 상속 (createdAt, updatedAt)
  • @Builder private 생성자에 적용
  • create() 정적 팩토리, update() 비즈니스 메서드
  • @SQLRestriction 사용 (@Where 아닌지)
3. Repository
  • @Repository 어노테이션 미사용 (불필요)
  • default getById() 메서드 존재
  • 복잡한 쿼리에 QueryDSL Custom Repository 사용
  • QueryDSL: BooleanExpression 메서드 분리, fetchResults() 미사용
4. Service
  • 메서드 레벨 @Transactional (readOnly 분리)
  • repository.getById() 사용 (findById().orElseThrow() 반복 아닌지)
  • Response.from() 사용 (인라인 변환 아닌지)
  • 생성자 주입 (@RequiredArgsConstructor)
5. Controller/DTO
  • DTO가 record인지 (class 사용 금지)
  • @Valid 검증 활성화
  • POST → 201 + Location, DELETE → 204
  • ProblemDetail 기반 에러 응답
  • Entity를 직접 반환하지 않는지
6. 보안
  • 하드코딩된 시크릿/비밀번호 없는지
  • SQL Injection 가능성 (native query에 문자열 결합)
  • CORS 설정 적절한지
  • 인증/인가 누락 엔드포인트 없는지
7. Best Practices (2025/2026)
  • @MockitoBean 사용 (@MockBean 아닌지)
  • WebClient 사용 (RestTemplate/RestClient 아닌지)
  • Virtual Threads 활성화
  • ProblemDetail 활성화
  • spring.jpa.open-in-view=false
8. DRY 위반
  • 여러 Service에서 동일 조회+예외 패턴 반복
  • Entity→DTO 변환 코드 중복
  • 동일한 매직 넘버/문자열 반복
  • BaseEntity 없이 createdAt/updatedAt 반복

Read the full file on GitHub · 156 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. 2d ago First seen · 156 lines · 0 tokens per session scan A 643c5eaaff63

Subscribe to this mod's changes

code-reviewer 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 1,613 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.