Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/vepo/issues/issues-layered-architecturegit clone --depth 1 https://github.com/vepo/issuesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/vepo/issues/issues-layered-architecture)<a href="https://agentmods.dev/rules/vepo/issues/issues-layered-architecture"><img src="https://agentmods.dev/badge/rules/vepo/issues/issues-layered-architecture.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00532 | $0.00532 |
| Opus 5 | $0.00266 | $0.00266 |
| Sonnet 5 | $0.00106 | $0.00106 |
| Haiku 4.5 | $0.00053 | $0.00053 |
Grade A, and why
issues-layered-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Layered architecture
Follow ARCHITECTURE.md §6. Dependencies flow downward only:
*Endpoint → *Service (when needed) → *Repository → database
*Endpoint — HTTP boundary
- One HTTP operation per class in
{context}.{action}subpackage (e.g.ticket.create.CreateTicketEndpoint). @ApplicationScoped+@Path; class-level@DenyAll, method-level@RolesAllowed.@Operation(operationId = "...")+@Tag(name = "...")for OpenAPI codegen.- Map path/query/body to domain calls; return
*Responserecords. - Must inject
*Service— no business logic, no@Transactionalin endpoints.
*Service — business logic
@ApplicationScoped; nameXxxService.- Orchestrate repositories, apply domain rules, fire events.
- Inject
*Repository; neverEntityManagerdirectly. - Never depend on
*Endpointor JAX-RS types.
*Repository — persistence
- One per entity;
@ApplicationScoped; nameXxxRepository. EntityManageronly here; queries and persistence only — no business rules or HTTP concerns.- Never inject
*Serviceor*Endpoint.
When adding a feature
Complete development-process.mdc phases 1–4 before coding. Phase 5 (TDD), in order:
- Entity (if new table) + Flyway baseline change per issues-flyway.mdc.
XxxRepository.XxxServicefor non-trivial logic.- One
*Endpointclass per HTTP operation under{context}.{action}/. - Angular facade + component if user-facing; run
npm run generate:apiafter API changes.
Violations — refactor toward layers
// ❌ Endpoint with audit logging inline
@POST
public TicketResponse create(CreateTicketRequest request) {
ticketRepository.persist(ticket);
historyRepository.persist(new TicketHistory(...));
}
// ✅ Endpoint delegates to service
@POST
public TicketResponse create(CreateTicketRequest request) {
return ticketHistoryService.createTicket(request);
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 61 lines · 532 tokens per session scan A b0907c2f9dcc
issues-layered-architecture is a cursor rule published in the GitHub repository vepo/issues (8 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 532 tokens to every session, about $0.0027 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
pages
Source: docs/agents/pages.md Regenerate: npm run agents:sync -w packages/openbridge-webcomponents -->.
aws-rds-best-practices
AWS RDS PostgreSQL best practices - database configuration, connection management, authentication, backup, and performance optimization standards.
database
Database rules — apply when working with database schemas, queries, migrations, or ORM models.
database
Cursor rule "database" from ItamarZand88/awesome-agent-conventions, covering database best practices, prisma setup, prisma models, prisma queries and supabase setup.
standards-data-eng
Mandatory standards for Python and SQL data pipelines.
database
Database best practices focusing on Prisma and Supabase integration.