This repository contains multiple backend modules in Java (Maven) and multiple frontend applications and libraries in Angular.
Shared coding standards live under .agent-rules/.
Critical — always follow
Only read a common file when you are working in the matching stack (use the table below). If a common file is already in your context for this task, do not read it again (avoid duplicate rules and wasted tokens).
| Stack | When to read | File |
|---|---|---|
| Java | Changes under a Maven module path listed under Java in Nested AGENTS.md module roots below |
.agent-rules/java.md |
| Angular | Changes under a path listed under Angular in Nested AGENTS.md module roots below |
.agent-rules/angular.md |
Java (top-level Maven modules; read AGENTS.md there when the file exists)
gravitee-apim-common/AGENTS.mdgravitee-apim-definition/AGENTS.mdgravitee-apim-distribution/AGENTS.mdgravitee-apim-gateway/AGENTS.mdgravitee-apim-integration-tests/AGENTS.mdgravitee-apim-plugin/AGENTS.mdgravitee-apim-repository/AGENTS.mdgravitee-apim-reporter/AGENTS.mdgravitee-apim-rest-api/AGENTS.mdgravitee-gamma/gravitee-gamma-module-apim/AGENTS.md
Angular
gravitee-apim-console-webui/AGENTS.mdgravitee-apim-portal-webui-next/AGENTS.mdgravitee-apim-webui-libs/gravitee-dashboard/AGENTS.mdgravitee-apim-webui-libs/gravitee-kafka-explorer/AGENTS.mdgravitee-apim-webui-libs/gravitee-markdown/AGENTS.md
- Load only the common rule file(s) that match the code you are editing (Java and/or Angular — both if you touch both).
- Find the nested
AGENTS.mdfor that area (walk up from the files you edit, or open the module root from the list above). - Apply common and nested rules together — nested rules add or specialize; if something conflicts, prefer the nested guidance for that module.
- Only add rules that earn their token cost. Do not document things easily inferred from context (e.g., scripts already in
package.json, standard framework behavior, basic language syntax). - The best rules come from observed agent mistakes. If an agent repeatedly gets something wrong in this repo, that deserves a rule. If it hasn't failed at it, it probably doesn't need to be written down.
- Place rules at the right level. Module-specific conventions go in the nested module's
AGENTS.md; cross-cutting standards go in.agent-rules/. Don't duplicate.