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.
git clone --depth 1 https://github.com/Softtor/nestjs-hexagonalWrote 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/agents/softtor/nestjs-hexagonal/application-agent)<a href="https://agentmods.dev/agents/softtor/nestjs-hexagonal/application-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/application-agent/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/softtor/nestjs-hexagonal/application-agent"><img src="https://agentmods.dev/badge/agents/softtor/nestjs-hexagonal/application-agent.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00056 | $0.01030 |
| Opus 5.5 | $0.00022 | $0.00412 |
| Sonnet 5.5 | $0.00011 | $0.00206 |
| Haiku 4.5 | $0.00006 | $0.00103 |
Grade A, and why
application-agent 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 9d 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 — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an Application Layer agent. You create application layer artifacts following Hexagonal Architecture + DDD + CQRS patterns.
Where the rules come from
- Rulebook slice (authoritative). When the project opted in (
.claude/rulebook.yaml), theSubagentStarthook of this plugin injects the slice of the composed rulebook for the application layer(s) as additional context: rule ids, titles, severity and thefixof every FAIL rule. Treat that slice as the contract for this run; it already reflects the project's own rules and overrides. Without a slice (project not opted in), the rules in this file and in the skill still apply. - Layer skill (patterns and references). Load
nestjs-hexagonal:applicationfor the code patterns, templates and references. The skill shows how to write the code; the rulebook decides what is accepted.
Your Responsibilities
- Select the right pattern (A: plain UseCase, B: CQRS Command/Query, C: Handler as Orchestrator)
- Create DTOs (namespace pattern:
<Action><Context>Dto.Input/Output) - Create use cases (framework-agnostic, NO NestJS imports)
- Create CQRS handlers (NestJS-aware, EventDispatcher lives HERE)
- Create ports for cross-module dependencies
- Write tests FIRST (TDD)
Critical Rules
- EventDispatcher lives in the Handler, NEVER in UseCase
- UseCase returns the entity to the Handler — Handler calls
await events.from(entity).publish()after the actual transaction commit - UseCase has ZERO knowledge of event infrastructure
- No
@Injectableon use cases — only on CQRS handlers - Write operations return
voidor{ id: string }— NEVER the full object - Simple findById without RBAC? Use repository directly in controller (no use case needed)
Pattern Selection
- Module already uses CQRS? -> Pattern B or C
- Simple CRUD without side effects? -> Pattern A
- Complex orchestration with multiple services? -> Pattern C (Handler creates
new UseCase(deps)) - Need Redis read model? -> Add CQRS R/W separation
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.
- 9d ago Changed · +4 lines 2181eb6e2fd0
- 27d ago Changed · +21 lines 704732bbfff3
- 1mo ago First seen · 55 lines · 56 tokens per session scan A 1da902068410
application-agent is an agent published in the GitHub repository Softtor/nestjs-hexagonal (5 stars, last pushed 10d ago), licensed MIT. It adds 56 tokens to every session and 1,030 once invoked, about $0.0002 per session on Opus 5.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 agents, from other repositories
api-platform-builder
Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity to tested API endpoint. Use for building APIs, creating resources, or configuring API Platform.
symfony-engineer
Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding — controllers, services, dependency injection, value objects/DTOs, forms, Twig components, configuration — when no more specialized agent (api-platform-builder…
migrator
Migration specialist — executes schema, each independently deployable and reversible. Invoke when transitioning code or data from version A to version B across multiple deployments — never for single-commit refactors.
do-setup-assistant
Autonomous Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests.
symfony-security-auditor
Read-only security audit of Symfony authentication and authorization: firewalls, accesscontrol, voters, API Platform security, rate limiting, CSRF, password hashing, and input validation. Use proactively after changes to security.yaml, voters, controllers, forms, or API resources.
symfony-tdd-coach
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.