apollo
AGENTS.md30k starsChanged 4 years agoApache-2.0View on GitHub
We split this AGENTS.md into the rules it gives an agent
12 rules. About 1 is common, 4 are distinctive, and 7 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 19
Follow Google Java Style Guide.
- Very specific: line 20
Use the IDE configs in apollo-buildtools/style/ (IntelliJ/Eclipse).
- Very specific: line 22
Use standard Java naming: packages lower.case, classes UpperCamelCase, tests *Test.
- Very specific: line 25
Treat OpenAPI as contract-first: update spec in apolloconfig/apollo-openapi before (or together with) portal implementation changes.
- Very specific: line 32
Put new tests under the module’s src/test/java with *Test suffix.
- Distinctive: line 33
Add unit tests for new features or important bug fixes.
- Very specific: line 36
Use Conventional Commits format (e.g., feat:, fix:).
- Very specific: line 37
If a commit fixes an issue, append Fixes #123 in the commit message.
- Distinctive: line 38
Commit only on feature branches.
- Distinctive: line 41
When merging a PR on GitHub: if it has a single commit, use rebase and merge.
- Common: line 51
Do not commit secrets or environment-specific credentials.
- Very specific: line 52
Follow SECURITY.md for vulnerability reporting.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.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
Repository Guidelines
Project Structure & Module Organization
- Multi-module Maven repo with root
pom.xmland service modules likeapollo-configservice,apollo-adminservice, andapollo-portal, shared libs inapollo-common, and packaging inapollo-assembly. apollo-bizis a shared business-logic module used by services like config/admin (not a standalone service).- Build and release tooling lives in
scripts/(e.g.,scripts/build.sh) andapollo-buildtools/(code style configs). - Database and schema assets are under
scripts/sqland modulesrc/main/resourcesfolders. - Tests follow standard Maven layout:
*/src/test/javaand*/src/test/resourcesinside each module. - Documentation is in
docs/.
Build, Test, and Development Commands
./mvnw -DskipTests packagebuilds all modules../mvnw testruns the full test suite via Surefire (may log warnings if local meta/admin services are not running)../mvnw -pl apollo-configservice -am testruns tests for a specific module and its dependencies../mvnw spotless:applyformats code and must be run before opening a PR../scripts/build.shgenerates distributable packages (used for deployment workflows).
Coding Style & Naming Conventions
- Follow Google Java Style Guide; 2-space indentation and standard Java conventions apply.
- Use the IDE configs in
apollo-buildtools/style/(IntelliJ/Eclipse). - New Java classes should include a short Javadoc describing the class purpose.
- Use standard Java naming: packages
lower.case, classesUpperCamelCase, tests*Test.
OpenAPI Contract Workflow (apollo-portal)
- Treat OpenAPI as contract-first: update spec in
apolloconfig/apollo-openapibefore (or together with) portal implementation changes. apollo-portal/pom.xmlusesapollo.openapi.spec.url+openapi-generator-maven-plugin; generated sources undertarget/generated-sources/openapi/src/main/javaare added to compile path viabuild-helper-maven-plugin.- For new/changed OpenAPI endpoints, prefer implementing generated
*ManagementApiinterfaces and generated models; avoid introducing hand-written DTO/controller contracts that bypass the spec pipeline. - In PR review, verify contract alignment explicitly: endpoint path, request/response model, and permissions in
apolloshould match the spec inapollo-openapi.
Testing Guidelines
- JUnit 5 is the default, with Vintage enabled for legacy JUnit 4 tests.
- Put new tests under the module’s
src/test/javawith*Testsuffix. - Add unit tests for new features or important bug fixes.
Commit & Pull Request Guidelines
- Use Conventional Commits format (e.g.,
feat:,fix:). - If a commit fixes an issue, append
Fixes #123in the commit message. - Commit only on feature branches; never commit directly to
masterormain. CHANGES.mdentries must use a PR URL in Markdown link format; if the PR URL is not available yet, open the PR first, then add/updateCHANGES.mdin a follow-up commit.- Rebase onto
masterand squash feature work into a single commit before merge. - When merging a PR on GitHub: if it has a single commit, use rebase and merge; if it has multiple commits, use squash and merge.
- Non-trivial contributions require signing the CLA.
- Open a feature branch for your change and submit a PR using
.github/PULL_REQUEST_TEMPLATE.md. - PRs should include a clear description, tests run, and any relevant screenshots/logs; use GitHub issues for tracking.
- The PR checklist expects
mvn clean test,mvn spotless:apply, and an update toCHANGES.md. - For upstream contributions, open PRs against
apolloconfig/apolloand fill the template with real content (not the raw template text).
Security & Configuration Notes
- Apollo supports H2 in-memory for local development and MySQL for production; prefer H2 locally unless you need a real database.
- Review
scripts/sqland environment config when using MySQL. - Do not commit secrets or environment-specific credentials; use local overrides instead.
- Follow
SECURITY.mdfor vulnerability reporting.
Trending
Less talk lately.about the whole repository
Who's talking about apolloconfig/apollo
- apolloconfig/apollo-operator“Add Operator for Apollo”GitHub · Jun 27, 2023 · 2 reactions
- A Hacker News story“Apollo – Reliable configuration management system”Hacker News · Feb 11, 2022 · 2 points
- explyt/spring-plugin“[BUG] spring-web: Invalid inspection and quick-fix for special RequestMapping path key”GitHub · Feb 5, 2025 · 1 reactions
- open-telemetry/opentelemetry-java-instrumentation“Add Apolloconfig Inst...”GitHub · Nov 25, 2024 · 1 reactions
- apolloconfig/apollo-java“feat(openapi): create app”GitHub · Aug 11, 2023 · 1 reactions
The biggest 5 of 35 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 35
Talked about on GitHub, the web and Hacker News (35 times).
On GitHub · 32
- Jun 27, 2023Add Operator for Apollo — apolloconfig/apollo-operator2 reactions · 5 comments
- Feb 5, 2025[BUG] spring-web: Invalid inspection and quick-fix for special RequestMapping path key — explyt/spring-plugin1 reaction · 1 comment
- Nov 25, 2024Add Apolloconfig Inst... — open-telemetry/opentelemetry-java-instrumentation1 reaction · 10 comments
- Aug 11, 2023feat(openapi): create app — apolloconfig/apollo-java1 reaction · 8 comments
- Oct 16, 2026[Feature] support apollo config — t8y2/dbx0 reactions · 6 comments
27 more on GitHub
- Aug 20, 2026feat: support extendInfo in OpenAPI getNamespace(s) calls — apolloconfig/apollo-java0 reactions · 5 comments
- Jul 10, 2026要不要封装 https://github.com/apolloconfig/apollo — go-spring/go-spring0 reactions · 1 comment
- Feb 27, 2026提供一个创建用户的OpenAPI — apolloconfig/apollo-openapi0 reactions
- Feb 19, 2026Prepare Apollo Java 2.6.0-SNAPSHOT — apolloconfig/apollo-java0 reactions · 2 comments
- Feb 19, 2026Release Apollo Java 2.5.0 — apolloconfig/apollo-java0 reactions · 2 comments
- Feb 19, 2026Release Apollo Java 2.5.0 — apolloconfig/apollo-java0 reactions · 2 comments
- Feb 19, 2026ci: externalize release workflow helper scripts — apolloconfig/apollo-java0 reactions · 2 comments
- Feb 18, 2026test: overhaul automated compatibility coverage — apolloconfig/apollo-java0 reactions · 3 comments
- Jan 27, 2026(Windows) Failed to parse SARIF report: unexpected end of JSON input — seqra/opentaint0 reactions · 2 comments
- Jan 4, 2026CVE Application: Stored HTML Injection via Search Highlighting Mechanism in Apollo Config Server — AnalogyC0de/public_exp0 reactions
- Nov 30, 2025REQUEST: New membership for tacklequestions — apolloconfig/apollo-community0 reactions · 3 comments
- Nov 1, 2025ci/code-formatter — spaceluke/apollo0 reactions
- May 21, 2025apolloconfig/apollo: Apollo(阿波罗)是一款可靠的分布式配置管理中心,诞生于携程框架研发部,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。 — awesome-ops/awesome-ops.github.io0 reactions
- Feb 5, 2025[BUG] spring-web: Invalid inspection when method path parameter uses class declaration path template — explyt/spring-plugin0 reactions · 1 comment
- Dec 28, 2024REQUEST: New membership for <BlackBear2003> — apolloconfig/apollo-community0 reactions · 3 comments
- Dec 14, 2024fix the concurrent issue in SpringValueRegistry.scanAndClean — apolloconfig/apollo-java0 reactions · 1 comment
- Sep 26, 2024support spring boot3 — apolloconfig/apollo-java0 reactions · 5 comments
- Sep 12, 2024[OSPP]Support Kubernetes ConfigMap for Apollo java, golang client — apolloconfig/apollo-java0 reactions · 4 comments
- Sep 9, 2024Identify New Test Projects — cloudhubs/cimet0 reactions · 1 comment
- Jan 16, 2024Package for apollo files? — izot/lon-driver0 reactions
- Aug 18, 2023apollo-quick-start-2.1.0 新增配置如果有中文就报错了 — apolloconfig/apollo-quick-start0 reactions · 3 comments
- Sep 8, 2022Bump apollo-core from 1.5.1 to 1.8.0 — doobo/apollo-client0 reactions
- Jul 24, 2022REQUEST: New membership for hezhangjian — apolloconfig/apollo-community0 reactions · 3 comments
- Apr 11, 2022Bump apollo-core from 1.2.0 to 1.8.0 in /user-service-provider — githublujiefeng/LifeOnechance0 reactions
- Dec 4, 2021Bump apollo-core from 1.0.0 to 1.8.0 in /configCenter/apollo-client — liangxifeng833/springcloud0 reactions
- Nov 29, 2021Bump apollo-core from 1.4.0 to 1.8.0 in /z-boot-starter-switcher — zhangxianwen2/z-parent0 reactions
- Oct 24, 2021path's suffix keep when user switch to another language's document — docsifyjs/docsify0 reactions · 2 comments
On the web · 2
- Feb 19, 2026apolloconfig/apollo v2.5.0 on GitHub — google.com
- Feb 17, 2023FAQ · apolloconfig/apollo Wiki — google.com
On Hacker News · 1
- Feb 11, 2022Apollo – Reliable configuration management system2 points · 1 comment
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
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.

