voglander
AGENTS.md393 starsChanged 4 months agoApache-2.0View on GitHub
Voglander is a Java 17/Spring Boot multi-module platform. voglander-web owns HTTP/SSE entry points; voglander-service domain and live-stream orchestration; voglander-manager templates, event sharding, coordination, and node routing; voglander-repository persistence/cache. External adapters belong in voglander-integration; shared contracts/utilities in voglander-client and voglander-common. Use src/main/java for code and src/main/resources for configuration. Place all tests under voglander-web/src/test/java/io/github/lunasaw/voglander. Database scripts live in sql/; documentation in doc/ and openspec/. SQLite is the local default. Redis tests skip when Redis is unavailable. Read doc/architecture/current/ARCHITECTURE-OVERVIEW.md before structural changes. Keep…
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 31,439 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.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-menu-pageSkill
- debug-sip-commSkill
- diagnose-error-logsSkill
- add-menu-pageSkill
- debug-sip-commSkill
- diagnose-error-logsSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 1 is common, 0 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
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
- Very specific: line 7
Use src/main/java for code and src/main/resources for configuration.
- Very specific: line 21
Read doc/architecture/current/ARCHITECTURE-OVERVIEW.md before structural changes.
- Very specific: line 23
Follow doc/DEVELOPMENT_WORKFLOW.md for features: research code and impact.
- Very specific: line 35
Use Conventional Commits: feat(database): add PostgreSQL support, fix(scope): ..., or docs: ....
- Common: line 39
Never commit credentials, generated databases, or local overrides.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Voglander is a Java 17/Spring Boot multi-module platform. voglander-web owns HTTP/SSE entry points; voglander-service domain and live-stream orchestration; voglander-manager templates, event sharding, coordination, and node routing; voglander-repository persistence/cache. External adapters belong in voglander-integration; shared contracts/utilities in voglander-client and voglander-common.
Use src/main/java for code and src/main/resources for configuration. Place all tests under voglander-web/src/test/java/io/github/lunasaw/voglander. Database scripts live in sql/; documentation in doc/ and openspec/.
Build, Test, and Development Commands
mvn clean compile— compile every module.mvn spring-boot:run -pl voglander-web— runApplicationWeblocally.mvn test— run the complete JUnit 5 test suite.mvn test -Dtest=DeviceManagerTest— run one test class; append#methodNamefor one method../generate-coverage-report.sh— generate aggregate JaCoCo coverage.
SQLite is the local default. Redis tests skip when Redis is unavailable.
Architecture & Development Workflow
Read doc/architecture/current/ARCHITECTURE-OVERVIEW.md before structural changes. Keep Web limited to validation/model conversion, Integration to external adaptation, and persistence in Repository. Extend protocols through ProtocolEventHandler (inbound), DeviceCommandService (outbound), or MediaProtocolHandler (media). Preserve sharded event ordering, callId-centred SIP state, Manager cache invalidation, and event-driven SSE.
Follow doc/DEVELOPMENT_WORKFLOW.md for features: research code and impact; present Check 关键点 and await confirmation; design and self-review; implement bottom-up with red-green-refactor TDD; run acceptance gates; report changes, test evidence, risks, and remaining work. After three failed attempts at one issue, reassess the approach.
Coding Style & Naming Conventions
Use four-space indentation, Java 17, jakarta.*, Lombok, and FastJSON2—not Jackson/Gson. Packages begin with io.github.lunasaw.voglander. Name models *DO, *DTO, *Req, and *VO. Controllers convert through assemblers; Manager APIs expose DTOs, never DOs. Build MyBatis-Plus queries with conditional lambda chains. Use LocalDateTime internally and Unix-millisecond web values.
Testing Guidelines
Name tests *Test. Use JUnit 5 and Mockito for controller/service unit tests. Manager/repository tests use @SpringBootTest with BaseTest; asynchronous and HTTP tests require explicit cleanup, not @Transactional. Cover behavior changes and isolate fixtures with unique keys.
Commit & Pull Request Guidelines
Use Conventional Commits: feat(database): add PostgreSQL support, fix(scope): ..., or docs: .... PRs should explain the problem and solution, list verification, link issues/specifications, and include UI screenshots. Highlight schema, configuration, protocol, or compatibility impacts.
Security & Protocol Compliance
Never commit credentials, generated databases, or local overrides. Keep secrets in environment-specific configuration. GB28181, SIP, and ONVIF changes must follow their standards; do not infer identifiers through string prefixes or reuse lab-only conventions in production paths.
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.

