agentleFS
lunasawlunasaw/voglander/AGENTS.md

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…

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
  1. Very specific:

    Use src/main/java for code and src/main/resources for configuration.

    line 7
  2. Very specific:

    Read doc/architecture/current/ARCHITECTURE-OVERVIEW.md before structural changes.

    line 21
  3. Very specific:

    Follow doc/DEVELOPMENT_WORKFLOW.md for features: research code and impact.

    line 23
  4. Very specific:

    Use Conventional Commits: feat(database): add PostgreSQL support, fix(scope): ..., or docs: ....

    line 35
  5. Common:

    Never commit credentials, generated databases, or local overrides.

    line 39

≈ “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.

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

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 — run ApplicationWeb locally.
  • mvn test — run the complete JUnit 5 test suite.
  • mvn test -Dtest=DeviceManagerTest — run one test class; append #methodName for 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.

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.