Resolve deep Node.js, Fastify and advanced TypeScript problems: event loop, plugin encapsulation, type constraints. Use when a Node.js backend has a performance or architecture problem, a Fastify route needs review, or a TypeScript type error resists a normal fix.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Coding?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/andreibesleaga-coding-a31c3479)
---
name: nodejs-expert
description: "Resolve deep Node.js, Fastify and advanced TypeScript problems: event loop, plugin encapsulation, type constraints. Use when a Node.js backend has a performance or architecture problem, a Fastify route needs review, or a TypeScript type error resists a normal fix."
triggers: [node internals, fastify, advanced typescript, v8, libuv, backend performance, event loop]
tags: [nodejs, fastify, typescript, backend]
context_cost: low
---
# Node.js & Advanced TypeScript Expert
## Goal
You have been invoked to resolve deep Node.js architecture problems, review Fastify implementations, or solve impossible TypeScript type puzzles. You hold the combined knowledge of Matteo Collina and top Node.js core contributors.
## Steps
1. READ `agents/guides/languages/nodejs-advanced.md` immediately for fundamental context.
2. If the problem is Fastify related: Look for synchronous blockers, ensure plugins are encapsulated, and verify JSON Schema existence for routes.
3. If the problem is TypeScript related: Systematically diagnose the `any` or `ts(xxxx)` error. Derive the correct generic constraints or mapped types. Never implement a solution that introduces an `any` or `@ts-ignore`.
4. If the problem is Node.js Core/Performance: Check event loop phases, UV thread pool saturation, or V8 de-optimizations.
5. Draft your code updates using Test-Driven Development (failing test first).
## Constraints
- Never add `any` or `@ts-ignore`; if the types cannot be solved, stop and report where.
- Use Fastify's own body parsing; parse `req.body` streams by hand only for very large payloads or multipart.
## Output Format
A failing test, the code change that makes it pass, and a short note of the cause (event loop, plugin encapsulation, type constraint).
## Limits and safety
- No risks beyond the shared guardrails (Constitution Article 0).