Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Softtor/nestjs-hexagonalnpx agentmods add skills/softtor/nestjs-hexagonal/applicationWrote 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/skills/softtor/nestjs-hexagonal/application)<a href="https://agentmods.dev/skills/softtor/nestjs-hexagonal/application"><img src="https://agentmods.dev/badge/skills/softtor/nestjs-hexagonal/application/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/skills/softtor/nestjs-hexagonal/application"><img src="https://agentmods.dev/badge/skills/softtor/nestjs-hexagonal/application.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.00066 | $0.04303 |
| Opus 5.5 | $0.00026 | $0.01721 |
| Sonnet 5.5 | $0.00013 | $0.00861 |
| Haiku 4.5 | $0.00007 | $0.00430 |
Grade A, and why
application 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 13d 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 — 611 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Note: Examples use
companyIdas the multi-tenant identifier. Replace with your project's term (e.g.,organizationId,tenantId).
Application Layer
This skill covers everything inside a bounded context's application/ directory:
use cases, CQRS handlers, DTOs, ports, application services, and Redis read models.
1. Pattern Selection
Work through this flowchart before writing a single line of code.
Does the module already use CQRS (CommandBus / QueryBus)?
├── No → Pattern A (plain UseCase + TOKEN)
└── Yes →
Is this a simple read (findById) with no RBAC or transformation?
├── Yes → Skip use case — inject repository directly in controller
└── No →
Does orchestration span multiple services (QueryBus calls,
multiple ports, complex enrichment)?
├── Yes → Pattern C (Handler as Orchestrator)
└── No → Pattern B (CQRS Command/Query)
Need read model / projections?
└── CQRS R/W separation: write side → Pattern B/C, read side → Redis query handler
(see references/read-model-patterns.md)
Reusable logic between 2+ handlers?
└── Extract into Application Service (@Injectable, in application/services/)
Shared domain logic (no I/O, no framework)?
└── Extract into Domain Service (plain class, in domain/services/)
2. Pattern A — Plain UseCase with TOKEN
Use when the context uses plain use cases without CQRS (e.g., customers, contacts).
Directory layout
application/
├── dtos/
│ └── create-<context>.dto.ts
└── usecases/
├── create-<context>.usecase.ts
└── __tests__/
└── create-<context>.usecase.spec.ts
DTO
// application/dtos/create-<context>.dto.ts
export namespace Create<Context>Dto {
export interface Input {
companyId: string;
name: string;
// add domain-specific fields
}
export interface Output {
id: string;
companyId: string;
name: string;
createdAt: Date;
}
}
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 13d ago Changed · +4 lines 91e905c812bb
- 1mo ago Changed · +66 tokens per session 92b1b087e024
- 1mo ago First seen · 607 lines · 0 tokens per session scan A fa867684abb6
application is a skill published in the GitHub repository Softtor/nestjs-hexagonal (5 stars, last pushed 13d ago), licensed MIT. It adds 66 tokens to every session and 4,303 once invoked, about $0.0003 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 skills, from other repositories
code-forge
Generate implementation code from an approved design blueprint or verbal requirements. Composes context anchoring, architecture, clean code, DDD, security, and test quality into an inside-out implementation workflow. Use when moving from design to code, implementing approved contracts, or when the user says…
api-platform-dto-resources
Map entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper (#[Map], stateOptions) for decoupled input/output contracts.
api-platform-filters
Implement API Platform filters - Parameters API (QueryParameter, v5/4.4/4.3) and the #[ApiFilter] attribute deprecated since 4.4 - for search, date, range, boolean, and custom filtering.
api-platform-versioning
Evolve API Platform APIs via deprecation (deprecationReason/sunset, RFC 8594/9745), the recommended alternative to versioning; plus path/header strategies.
doctrine-migrations
Create and manage Doctrine migrations (bundle 4.x, library 3.9) for schema versioning; handle dependencies, rollbacks, and production deployment.
messenger-retry-failures
Handle message failures with retry strategies, failure transport, and recovery in Symfony Messenger (Recoverable/Unrecoverable exceptions).