Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nestjs-patterns

Skill by ysyecust

Provides NestJS architecture patterns for modular TypeScript backends. It is aimed at developers building NestJS APIs and services who want guidance on modules, DTO validation, guards and testing.

  • Score 62
  • 66 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nestjs-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ysyecust/everything-claude-code /tmp/everything-claude-code && mkdir -p ~/.claude/skills && cp -r /tmp/everything-claude-code/.kiro/skills/nestjs-patterns ~/.claude/skills/nestjs-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nestjs-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a set of NestJS development patterns for production-grade TypeScript backends. It describes a suggested project structure with feature modules and a common folder for filters, guards, interceptors and pipes. It also includes code examples for bootstrapping with a global ValidationPipe, thin controllers that call injectable services, and DTOs validated with class-validator.

The patterns cover auth guards and request context, a consistent exception filter and error shape, and environment validation at boot. They also cover transactional services, unit and request-level testing, and production defaults such as structured logging and health checks. It is intended for developers building or structuring NestJS APIs and services.

Written from the project's SKILL.md and checked against it.

What it can do

  • Project structureShows a feature-module layout with cross-cutting code kept in a common folder.
  • Global validationSets up a global ValidationPipe with whitelist and forbidNonWhitelisted options.
  • Modules and providersShows controllers that stay thin and business logic kept in injectable services.
  • DTO validationValidates request DTOs with class-validator and recommends response DTOs over ORM entities.
  • Guards and rolesShows JWT and roles guards with coarse access rules in guards and resource checks in services.
  • Exception filtersProvides a catch-all filter with one consistent error envelope and central logging.
  • Config validationValidates environment settings at boot using ConfigModule with a validate function.
  • Testing patternsShows unit tests with mocked dependencies and request-level tests with the same pipes.

What you need

  • NestJS
  • TypeScript
  • class-validator

Try asking

  • Set up a global ValidationPipe for my NestJS API with whitelist enabled.
  • Create a UsersModule with a thin controller and an injectable service.
  • Add a global exception filter that returns one consistent error shape.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .kiro/skills/nestjs-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to nestjs-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

nestjs-patterns: common questions

Does this skill include NestJS code examples?

Yes. It includes code snippets for bootstrap, modules, controllers, DTOs, guards, exception filters, config and tests.

Does it cover database access?

It gives general guidance on keeping repository or ORM code behind providers and isolating transactions in services. It names Prisma and TypeORM as examples.

Is it aimed at production APIs?

Yes. The source includes a section on production defaults such as structured logging, request correlation ids, health checks and rate limiting for public endpoints.

How do I install nestjs-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nestjs-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nestjs-patterns safe to use?

It scores 62 of 100. Grades: maintenance C, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to nestjs-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

nestjs-patterns Install

Add to stack

Loading.