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 skills add userInner/SKILLS --skill nestjs-patterns-affaan-m-ecc-bf79c2542dgit clone --depth 1 https://github.com/userInner/SKILLSWrote 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/userinner/skills/nestjs-patterns-affaan-m-ecc-bf79c2542d)<a href="https://agentmods.dev/skills/userinner/skills/nestjs-patterns-affaan-m-ecc-bf79c2542d"><img src="https://agentmods.dev/badge/skills/userinner/skills/nestjs-patterns-affaan-m-ecc-bf79c2542d/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/userinner/skills/nestjs-patterns-affaan-m-ecc-bf79c2542d"><img src="https://agentmods.dev/badge/skills/userinner/skills/nestjs-patterns-affaan-m-ecc-bf79c2542d.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.01428 |
| Opus 5.5 | $0.00022 | $0.00571 |
| Sonnet 5.5 | $0.00011 | $0.00286 |
| Haiku 4.5 | $0.00006 | $0.00143 |
Grade A, and why
nestjs-patterns 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 3mo 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.
This is a copy
94% identical to nestjs-patterns — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
NestJS Development Patterns
Production-grade NestJS patterns for modular TypeScript backends.
When to Activate
- Building NestJS APIs or services
- Structuring modules, controllers, and providers
- Adding DTO validation, guards, interceptors, or exception filters
- Configuring environment-aware settings and database integrations
- Testing NestJS units or HTTP endpoints
Project Structure
src/
├── app.module.ts
├── main.ts
├── common/
│ ├── filters/
│ ├── guards/
│ ├── interceptors/
│ └── pipes/
├── config/
│ ├── configuration.ts
│ └── validation.ts
├── modules/
│ ├── auth/
│ │ ├── auth.controller.ts
│ │ ├── auth.module.ts
│ │ ├── auth.service.ts
│ │ ├── dto/
│ │ ├── guards/
│ │ └── strategies/
│ └── users/
│ ├── dto/
│ ├── entities/
│ ├── users.controller.ts
│ ├── users.module.ts
│ └── users.service.ts
└── prisma/ or database/
- Keep domain code inside feature modules.
- Put cross-cutting filters, decorators, guards, and interceptors in
common/. - Keep DTOs close to the module that owns them.
Bootstrap and Global Validation
async function bootstrap() {
const app = await NestFactory.create(AppModule, { bufferLogs: true });
app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
forbidNonWhitelisted: true,
transform: true,
transformOptions: { enableImplicitConversion: true },
}),
);
app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)));
app.useGlobalFilters(new HttpExceptionFilter());
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();
- Always enable
whitelistandforbidNonWhitelistedon public APIs. - Prefer one global validation pipe instead of repeating validation config per route.
Modules, Controllers, and Providers
@Module({
controllers: [UsersController],
providers: [UsersService],
exports: [UsersService],
})
export class UsersModule {}
@Controller('users')
export class UsersController {
constructor(private readonly usersService: UsersService) {}
@Get(':id')
getById(@Param('id', ParseUUIDPipe) id: string) {
return this.usersService.getById(id);
}
@Post()
create(@Body() dto: CreateUserDto) {
return this.usersService.create(dto);
}
}
@Injectable()
export class UsersService {
constructor(private readonly usersRepo: UsersRepository) {}
async create(dto: CreateUserDto) {
return this.usersRepo.create(dto);
}
}
What ships with it
3 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.
- 3mo ago First seen · 232 lines · 56 tokens per session scan A 7f41406abaf1
nestjs-patterns is a skill published in the GitHub repository userInner/SKILLS (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,428 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to nestjs-patterns, differing in 12 lines, and is treated as a copy.
nestjs-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nestjs-patternsuserInner/SKILLS | Skill | 3 | 2mo ago | Apache-2.0 | A | 56 | Claude Code, Codex |
| amazon-alexalingxling/awesome-skills-cn | Skill | 343 | 1mo ago | MIT | A | 53 | Claude Code |
| matlab-robotics-autonomywzyn20051216/matlab-agent-skills | Skill | 37 | 1mo ago | MIT | A | 129 | Claude Code, Codex |
| asus-esc8000-gpu-bios-tuningsoulmachine/skills | Skill | 3 | yesterday | MIT | A | 112 | Claude Code, Codex |
| bambu-labsaiskillstore/marketplace | Skill | 509 | today | none | A | 38 | Codex |
| dfam-checkaiskillstore/marketplace | Skill | 509 | today | none | A | 111 | Codex |
| bolt-iot-automationcomposio-community/awesome-codex-skills | Skill | 18k | 4mo ago | none | A | 29 | Claude Code, Codex |