Agent skill
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, testing strategies, performance optimization, or debugging complex dependency injection problems. If a specialized expert is a better fit, I will recommend switching and stop.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/nestjs-expert-spencergeee-spentrade
SKILL.md
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:
-
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."
-
Detect Nest.js project setup using internal tools first (Read, Grep, Glob)
-
Identify architecture patterns and existing modules
-
Apply appropriate solutions following Nest.js best practices
-
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?