nestjs-best-practices skill: 40 rules for NestJS architecture, security and performance
Makes your agent write and review NestJS code against 40 rules in 10 categories, ranked by impact.
- Installs
- 31K
- on skills.sh
- Stars
- 291
- on GitHub
- Files
- 42
- besides SKILL.md
- Updated
- Jul 2026
- last repo commit
This skill gives your agent a ranked rulebook for NestJS: architecture and dependency injection first (critical), then error handling, security and performance (high), then testing, databases, API design, microservices and deployment. Each rule has its own file with an incorrect and a correct code example.
It triggers when you write, review or refactor NestJS code: modules, controllers, services, auth, queries or microservices. The agent reads the single rule files it needs instead of the whole set.
Good for
- NestJS developers who want consistent modules, DI and error handling
- Reviewers checking NestJS code for security and architecture issues
- Teams refactoring a NestJS codebase for performance
Install nestjs-best-practices
Claude Code
- 1
Copy this prompt.
Install the nestjs-best-practices skill in Claude Code. Run this command: npx skills add https://github.com/kadajett/agent-nestjs-skills --skill nestjs-best-practices Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
From its listing on skills.sh. Source.
What's in the skill
When it loads
NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance.
Sections in SKILL.md
- When to Apply
- Rule Categories by Priority
- Quick Reference
- 1. Architecture (CRITICAL)
- 2. Dependency Injection (CRITICAL)
- 3. Error Handling (HIGH)
- 4. Security (HIGH)
- 5. Performance (HIGH)
- 6. Testing (MEDIUM-HIGH)
- 7. Database & ORM (MEDIUM-HIGH)
- 8. API Design (MEDIUM)
- 9. Microservices (MEDIUM)
- 10. DevOps & Deployment (LOW-MEDIUM)
- How to Use
- Full Compiled Document
Key facts
- Installs on skills.sh
- 30,969 as of 2 Nov 2026
- License
- MIT (SKILL.md frontmatter)
- Last commit in the repo
- 2026-07-23
- What is inside
- 43 files including SKILL.md: 40 rule files and 2 helper files (_sections.md, _template.md); no scripts
- skills.sh audits
- Gen Agent Trust Hub pass, Socket pass, Snyk pass
What it includes
Feature modules, no circular deps, repository pattern, events
arch- rules such as avoiding circular module dependencies and organizing by feature.
Read ·
1. Architecture (6 rules, critical)Constructor injection, tokens, scopes, no service locator
di- rules including interface segregation and Liskov substitution.
Read ·
2. Dependency injection (6, critical)Exception filters, HTTP exceptions, async errors
error- rules for centralized, consistent errors.
Read ·
3. Error handling (3, high)JWT, input validation, guards, output sanitizing, rate limiting
security- rules; the JWT rule warns against hardcoded secrets and sensitive data in tokens.
Try: “Review this NestJS auth module against your security rules.”
Read ·
4. Security (5, high)Async hooks, caching, database queries, lazy loading
perf- rules.
Read ·
5. Performance (4, high)Testing module, Supertest e2e, mocked services
test- rules.
Read ·
6. Testing (3, medium-high)Transactions, N+1 queries, migrations
db- rules.
Read ·
7. Database and ORM (3, medium-high)DTOs, interceptors, pipes, versioning
api- rules.
Read ·
8. API design (4, medium)Message patterns, health checks, queues
micro- rules.
Read ·
9. Microservices (3, medium)Config module, logging, graceful shutdown
devops- rules.
Read ·
10. DevOps and deployment (3, low-medium)
From the official docs
Questions
What does the nestjs-best-practices skill do?
It makes your agent follow 40 NestJS rules in 10 categories when it writes, reviews or refactors NestJS code. Each rule has an incorrect and a correct example.
How do I install it?
Use the install box on this page. The README documents npx skills add Kadajett/agent-nestjs-skills, with options for a global install and for specific agents.
Which clients does it support?
The README lists Claude Code, OpenCode, Codex, Cursor, Antigravity and Roo Code.
Does it run any scripts?
The skill folder bundles no scripts. It is the SKILL.md and 42 markdown files in rules/. The repo has a separate scripts folder that builds a combined AGENTS.md, and that is not part of the installed skill.
Where is the full rule text?
In the rule files under rules/. The SKILL.md also links a compiled AGENTS.md in the repository with every rule in one document.
Information
updated Nov 2, 2026
- Repository
- kadajett/agent-nestjs-skills
- Folder
skills/nestjs-best-practices
Sources
Docs, issue trackers and discussions this page is built from.
Show all 2Hide
- nestjs-best-practices SKILL.md · github.com
- agent-nestjs-skills README · github.com