Skip to content

NestJS Backend Patterns

Guides the agent to write NestJS backends using modules, DTO validation, guards and error filters.

Repository
affaan-m/ECC
Stars
295,127
Licence
MIT
Files
1 file

What it does

When a user is building a NestJS (a TypeScript framework for server-side APIs) project, this skill tells the agent to follow a set of recommended conventions: organise code into feature modules, keep controllers thin and put logic in services, validate incoming request data with class-validator DTOs, protect routes with guards, return one consistent error format, and validate configuration at startup. It also includes example code snippets and testing guidance. It is a set of written guidelines rather than a tool that does work on its own.

Great for

  • Developers building or refactoring a NestJS API and wanting consistent structure
  • Teams who want a shared checklist for validation, auth guards and error handling
  • Developers new to NestJS who want the agent to follow common production conventions

Skip it if

  • Projects not using NestJS or TypeScript, since the examples will not apply
  • Security-critical systems that rely on this skill alone; it gives general patterns, not an audit, and the auth examples are illustrative only

Try asking

  • “Create a new NestJS users module with a controller, service and validated create DTO”
  • “Review my NestJS controllers and move business logic into services”
  • “Add a global validation pipe and a consistent error filter to my NestJS app”
  • “Write unit and request-level tests for my NestJS guards and pipes”
Step-by-step guide: how to use NestJS Backend PatternsInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    nestjs-patterns.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip nestjs-patterns.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip nestjs-patterns.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 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

  • Name your framework version and database layer in the request so the agent picks matching APIs
  • Ask the agent to adapt the example snippets to your existing folder layout rather than copying them verbatim
  • Still review generated auth, rate limiting and config code yourself, since the skill lists these as requirements without a full implementation

What's inside

  • SKILL.md

Redistributed unmodified from affaan-m/ECC 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.