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 kouroshez/coding-os --skill nestjsgit clone --depth 1 https://github.com/kouroshez/coding-osWrote 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/kouroshez/coding-os/nestjs)<a href="https://agentmods.dev/skills/kouroshez/coding-os/nestjs"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/nestjs/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/kouroshez/coding-os/nestjs"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/nestjs.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.00098 | $0.00744 |
| Opus 5.5 | $0.00039 | $0.00298 |
| Sonnet 5.5 | $0.00020 | $0.00149 |
| Haiku 4.5 | $0.00010 | $0.00074 |
Grade A, and why
nestjs 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.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
REQUIRED BACKGROUND: You MUST also follow the core node-backend skill (Node runtime, event loop, packaging) and clean-code. This skill adds NestJS-specific patterns on top.
nestjs
Layer contract (matches structure.tree)
| Layer | May import | Never |
|---|---|---|
*.controller.ts |
the feature provider, DTOs | repositories, other controllers |
*.service.ts (provider) |
repositories, other providers | @Req/@Res, HTTP decorators |
repositories/ |
the DB client | providers, controllers |
common/ (filters/pipes/guards) |
providers (for auth lookups) | repositories |
Providers stay transport-free — no @Req()/@Res() — so they are
unit-testable and a transport swap (REST → GraphQL → microservice) is a
controller-layer-only change.
Modules & DI
- One feature = one module (
UsersModule) declaring its controller + providers; export only what other modules need. - The root
AppModulewires feature modules — it owns no business logic. - Inject by constructor with
private readonly; nevernewa provider — that bypasses the DI container and breaks testing/overrides. - Configurable modules use
forRoot()/forFeature(); never readprocess.envdeep in a provider — surface config through a typedConfigService.
Controllers (thin)
- Handlers parse/validate (DTO + pipe) → call ONE provider method → return the value. Nest serializes; do not build the response envelope by hand.
- No try/catch for error shaping in a controller — throw a typed
HttpException(or a domain error mapped by the filter) and let the global filter shape it.
Validation
- A global
ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true })inmain.ts. Every body/param is a class-validator DTO; reject fail-closed; the provider receives a typed, validated value and never reads the raw request.
Error handling
- ONE global exception filter (
common/all-exceptions.filter.ts) shapes every error response (the canonical envelope perdocs/api-contracts/error-format.md). Unknown errors → 500 generic message, full detail to the logger only.
What ships with it
1 file 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 · 68 lines · 98 tokens per session scan A 317191096940
nestjs is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 98 tokens to every session and 744 once invoked, about $0.0004 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-09-03.
nestjs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nestjskouroshez/coding-os | Skill | 7 | 4d ago | Apache-2.0 | A | 98 | Claude Code, Codex |
| potpie-repo-baselinepotpie-ai/potpie | Skill | 5.8k | yesterday | Apache-2.0 | A | 75 | Claude Code, Codex |
| potpie-infra-architecturepotpie-ai/potpie | Skill | 5.8k | yesterday | Apache-2.0 | A | 43 | Claude Code, Codex |
| potpie-project-preferencespotpie-ai/potpie | Skill | 5.8k | yesterday | Apache-2.0 | A | 63 | Claude Code, Codex |
| bi-causal-attributionagentscope-ai/QwenPaw-Data | Skill | 212 | yesterday | Apache-2.0 | A | 76 | Claude Code, Codex |
| binder-appmpazik/Binder | Skill | 41 | 1mo ago | MIT | A | 74 | Claude Code, Codex |
| api-agent-readyGeckoVision/gecko-surf | Skill | 22 | 1mo ago | Apache-2.0 | A | 186 | Claude Code |