quarkus-super-heroes
CLAUDE.md395 starsChanged 5 years agoApache-2.0View on GitHub
Quarkus Super Heroes is a microservices-based application showcasing Quarkus features. It consists of 7 services communicating via REST, gRPC, and Kafka, with a React UI. Services and their ports: Communication flow: - UI → rest-fights (REST) - rest-fights → rest-heroes, rest-villains, rest-narration (REST via SmallRye Stork) - rest-fights → grpc-locations (gRPC) - rest-fights → Kafka (Avro messages via Apicurio Registry) - event-statistics ← Kafka consumer Observability: OpenTelemetry → Grafana LGTM stack (Grafana, Loki, Tempo, Prometheus) via OTLP
In this repository14 other files it gives its agents.
- event-statistics/AGENTS.mdAGENTS.md
- grpc-locations/AGENTS.mdAGENTS.md
- rest-fights/AGENTS.mdAGENTS.md
- rest-heroes/AGENTS.mdAGENTS.md
- rest-narration/AGENTS.mdAGENTS.md
- rest-villains/AGENTS.mdAGENTS.md
- ui-super-heroes/AGENTS.mdAGENTS.md
- event-statistics/CLAUDE.mdCLAUDE.md
- grpc-locations/CLAUDE.mdCLAUDE.md
- rest-fights/CLAUDE.mdCLAUDE.md
- rest-heroes/CLAUDE.mdCLAUDE.md
- rest-narration/CLAUDE.mdCLAUDE.md
- rest-villains/CLAUDE.mdCLAUDE.md
- ui-super-heroes/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 69
Contract-first: All REST services (rest-villains, rest-heroes, rest-narration, rest-fights) use the Quarkiverse OpenAPI Generator Server …
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Quarkus Super Heroes is a microservices-based application showcasing Quarkus features. It consists of 7 services communicating via REST, gRPC, and Kafka, with a React UI.
Build Commands
# Build and test everything (JVM)
./mvnw clean verify
# Build a single module
cd rest-heroes && ./mvnw clean verify
# Build without tests
./mvnw clean package -DskipTests
# Build with container images
./mvnw clean package -Dquarkus.container-image.build=true -DskipTests
# Native build (requires GraalVM/Mandrel)
./mvnw clean verify -Pnative
# Run a single test class
cd rest-heroes && ./mvnw test -Dtest=HeroResourceTest
# Run a single test method
cd rest-heroes && ./mvnw test -Dtest=HeroResourceTest#testGetAllHeroes
# Run integration tests only
cd rest-heroes && ./mvnw verify -DskipUnitTests
# Run in dev mode (starts dependencies via Dev Services)
cd rest-heroes && ./mvnw quarkus:devArchitecture
Services and their ports:
| Service | Port | Type | Database | Language |
| rest-fights | 8082 | REST (reactive) | MongoDB | Java |
| rest-heroes | 8083 | REST (reactive) | PostgreSQL | Java |
| rest-villains | 8084 | REST (blocking) | PostgreSQL | Java |
| rest-narration | 8087 | REST (blocking) | — (OpenAI) | Java |
| event-statistics | 8085 | Kafka consumer + WebSocket | — | Java |
| grpc-locations | 8089 | gRPC (blocking) | MariaDB | Kotlin |
| ui-super-heroes | 8080 | React (via Quinoa) | — | TypeScript |
Communication flow:
- UI → rest-fights (REST)
- rest-fights → rest-heroes, rest-villains, rest-narration (REST via SmallRye Stork)
- rest-fights → grpc-locations (gRPC)
- rest-fights → Kafka (Avro messages via Apicurio Registry)
- event-statistics ← Kafka consumer
Observability: OpenTelemetry → Grafana LGTM stack (Grafana, Loki, Tempo, Prometheus) via OTLP
Key Technical Details
- Java 25 required (
maven.compiler.release=25) - Quarkus platform version managed via
quarkus.platform.versionproperty in root pom.xml - Maven wrapper (
./mvnw) — do not use system Maven - Reactive vs blocking: rest-heroes and rest-fights use Hibernate Reactive with Panache; rest-villains uses Hibernate ORM with Panache (blocking)
- Contract-first: All REST services (rest-villains, rest-heroes, rest-narration, rest-fights) use the Quarkiverse OpenAPI Generator Server extension to generate JAX-RS resource interfaces from
src/main/resources/openapi/openapi.ymlat build time - Contract testing: Pact consumer/provider tests across services (pact files in
src/test/resources/pacts/) - Dev Services: Quarkus auto-starts databases, Kafka, etc. in dev/test mode — Docker/Podman must be running
- Test messaging: Kafka replaced with
smallrye-in-memoryconnector in%testprofile
Code Style
- EditorConfig enforces formatting — 2-space indent (default), 180-char line length, LF endings
- Java imports order:
$*,java.**,javax.**,jakarta.**,org.**,org.apache.commons.**,org.springframework.**,io.quarkus.**,io.quarkus.sample.**,* - Injection style varies by module: rest-villains uses field injection (
@Inject); rest-heroes, rest-narration, grpc-locations use constructor injection
Documentation Site
- Published at: https://quarkus.io/quarkus-super-heroes
- Source:
docs/module — a Quarkus Roq static site (not a traditional application module) - Theme:
quarkus-roq-theme-default(Tailwind CSS, sidebar navigation, dark mode) - Build:
cd docs && mvn quarkus:devfor local dev, orQUARKUS_ROQ_GENERATOR_BATCH=true mvn -B package quarkus:run -DskipTestsfor static generation - Deployment:
.github/workflows/deploy-docs-site.yml— publishes to GitHub Pages after CI passes - Content:
docs/content/— FrontMatter markdown pages curated from the original READMEs - Images:
docs/public/images/— copies of images from service directories - Navigation:
docs/data/menu.yml - README pattern: Service READMEs are intentionally brief (intro + dev mode command + link to docs site). All detailed documentation lives in the docs site to avoid duplication.
Deployment Resources
Generated deployment descriptors live in deploy/:
deploy/docker-compose/— Docker Compose files (e.g.,java25.yml,native.yml,monitoring.yml)deploy/k8s/— Kubernetes/OpenShift/Minikube/Knative descriptors
These are auto-generated by scripts/generate-docker-compose-resources.sh and scripts/generate-k8s-helm-resources.sh. Do not edit them manually.
CI/CD
- Required check:
simple-build-test.yml— runs on all PRs (JVM + container + native builds) - Docs deployment:
deploy-docs-site.yml— publishes docs site to GitHub Pages after CI passes on main, or on docs-only changes - Container images: pushed to
quay.io/quarkus-super-heroesfor amd64 and arm64 - Composite actions:
.github/actions/save-container-image/and.github/actions/load-container-image/for passing container images between workflow jobs - GitHub Actions allowlist: the quarkusio org restricts allowed actions — see https://github.com/quarkusio/quarkus/wiki/GitHubActions
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
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.

