Index of every page on this site: llms.txt
All skills
amirtaherkhani avatar

/nestjs-features-performance

@8272374
Run it yourself

Selects and implements NestJS runtime features, error and API contracts, security, testing, DevOps, performance, and safe scale. Use for middleware, guards, pipes, interceptors, exception filters, typed failures/results, Problem Details, validation errors, HTTP/GraphQL/RPC/gRPC/WebSocket error mapping, deadlines, cancellation, retry classification, fatal process errors, authentication, authorization, caching, queues, schedulers, CI/CD, containers, Kubernetes, configuration and secrets, migrations, supply-chain controls, health probes, logs/metrics/traces, SLOs and alerts, incident recovery, rollout and rollback, event-loop or database bottlenecks, load tests, horizontal scaling, idempotency, backpressure, and graceful shutdown. Do not use for frontend-only performance or non-NestJS services. When other skills also apply, reconcile ownership before mutation.

Use this Skill: https://skilld.dev/gh/amirtaherkhani/nestjs-skills/nestjs-features-performance

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesenhancer-composition.md

≈751 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Enhancer Responsibility and Execution

Choose one responsibility per component, then choose its binding reach and lifetime separately:

Component Focused responsibility Inventory example
Middleware Transport setup or correlation Records arrival before Nest enhancers
Guard Whether this caller may proceed Checks a fixture credential before reading the command
Pipe Parse/transform/validate one boundary value Rejects strings as quantities and unexpected fields
Interceptor Wrap an operation for one cross-cutting outcome Records entry, result or error without changing the command
Filter Final transport mapping for an uncaught failure Maps stock failure to safe 409 and unknown failure to safe 500
Application operation Coordinate the capability Requests an inventory reservation
Domain object Preserve its invariant for every caller Rejects nonpositive or excessive stock reservations

Global binding describes reach. Provider scope describes lifetime. Module imports/exports describe visibility. A global authentication guard still has one responsibility; a route-bound class can still mix unrelated responsibilities. Neither global binding nor provider count establishes a design defect or performance cost. Do not store a request's principal in singleton mutable fields.

Order is a control-flow contract

For the fixture's single body argument and HTTP registration, successful execution is:

  1. Middleware; global, controller, then route guards.
  2. Global, controller, then route interceptor entry.
  3. Global, controller, route, then parameter pipes; controller/application operation.
  4. Route, controller, then global interceptor response handling.

A denied guard stops before interceptors and pipes. A pipe/application failure can unwind interceptor error handling before the selected filter maps the uncaught error. A consuming route filter prevents a later global filter from handling that same exception. Multiple parameters have their own pipe ordering; interceptors that recover or short-circuit also alter the path. Test the exact composition instead of applying this list unconditionally.

The runtime fixture and its HTTP tests record these paths. They also prove that APP_FILTER registration and useGlobalFilters(app.get(GlobalFilter)) both preserve a singleton's injected collaborator. A missing constructor dependency fails startup. This does not establish request-scoped bootstrap resolution, Fastify parity or hybrid/gateway coverage.

The trace array is a sequential test recorder, not a production request-context design. Existing provider-lifetime tests separately prove manual Nest-context isolation. Follow api-design.md, security.md, exception-filters-transports.md and testing.md for the underlying contracts.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning3d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    This skill provides extensive architectural, operational, and security guidance for developing and scaling NestJS applications. It contains best practices for error handling, performance diagnosis, CI/CD, and deployment. No malicious behavior or security risks were identified.

  • Socket3d

    No alerts

  • Snyk4d

    Risk: MEDIUM · 1 issue

Signed by skilld at 8272374. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 5 days ago
metadata
{
  "author": "amirtaherkhani",
  "version": "1.5.0"
}

README badge

README badge for amirtaherkhani/nestjs-skills/nestjs-features-performance