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 dkmqflx/nestjs-best-practices-plugin --skill nestjs-modules-digit clone --depth 1 https://github.com/dkmqflx/nestjs-best-practices-pluginWrote 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/dkmqflx/nestjs-best-practices-plugin/nestjs-modules-di)<a href="https://agentmods.dev/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-modules-di"><img src="https://agentmods.dev/badge/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-modules-di/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/dkmqflx/nestjs-best-practices-plugin/nestjs-modules-di"><img src="https://agentmods.dev/badge/skills/dkmqflx/nestjs-best-practices-plugin/nestjs-modules-di.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.00053 | $0.00445 |
| Opus 5.5 | $0.00021 | $0.00178 |
| Sonnet 5.5 | $0.00011 | $0.00089 |
| Haiku 4.5 | $0.00005 | $0.00044 |
Grade A, and why
nestjs-modules-di 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 1mo 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
NestJS Modules & Dependency Injection
Best-practices reference for organizing NestJS applications into encapsulated feature modules and wiring providers through the IoC container correctly. Covers module boundaries, provider visibility, dynamic modules, injection scopes, custom provider tokens, and circular dependencies.
When to Apply
- Designing or reviewing
@Modulestructure and feature boundaries - Registering providers and deciding what to
export - Building configurable libraries with
forRoot/forRootAsync - Choosing an injection scope (singleton vs REQUEST vs TRANSIENT)
- Wiring custom providers (
useClass/useValue/useFactory) and injection tokens - Resolving or avoiding circular dependencies
- Deciding whether a module should be
@Global()
Rules
feature-module-boundaries- one module per feature/domain; keep providers encapsulatedexport-shared-providers- only providers listed inexportsare visible to importing modulesdynamic-modules-forroot- configure reusable modules viaforRoot/forRootAsyncreturningDynamicModuleinjection-scopes-default-singleton- prefer default singleton scope; REQUEST scope bubbles up and hurts performancecustom-provider-tokens- useuseClass/useValue/useFactorywith injection tokens and interfacesconstructor-injection- prefer constructor injection over property injectionavoid-circular-dependencies- restructure first; useforwardRefonly as a last resortglobal-module-sparingly- reserve@Global()for truly cross-cutting modules (config, logger)
How to Use
Read individual rule files in rules/ for explanation + incorrect/correct examples.
What ships with it
8 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.
- rules/avoid-circular-dependencies.md 1.4 KB
- rules/constructor-injection.md 952 B
- rules/custom-provider-tokens.md 1.4 KB
- rules/dynamic-modules-forroot.md 1.3 KB
- rules/export-shared-providers.md 1.1 KB
- rules/feature-module-boundaries.md 1020 B
- rules/global-module-sparingly.md 1.2 KB
- rules/injection-scopes-default-singleton.md 1.3 KB
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.
- 1mo ago First seen · 38 lines · 53 tokens per session scan A 91a4859806f5
nestjs-modules-di is a skill published in the GitHub repository dkmqflx/nestjs-best-practices-plugin (1 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 445 once invoked, about $0.0002 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
lov-optimize-tauri-backend
Optimize Tauri backend architecture and development ergonomics for Tauri 2 apps, especially Rust restart pain, oversized src-tauri/src/lib.rs files, excessive #[tauri::command] surfaces, stringly invoke APIs, long IPC streams, and dev-state recovery. Use when the user asks about Tauri hot reload, Rust-side restarts…
lov-cli-creator
A tool-building workflow that turns a local project into an installable command-line program. The program exposes the project's real backend, returns predictable JSON, documents how it works, and includes runnable tests.
lov-api-creator
A development workflow for adding an app's API gateway support to a uni-api FastAPI backend and its uni-app frontend. It creates grouped gateway endpoints and a shared frontend calling layer.
lov-cli2anything
A tool for turning authorized observations of a website’s API into an OpenAPI description, Swagger interface, JavaScript SDK, or local command-line tool. OpenAPI is a machine-readable description of how an API can be called.
lov-integrate-lovstudio-llm-skill
An integration with LovStudio.AI’s OpenAI-compatible API for text chat, speech-to-text, speech translation, speech generation, and live audio sessions. It returns structured results that other application code can use.
lov-backend
A backend workflow for adding an app's API gateway endpoints to a uni-api project built with FastAPI. It creates the app's package and router, registers them, and places the endpoints in a documented group.