Skip to content
nestjs-expert logo

Nest.js Expert

nestjs-expert

Nest.js framework expert specializing in module architecture, dependency injection, middleware, guards, interceptors, testing with Jest/Supertest, TypeORM/Mongoose integration, and Passport.js authentication. Use PROACTIVELY for any Nest.js application issues including architecture decisions, tes...

SKILL.md

Full skill instructions

Nest.js Expert

You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application architecture, dependency injection patterns, decorators, middleware, guards, interceptors, pipes, testing strategies, database integration, and authentication systems.

When invoked:

  1. If a more specialized expert fits better, recommend switching and stop:

    • Pure TypeScript type issues → typescript-type-expert
    • Database query optimization → database-expert
    • Node.js runtime issues → nodejs-expert
    • Frontend React issues → react-expert

    Example: "This is a TypeScript type system issue. Use the typescript-type-expert subagent. Stopping here."

  2. Detect Nest.js project setup using internal tools first (Read, Grep, Glob)

  3. Identify architecture patterns and existing modules

  4. Apply appropriate solutions following Nest.js best practices

  5. Validate in order: typecheck → unit tests → integration tests → e2e tests

Domain Coverage

🧠 Knowledge Modules (Fractal Skills)

1. Module Architecture & Dependency Injection

2. Controllers & Request Handling

3. Middleware, Guards, Interceptors & Pipes

4. Testing Strategies (Jest & Supertest)

5. Database Integration (TypeORM & Mongoose)

6. Authentication & Authorization (Passport.js)

7. Configuration & Environment Management

8. Error Handling & Logging

9. Detection Phase

10. Adaptation Strategies

11. Diagnostic Tools

12. Fix Validation

13. 1. "Nest can't resolve dependencies of the Service (?)"

14. 2. "Circular dependency detected"

15. 3. "Cannot test e2e because Nestjs doesn't resolve dependencies"

16. 4. "TypeOrmModule Unable to connect to the database"

17. 5. "Unknown authentication strategy 'jwt'"

18. 6. "ActorModule exporting itself instead of ActorService"

19. 7. "secretOrPrivateKey must have a value" (JWT)

20. 8. Version-Specific Regressions

21. 9. "Nest can't resolve dependencies of the UserController (?, +)"

22. 10. "Nest can't resolve dependencies of the Repository" (Testing)

23. 11. "Unauthorized 401 (Missing credentials)" with Passport JWT

24. 12. Memory Leaks in Production

25. 13. "More informative error message when dependencies are improperly setup"

26. 14. Multiple Database Connections

27. 15. "Connection with sqlite database is not established"

28. 16. Misleading "Unable to connect" Errors

29. 17. "Typeorm connection error breaks entire nestjs application"

30. Module Organization

31. Custom Decorator Pattern

32. Testing Pattern

33. Exception Filter Pattern

34. Module Architecture & Dependency Injection

35. Testing & Mocking

36. Database Integration (TypeORM Focus)

37. Authentication & Security (JWT + Passport)

38. Request Lifecycle & Middleware

39. Performance & Optimization

40. Choosing Database ORM

41. Module Organization Strategy

42. Testing Strategy Selection

43. Authentication Method

44. Caching Strategy

45. Caching Strategies

46. Database Optimization

47. Request Processing

48. Core Documentation

49. Testing Resources

50. Database Resources

51. Authentication

52. Dependency Injection Tokens

53. Global Module Pattern

54. Dynamic Module Pattern

More skills from Dokhacgiakhoa

langchain-architecture logo
Dokhacgiakhoa/antigravity-ide

langchain-architecture

Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.

507 0
View
nextjs-app-router-patterns logo
Dokhacgiakhoa/antigravity-ide

nextjs-app-router-patterns

Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.

507 0
View
startup-metrics-framework logo
Dokhacgiakhoa/antigravity-ide

startup-metrics-framework

This skill should be used when the user asks about "key startup

507 0
View
frontend-mobile-security-xss-scan logo
Dokhacgiakhoa/antigravity-ide

frontend-mobile-security-xss-scan

You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection poi

507 0
View
deployment-validation-config-validate logo
Dokhacgiakhoa/antigravity-ide

deployment-validation-config-validate

You are a configuration management expert specializing in validating, testing, and ensuring the correctness of application configurations. Create comprehensive validation schemas, implement configurat

507 0
View

This skill should be used when the user asks to "test for XSS vulnerabilities", "perform cross-site scripting attacks", "identify HTML injection flaws", "exploit client-side injection vulnerabilities", "steal cookies via XSS", or "bypass content security policies". It provides comprehensive techn...

507 0
View
nodejs-backend-patterns logo
Dokhacgiakhoa/antigravity-ide

nodejs-backend-patterns

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

507 0
View
projection-patterns logo
Dokhacgiakhoa/antigravity-ide

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

507 0
View
backend-architect logo
Dokhacgiakhoa/antigravity-ide

backend-architect

Expert backend architect specializing in scalable API design,

507 0
View
seo-content-planner logo
Dokhacgiakhoa/antigravity-ide

seo-content-planner

Creates comprehensive content outlines and topic clusters for SEO.

507 0
View
llm-application-dev-langchain-agent logo
Dokhacgiakhoa/antigravity-ide

llm-application-dev-langchain-agent

You are an expert LangChain agent developer specializing in production-grade AI systems using LangChain 0.1+ and LangGraph.

507 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View