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.
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-performanceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard /tmp/agent-skills-standard && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills-standard/skills/nestjs/nestjs-performance ~/.gemini/antigravity-cli/skills/nestjs-performanceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
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.
