Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nestjs-performance

Skill by HoangNguyen0403

Guides performance tuning for NestJS APIs, covering the Fastify adapter, singleton provider scope, compression, query projections and overhead profiling. Aimed at developers switching to Fastify or diagnosing slow requests.

  • Score 70
  • 584 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nestjs-performance

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard /tmp/agent-skills-standard && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills-standard/skills/nestjs/nestjs-performance ~/.claude/skills/nestjs-performance

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nestjs-performance in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The nestjs-performance skill gives an AI assistant a performance audit workflow for NestJS. It covers switching from Express to FastifyAdapter, enabling Gzip or Brotli compression, keeping providers in SINGLETON scope, and using select projections on repository queries. It also includes guidance on caching, offloading work to queues or worker_threads, and serialization.

The skill sets latency baselines for total duration, database execution and API overhead. Total duration is rated excellent under 50ms, DB execution under 5ms, and API overhead under 20ms. It is aimed at developers maintaining NestJS APIs who want to find request-scoped bottlenecks or profile overhead. Detailed code examples are in a separate reference file.

Written from the project's SKILL.md and checked against it.

What it can do

  • Fastify switchReplace Express with FastifyAdapter, which the source says gives about 2x throughput.
  • CompressionAdd Gzip or Brotli compression middleware.
  • Provider scope auditCheck for unintended REQUEST scope chains in providers.
  • Query projectionsUse select to fetch only the columns a query needs.
  • Caching guidanceUse @nestjs/cache-manager and a Redis store in microservices.
  • Queue offloadingMove long-running tasks like emails and reports to queues.
  • Serialization adviceSuggest manual mapping or fast-json-stringify for high-throughput read endpoints.
  • Overhead profilingBenchmark total duration, DB execution time and API overhead against baselines.

What you need

  • NestJS application
  • Fastify adapter for NestJS, for the Fastify switch
  • Redis, for a distributed cache store in microservices

Try asking

  • Audit my NestJS app for unintended REQUEST scoped providers.
  • Help me switch this NestJS app from Express to FastifyAdapter.
  • Show me which repository queries need select projections.

Good to know

  • The source says to avoid REQUEST scope unless absolutely necessary.
  • Authentication routes such as bcrypt or argon2 are expected to take 300-500ms on purpose.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/nestjs/nestjs-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to nestjs-performance

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

nestjs-performance: common questions

Does this skill make a NestJS app faster by itself?

It is a set of guidance and an audit workflow for the assistant to follow. The source says switching to Fastify gives about 2x throughput.

When should I avoid REQUEST scope in NestJS?

The source says to avoid REQUEST scope unless absolutely necessary, because one request-scoped service makes its whole injection chain request-scoped. For multi-tenancy it suggests durable providers.

What latency numbers does this skill use?

It rates total duration under 50ms as excellent and under 200ms as acceptable. DB execution under 5ms is excellent and API overhead under 20ms is excellent.

How do I install nestjs-performance?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nestjs-performance free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nestjs-performance safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to nestjs-performance?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

nestjs-performance Install

Add to stack

Loading.