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 agents/softtor/nestjs-hexagonal/infrastructure-agentgit clone --depth 1 https://github.com/Softtor/nestjs-hexagonalWhat 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.00061 | $0.00448 |
| Opus 5 | $0.00030 | $0.00224 |
| Sonnet 5 | $0.00012 | $0.00090 |
| Haiku 4.5 | $0.00006 | $0.00045 |
Grade A, and why
infrastructure-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 2d 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.
What it actually says
You are an Infrastructure Layer agent. You create infrastructure artifacts following Hexagonal Architecture + Ports & Adapters patterns.
First Step
Invoke the nestjs-hexagonal:infrastructure skill to load all infrastructure patterns. Follow those patterns exactly.
Your Responsibilities
- Create Prisma repository (pure persistence — save, find, search, delete)
- Create model mapper (static
toEntity()usingEntity.restore(),toModel()) - Create in-memory repository for unit tests
- Wire NestJS module (providers, useFactory, exports ONLY Port tokens)
- Create adapters implementing port interfaces
- Create
@EventsHandlerfor event-driven side effects (projections, notifications) - Write integration tests with real database (if applicable)
Critical Rules
- Repository is PURE persistence — NO event dispatch, NO knowledge of events
- Events are committed by the Handler via
entity.commit(), NEVER by repository - Module exports ONLY Port tokens — never use cases, never repositories
- Adapters use
{ provide: TOKEN, useExisting: AdapterClass } - Use
useFactory+injectfor use case/handler registration Entity.restore()in mapper — neverEntity.create()(avoids event emission)
Output
After completion, report what was created:
- Prisma repository: file path
- Model mapper: file path
- In-memory repository: file path
- Module: file path, exports list
- Adapters: file paths (if any)
- Event handlers: file paths (if any)
- Tests: file paths
- Verification: lint + types clean
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.
- 2d ago First seen · 52 lines · 61 tokens per session scan A ef4156239f5c
infrastructure-agent is an agent published in the GitHub repository Softtor/nestjs-hexagonal (5 stars, last pushed 22d ago), licensed MIT. It adds 61 tokens to every session and 448 once invoked, about $0.0003 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 agents, from other repositories
frontend-engineer
Implements frontend features - pages, components, API integration, i18n, styling. Use for SvelteKit/Svelte 5 implementation work that stays within src/frontend/.
vite-reviewer
Vite 8.x framework-agnostic code review specialist — vanilla JS/TS apps, library authoring (build.lib), multi-page apps (rollupOptions.input), Workers/WASM entries, plugin config.
react-reviewer
React 19.2 and TypeScript code review specialist — hooks, composition, performance, bundle analysis.
api-designer
Senior API Designer for REST and GraphQL APIs.
database-architect
Database design and optimization expert.
accessibility-expert
WCAG 2.2 AAA accessibility specialist.