
NestJS Backend Expert
Guides an agent to build NestJS TypeScript backends: modules, controllers, DTO validation, auth, and tests.
- Repository
- Jeffallan/claude-skills
- Stars
- 12,176
- Licence
- MIT
- Files
- 7 files
What it does
Once installed, the agent follows NestJS best practices when you ask for a TypeScript backend API. It scaffolds modules, controllers, services and DTOs with input validation, adds JWT/Passport authentication and guards, documents endpoints with Swagger, and writes unit and E2E tests. It loads reference notes on routing, dependency injection, authentication, testing and migrating from Express as needed.
Great for
- Developers building REST or GraphQL APIs with NestJS
- Teams migrating an Express.js backend to NestJS
- Developers who want consistent DI, validation and testing patterns in NestJS projects
Skip it if
- Projects that do not use NestJS or TypeScript on the backend, since the guidance is specific to NestJS
- Production security decisions made without review: the auth examples are generated code and need a human security check
Try asking
- “Create a NestJS users module with a controller, service, and DTO validation for email and password”
- “Add JWT authentication with Passport and role-based guards to my existing NestJS API”
- “Migrate this Express.js route handlers to NestJS controllers and services”
- “Write unit tests for my NestJS orders service using Test.createTestingModule”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 7 original files, the MIT licence and an attribution note.
nestjs-expert.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip nestjs-expert.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip nestjs-expert.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Point the agent at your existing project structure so it matches your module layout and naming conventions
- Ask for tests alongside any service you create, since the skill expects unit tests for every service method
- Review generated auth, password and config code before deploying, and run the lint and test commands it suggests
What's inside
- references/authentication.md
- references/controllers-routing.md
- references/dtos-validation.md
- references/migration-from-express.md
- references/services-di.md
- references/testing-patterns.md
- SKILL.md
Redistributed unmodified from Jeffallan/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.