Guides NestJS backend architecture with best practices for dependency injection, API design, and microservices. Activates when working on NestJS TypeScript projects.
$ npx -y skills add kadajett/agent-nestjs-skills --agent claude-code
Repo: kadajett/agent-nestjs-skills
What's inside
๐ For Humans <3
A structured repository for creating and maintaining NestJS Best Practices optimized for agents and LLMs.
From the maintainer: I built this skill because agents write better NestJS when they can see real context. Context is also my day job: I founded Semfora, a semantic code analysis engine that hands coding agents call graphs, module maps, and change blast radius through nine MCP tools.
Semfora launches on Product Hunt on Tuesday, July 28. Support there on launch day means a lot.
Install this skill using skills:
# GitHub shorthand
npx skills add Kadajett/agent-nestjs-skills
# Install globally (available across all projects)
npx skills add Kadajett/agent-nestjs-skills --global
# Install for specific agents
npx skills add Kadajett/agent-nestjs-skills -a claude-code -a cursor
skills/nestjs-best-practices/ - The installable skill (this is what skills add copies into your project)
SKILL.md - Skill entry point and quick referencerules/ - Individual rule files (one per rule)
_sections.md - Section metadata (titles, impacts, descriptions)_template.md - Template for creating new rulesarea-description.md - Individual rule filesscripts/ - Build scripts and utilitiesmetadata.json - Document metadata (version, organization, abstract)AGENTS.md - Compiled output (generated)Install dependencies:
cd scripts && npm install
Build AGENTS.md from rules:
npm run build
# or
./scripts/build.sh
skills/nestjs-best-practices/rules/_template.md to skills/nestjs-best-practices/rules/area-description.mdarch- for Architecture (Section 1)di- for Dependency Injection (Section 2)error- for Error Handling (Section 3)security- for Security (Section 4)perf- for Performance (Section 5)test- for Testing (Section 6)db- for Database & ORM (Section 7)api- for API Design (Section 8)micro- for Microservices (Section 9)devops- for DevOps & Deployment (Section 10)Each rule file should follow this structure:
---
title: Rule Title Here
impact: MEDIUM
impactDescription: Optional description
tags: tag1, tag2, tag3
---
## Rule Title Here
Brief explanation of the rule and why it matters.
**Incorrect (description of what's wrong):**
```typescript
// Bad code example
Correct (description of what's right):
// Good code example
Optional explanatory text after examples.
Reference: NestJS Documentation
_ are special (excluded from build)area-description.md (e.g., arch-avoid-circular-deps.md)| Level | Description |
|---|---|
| CRITICAL | Violations cause runtime errors, security vulnerabilities, or architectural breakdown |
| HIGH | Significant impact on reliability, security, or maintainability |
| MEDIUM-HIGH | Notable impact on quality and developer experience |
| MEDIUM | Moderate impact on code quality and best practices |
| LOW-MEDIUM | Minor improvements for consistency and maintainability |
npm run build (in scripts/) - Compile rules into AGENTS.mdWhen adding or modifying rules:
_template.md structureThe documentation website source code lives on the docs branch. This separation keeps the skill installation lightweight while maintaining the full documentation site.
To contribute to the website:
git checkout docs
cd website
npm install
npm run dev
These NestJS skills work with:
.github/
workflows/
branch-protection.yml
deploy.yml
.gitignore
AGENTS.md
assets/
semfora-logo.svg
metadata.json
README.md
scripts/
build-agents.ts
build.sh
package-lock.json
package.json
skills/
nestjs-best-practices/
rules/
_sections.md
_template.md
api-use-dto-serialization.md
api-use-interceptors.md
api-use-pipes.md
api-versioning.md
arch-avoid-circular-deps.md
arch-feature-modules.md
arch-module-sharing.md
arch-single-responsibility.md
arch-use-events.md
arch-use-repository-pattern.md
db-avoid-n-plus-one.md
db-use-migrations.md
db-use-transactions.md
devops-graceful-shutdown.md
devops-use-config-module.md
devops-use-logging.md
di-avoid-service-locator.md
di-interface-segregation.md
di-liskov-substitution.md
di-prefer-constructor-injection.md
di-scope-awareness.md
di-use-interfaces-tokens.md
error-handle-async-errors.md
error-throw-http-exceptions.md
error-use-exception-filters.md
micro-use-health-checks.md
micro-use-patterns.md
micro-use-queues.md
perf-async-hooks.md
perf-lazy-loading.md
perf-optimize-database.md
perf-use-caching.md
security-auth-jwt.md
security-rate-limiting.md
security-sanitize-output.md
security-use-guards.md
security-validate-all-input.md
test-e2e-supertest.md
test-mock-external-services.md
test-use-testing-module.md
SKILL.mdFAQ
agent-nestjs-skills is a Claude Code plugin with 1 hand-picked skill for backend work, indexed on Flowy. Install it with the command on its page. It includes nestjs-best-practices. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.