agentleFS
MindrallyMindrally/skills/java-quarkus-development/SKILL.md

java-quarkus-development

Skill275 starsChanged 52 days agoApache-2.0View on GitHub

Java Quarkus development guidelines for building cloud-native applications with fast startup, minimal memory footprint, and GraalVM native builds

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

38 rules. About 0 are common, 24 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write clean, efficient, and well-documented Java code using Quarkus best practices

    line 13
  2. Distinctive:

    Follow SOLID principles and microservices architecture patterns

    line 17
  3. Very specific:

    Use quarkus dev for rapid iteration with live reload

    line 22
  4. Distinctive:

    Use Dev UI for debugging and configuration inspection

    line 24
  5. Very specific:

    Use @ConfigProperty for type-safe configuration injection

    line 30
  6. Very specific:

    Use %dev, %test, %prod prefixes for environment-specific configs

    line 36
  7. Distinctive:

    Keep sensitive values out of source control

    line 38
  8. Very specific:

    Use .env files for local development

    line 39
  9. Very specific:

    Use @Inject for dependency injection

    line 44
  10. Very specific:

    Use @Named to qualify implementations

    line 45
  11. Very specific:

    Use @Singleton, @ApplicationScoped, @RequestScoped appropriately

    line 46
  12. Distinctive:

    Prefer constructor injection for required dependencies

    line 47
  13. Very specific:

    Use @IfBuildProfile for conditional beans

    line 51
  14. Distinctive:

    Avoid reflection-heavy patterns for native builds

    line 52
  15. Very specific:

    Use @Path, @GET, @POST, etc.

    line 57
  16. Very specific:

    Use @Valid for input validation

    line 59
  17. Distinctive:

    Use Mutiny for reactive programming

    line 63
  18. Distinctive:

    Use Panache for simplified JPA patterns

    line 70
  19. Very specific:

    Use PanacheEntity for entities with built-in operations

    line 72
  20. Distinctive:

    Use Flyway or Liquibase for migrations

    line 76
  21. Distinctive:

    Use reactive database clients for non-blocking I/O

    line 78
  22. Very specific:

    Use @QuarkusTest for integration tests

    line 83
  23. Very specific:

    Use @QuarkusIntegrationTest for native image tests

    line 84
  24. Distinctive:

    Use rest-assured for endpoint testing

    line 88
  25. Distinctive:

    Test both success and error scenarios

    line 89
  26. Distinctive:

    Verify response bodies and status codes

    line 90
  27. Distinctive:

    Test authentication and authorization

    line 91
  28. Distinctive:

    Test native builds regularly during development

    line 97
  29. Very specific:

    Use @RegisterForReflection when needed

    line 98
  30. Distinctive:

    Use lazy initialization where appropriate

    line 104
  31. Distinctive:

    Use MicroProfile Health for liveness and readiness probes

    line 109
  32. Distinctive:

    Use MicroProfile Metrics for application metrics

    line 114
  33. Distinctive:

    Add custom metrics for business operations

    line 116
  34. Distinctive:

    Use OpenTracing/OpenTelemetry integration

    line 119
  35. Distinctive:

    Use Quarkus Security extensions

    line 125
  36. Distinctive:

    Use HTTPS in production

    line 129
  37. Distinctive:

    Use Quarkus container image extensions

    line 133
  38. Distinctive:

    Use distroless or minimal base images

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Java Quarkus Development Best Practices

Core Principles

  • Write clean, efficient, and well-documented Java code using Quarkus best practices
  • Focus on fast startup and minimal memory footprint via GraalVM native builds
  • Leverage Quarkus extensions for common functionality
  • Design for containerized and serverless deployments
  • Follow SOLID principles and microservices architecture patterns

Development Workflow

Quarkus Dev Mode

  • Use quarkus dev for rapid iteration with live reload
  • Leverage continuous testing during development
  • Use Dev UI for debugging and configuration inspection
  • Take advantage of Dev Services for local development

Configuration

Type-Safe Configuration

  • Use @ConfigProperty for type-safe configuration injection
  • Group related configs with @ConfigMapping interfaces
  • Validate configuration at startup
  • Document configuration properties

Profile-Based Configuration

  • Use %dev, %test, %prod prefixes for environment-specific configs
  • Override configs via environment variables in production
  • Keep sensitive values out of source control
  • Use .env files for local development

Dependency Injection

CDI Annotations

  • Use @Inject for dependency injection
  • Use @Named to qualify implementations
  • Use @Singleton, @ApplicationScoped, @RequestScoped appropriately
  • Prefer constructor injection for required dependencies

Bean Discovery

  • Understand Quarkus build-time bean discovery
  • Use @IfBuildProfile for conditional beans
  • Avoid reflection-heavy patterns for native builds

REST API Development

RESTEasy Reactive

  • Use @Path, @GET, @POST, etc. for endpoint definitions
  • Return proper HTTP status codes
  • Use @Valid for input validation
  • Implement exception mappers for consistent error responses

Reactive Patterns

  • Use Mutiny for reactive programming
  • Leverage Uni and Multi for async operations
  • Combine reactive with imperative code where appropriate

Data Access

Hibernate ORM with Panache

  • Use Panache for simplified JPA patterns
  • Leverage Active Record or Repository patterns
  • Use PanacheEntity for entities with built-in operations
  • Implement custom queries with find and list methods

Database Operations

  • Use Flyway or Liquibase for migrations
  • Configure connection pooling with Agroal
  • Use reactive database clients for non-blocking I/O

Testing

JUnit 5 Integration

  • Use @QuarkusTest for integration tests
  • Use @QuarkusIntegrationTest for native image tests
  • Leverage test profiles for different configurations

REST Endpoint Testing

  • Use rest-assured for endpoint testing
  • Test both success and error scenarios
  • Verify response bodies and status codes
  • Test authentication and authorization

Performance Optimization

Native Image Optimization

  • Build native images with GraalVM for production
  • Test native builds regularly during development
  • Use @RegisterForReflection when needed
  • Minimize reflection usage

Memory and Startup

  • Monitor memory usage in containers
  • Optimize for serverless cold starts
  • Use lazy initialization where appropriate

Observability

Health Checks

  • Use MicroProfile Health for liveness and readiness probes
  • Implement custom health checks for dependencies
  • Configure Kubernetes probes based on health endpoints

Metrics

  • Use MicroProfile Metrics for application metrics
  • Export metrics in Prometheus format
  • Add custom metrics for business operations

Distributed Tracing

  • Use OpenTracing/OpenTelemetry integration
  • Propagate trace context across services
  • Configure sampling appropriately for production

Security

  • Use Quarkus Security extensions
  • Implement authentication with OIDC or JWT
  • Configure CORS for web clients
  • Validate and sanitize all inputs
  • Use HTTPS in production

Containerization

  • Use Quarkus container image extensions
  • Build multi-stage Dockerfiles for native images
  • Configure resource limits appropriately
  • Use distroless or minimal base images

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.