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 commands/hmake98/nestjs-starter/gen-modulegit clone --depth 1 https://github.com/hmake98/nestjs-starterWrote 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/commands/hmake98/nestjs-starter/gen-module)<a href="https://agentmods.dev/commands/hmake98/nestjs-starter/gen-module"><img src="https://agentmods.dev/badge/commands/hmake98/nestjs-starter/gen-module.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.00000 | $0.00836 |
| Opus 5 | $0.00000 | $0.00418 |
| Sonnet 5 | $0.00000 | $0.00167 |
| Haiku 4.5 | $0.00000 | $0.00084 |
Grade A, and why
gen-module 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 3d 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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate a complete NestJS feature module for: $ARGUMENTS
Step 1 — Read codebase patterns
Study these files to match existing conventions exactly:
src/modules/user/user.module.tssrc/modules/user/services/user.service.tssrc/modules/user/controllers/user.public.controller.tssrc/modules/user/controllers/user.admin.controller.tssrc/modules/user/dtos/user.dto.tssrc/modules/user/dtos/user.update.dto.tssrc/common/database/repositories/user.repository.tssrc/common/database/interfaces/user.interface.ts
Step 2 — Generate all 8 files
Use the reference files (Step 1) for structure, decorators, and patterns.
1. src/common/database/interfaces/<name>.interface.ts
export type <Name>Entity = <Name>from@prisma/clientCreate<Name>InputandUpdate<Name>Inputinterfaces
2. src/common/database/repositories/<name>.repository.ts
@Injectable()injectingDatabaseService as db- Standard methods:
findById,existsById(viafindUnique({ select: { id: true } })),create,update,softDelete,hardDeleteById - Return types use
<Name>Entity
3. src/modules/<name>/dtos/<name>.dto.ts (response DTOs)
<Name>ResponseDtowith@Expose()+@ApiProperty({ example: faker.* })on every included field@ApiHideProperty()+@Exclude()on sensitive fields- Named variants extending base:
<Name>GetResponseDto,<Name>CreateResponseDto,<Name>UpdateResponseDto
4. src/modules/<name>/dtos/<name>.create.dto.ts + <name>.update.dto.ts
- class-validator decorators on every field per the spec's DTO Fields section
- Update DTO: all fields
@IsOptional()first
5. src/modules/<name>/services/<name>.service.ts
- Inject repository (not
DatabaseService) private readonly logger = new Logger(<Name>Service.name)private async assertExists(id)usingexistsById- Business rules from spec implemented here
- All errors:
throw new HttpException('<name>.error.key', HttpStatus.STATUS)
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.
- 3d ago First seen · 73 lines · 0 tokens per session scan A 7cc34f1f8d0d
gen-module is a command published in the GitHub repository hmake98/nestjs-starter (61 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 836 tokens. 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-30.
Other commands, from other repositories
newpkg
Generate new package with Nx.
type-crusade
Unleash parallel TypeScript Purist agents to purge every any, as cast, and type sin across the codebase. No type sin survives.
vite-react-setup
Setup project React SPA mới với Vite + TypeScript + Tailwind CSS v3 + Vitest. Dùng khi bắt đầu dự án frontend mới, cần scaffold đầy đủ config, brand KZTEK colors, và test setup sẵn sàng.
example
Generate runnable TypeScript code examples for common ACTP use cases.
typescript
Apply TypeScript best practices and coding standards.
scaffold-react
Quickly scaffold a new React + TypeScript project with Claude Code configuration.