# nestjs-expert

A Claude skill that brings Nest.js knowledge into your session: modules, dependency injection, testing, and auth.

- skill · `type=skill` · Claude Code · 1024 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/nestjs-expert
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/nestjs-expert

## What it does

This skill makes Claude act as a Nest.js specialist. It covers module architecture, dependency injection, decorators, middleware, guards, interceptors, and pipes. Ask it about a problem in your Nest.js app and it inspects the project first with Read, Grep, and Glob, checks the framework version and module layout, then works out a fix.

Testing and databases get their own coverage. The skill uses `@nestjs/testing`, Jest, and Supertest for tests, and `@nestjs/typeorm` or `@nestjs/mongoose` for data layers, including transactions and migrations. Authentication runs through `@nestjs/passport` and `@nestjs/jwt`. Validation follows a fixed order: typecheck, unit tests, integration tests, e2e tests. If your problem is not really about Nest.js, the skill says so and points you to a better-suited subagent — `typescript-type-expert` for pure type issues, for instance.

Diagnostic commands are built in: they look for `nest-cli.json`, check `package.json` for `@nestjs/core`, and detect which integrations are wired up. The skill advises one-shot checks only, no watch or serve processes. Install it with `npx claude-code-templates@latest --skill development/nestjs-expert`.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/nestjs-expert
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill nestjs-expert -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/nestjs-expert/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/nestjs-expert/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/nestjs-expert/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/nestjs-expert/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates nestjs-expert
```

2. **Manually: put the files in place**
- File: `.github/skills/nestjs-expert/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/nestjs-expert
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/nestjs-expert/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/nestjs-expert

## When to use it
- untangle circular dependencies between modules
- set up providers and injection tokens correctly
- write Supertest e2e tests for a controller
- wire up a Passport JWT strategy with guards
- trace the execution order of middleware, guards, and interceptors

## Example prompts
- Why is there a circular dependency between `UsersModule` and `AuthModule`?
- Write a Supertest e2e test for `AppController`
- Set up a Passport JWT strategy in this project

## Similar
- [nestjs-code-review](https://affpapa.org/en/nevibecode/skills/nestjs-code-review.md) — skill · 3800 installs
- [nestjs-patterns](https://affpapa.org/en/nevibecode/skills/nestjs-patterns.md) — skill · 5000 installs
- [nestjs-best-practices](https://affpapa.org/en/nevibecode/skills/ejirocodes-nestjs-best-practices.md) — skill · 427 installs
- [nestjs-clean-typescript](https://affpapa.org/en/nevibecode/skills/nestjs-clean-typescript.md) — skill · 940 installs
- [nestjs](https://affpapa.org/en/nevibecode/rules/nestjs.md) — rule · ★ 40451
- [nestjs-drizzle-crud-generator](https://affpapa.org/en/nevibecode/skills/nestjs-drizzle-crud-generator.md) — skill · 3600 installs

## Other versions with the same name
- [nestjs-expert · sickn33](https://affpapa.org/en/nevibecode/skills/sickn33-nestjs-expert.md) — 2700 installs
- [nestjs-expert · jeffallan](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-nestjs-expert.md) — 5900 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
