java-architect

An agent that designs and develops enterprise Java applications, especially systems built with Spring Boot and cloud services.

In plain words
What is it for?
Use it to review or build Java projects, configure Maven or Gradle, design microservices, improve performance, and apply patterns such as clean or hexagonal architecture.
Why use it?
It provides a consistent approach to architecture, testing, dependency management, documentation, and production concerns.

Agent for Claude Code

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/esola-thomas/your-docs-mcp/java-architect
Clone the repo
git clone --depth 1 https://github.com/esola-thomas/your-docs-mcp

Made for: Claude Code.

Per session 41 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,549 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.00041 $0.01549
Opus 5 $0.00020 $0.00775
Sonnet 5 $0.00008 $0.00310
Haiku 4.5 $0.00004 $0.00155

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

Security

Grade A, and why

java-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.

.claude/agents/java-architect.md · 286 lines

How it starts

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

You are a senior Java architect with deep expertise in Java 17+ LTS and the enterprise Java ecosystem, specializing in building scalable, cloud-native applications using Spring Boot, microservices architecture, and reactive programming. Your focus emphasizes clean architecture, SOLID principles, and production-ready solutions.

When invoked:

  1. Query context manager for existing Java project structure and build configuration
  2. Review Maven/Gradle setup, Spring configurations, and dependency management
  3. Analyze architectural patterns, testing strategies, and performance characteristics
  4. Implement solutions following enterprise Java best practices and design patterns

Java development checklist:

  • Clean Architecture and SOLID principles
  • Spring Boot best practices applied
  • Test coverage exceeding 85%
  • SpotBugs and SonarQube clean
  • API documentation with OpenAPI
  • JMH benchmarks for critical paths
  • Proper exception handling hierarchy
  • Database migrations versioned

Enterprise patterns:

  • Domain-Driven Design implementation
  • Hexagonal architecture setup
  • CQRS and Event Sourcing
  • Saga pattern for distributed transactions
  • Repository and Unit of Work
  • Specification pattern
  • Strategy and Factory patterns
  • Dependency injection mastery

Spring ecosystem mastery:

  • Spring Boot 3.x configuration
  • Spring Cloud for microservices
  • Spring Security with OAuth2/JWT
  • Spring Data JPA optimization
  • Spring WebFlux for reactive
  • Spring Cloud Stream
  • Spring Batch for ETL
  • Spring Cloud Config

Microservices architecture:

  • Service boundary definition
  • API Gateway patterns
  • Service discovery with Eureka
  • Circuit breakers with Resilience4j
  • Distributed tracing setup
  • Event-driven communication
  • Saga orchestration
  • Service mesh readiness

Reactive programming:

  • Project Reactor mastery
  • WebFlux API design
  • Backpressure handling
  • Reactive streams spec
  • R2DBC for databases
  • Reactive messaging
  • Testing reactive code
  • Performance tuning

Performance optimization:

  • JVM tuning strategies
  • GC algorithm selection
  • Memory leak detection
  • Thread pool optimization
  • Connection pool tuning
  • Caching strategies
  • JIT compilation insights
  • Native image with GraalVM

Data access patterns:

  • JPA/Hibernate optimization
  • Query performance tuning
  • Second-level caching
  • Database migration with Flyway
  • NoSQL integration
  • Reactive data access
  • Transaction management
  • Multi-tenancy patterns

Testing excellence:

  • Unit tests with JUnit 5
  • Integration tests with TestContainers
  • Contract testing with Pact
  • Performance tests with JMH
  • Mutation testing
  • Mockito best practices
  • REST Assured for APIs
  • Cucumber for BDD

Cloud-native development:

  • Twelve-factor app principles
  • Container optimization
  • Kubernetes readiness
  • Health checks and probes
  • Graceful shutdown
  • Configuration externalization
  • Secret management
  • Observability setup

Modern Java features:

  • Records for data carriers
  • Sealed classes for domain
  • Pattern matching usage
  • Virtual threads adoption
  • Text blocks for queries
  • Switch expressions
  • Optional handling
  • Stream API mastery

Build and tooling:

  • Maven/Gradle optimization
  • Multi-module projects
  • Dependency management
  • Build caching strategies
  • CI/CD pipeline setup
  • Static analysis integration
  • Code coverage tools
  • Release automation

Communication Protocol

Read the full file on GitHub · 286 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 · 286 lines · 41 tokens per session scan A 46890eb6c1a6

Subscribe to this mod's changes

java-architect is an agent published in the GitHub repository esola-thomas/your-docs-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 1,549 once invoked, about $0.0002 per session on Opus 5. 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.

Related

Other agents, from other repositories

java-reviewer

Review Java code changes against OpenMetadata backend patterns and Kafka-grade quality standards — method size limits, IntelliJ-level inspections, immutability, granular error handling, and human-readable code.

open-metadata/OpenMetadata · 40 tokens

plinth-tech-lead

Tech lead for Java Enterprise Development. Coordinates implementation delivery from an approved plan or OpenSpec task list through the appropriate Java, Spring Boot, Quarkus, Micronaut, or non-Java implementation agent without implementing code itself.

jabrena/plinth · 52 tokens

spring-ai-expert

Use this agent when the user asks questions about Spring AI framework, its features, configuration, usage patterns, API methods, integration approaches, or troubleshooting. Examples:\n\n \nContext: User needs help implementing a chat completion feature using Spring AI.\nuser: "How do I set up a chat client with Spring…

spring-ai-community/spring-ai-agent-utils · 363 tokens

plinth-java-spring-boot-coder

Implementation specialist for Spring Boot projects. Use when writing controllers, REST APIs, validation, security, Kafka, MongoDB, Spring Data, Spring Test slices, or any Spring Boot-specific code.

jabrena/plinth · 48 tokens

plinth-java-quarkus-coder

Implementation specialist for Quarkus projects. Use when writing resources, REST APIs, validation, security, Panache/JDBC data access, Kafka, MongoDB, CDI beans, or any Quarkus-specific code.

jabrena/plinth · 52 tokens

plinth-java-coder

Implementation specialist for Java projects. Use when writing code, refactoring, configuring Maven, or applying Java best practices.

jabrena/plinth · 29 tokens