Skip to content
GitHub Actions edited this page Jan 29, 2026 · 3 revisions

Java Stack Guide

Installation

curl -fsSL https://raw.githubusercontent.com/krovomi/ai-agent-kit/main/install | bash -s -- --stack=java

Agents

Communs (tous les stacks)

Agent Rôle Model
@architect Design, SOLID, Clean Architecture Sonnet
@reviewer Code review, sécurité Sonnet
@docwriter Documentation API Haiku

Java spécifiques

Agent Rôle Model Tokens
@java-developer Java implementation Sonnet ~80
@java-tester Tests JUnit 5 + Mockito Sonnet ~60
@java-unit-tester Tests unitaires avec mocking Haiku ~40
@java-integration-tester Tests Spring Boot + Testcontainers Haiku ~50

Chains

Chain Séquence Usage
@chain:backend-feature arch → dev → test → review → doc Nouvelle feature backend
@chain:fullstack-feature backend → api → frontend → test → review Feature complète

Commandes

# Architecture
@architect "Design Spring Boot architecture for order management"

# Développement
@java-developer "Implement order service with Spring Boot"

# Tests
@java-tester "Write comprehensive tests for order module"
@java-unit-tester "Unit tests for business logic with Mockito"
@java-integration-tester "Integration tests with Testcontainers"

# Fullstack
/fullstack-feature --backend=java --frontend=nextjs "Add enterprise module"

Stack Configuration

java:
  architecture: "Spring Boot Architecture"
  build_command: "./mvnw clean compile"
  test_command: "./mvnw test"
  lint_command: "./mvnw spotless:check"
  frameworks:
    - "spring-boot"
    - "spring-framework"
    - "junit"
    - "maven"
    - "gradle"
    - "mockito"
    - "testcontainers"

Best Practices

  • Architecture : Spring Boot with layered architecture
  • Testing : JUnit 5 with Mockito for unit tests, Testcontainers for integration
  • Code Style : Use Spotless for consistent formatting
  • Dependency Injection : Constructor injection preferred
  • Error Handling : Use @ControllerAdvice with custom exceptions

Clone this wiki locally