nestjs-patterns
Skill by ahmet-cetinkaya
Gives an AI assistant NestJS architecture patterns for modules, controllers, DTO validation, guards, config and testing. It is meant for developers building production-style TypeScript backends and APIs.
Install nestjs-patterns
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ahmet-cetinkaya/dotfiles /tmp/dotfiles && mkdir -p ~/.claude/skills && cp -r /tmp/dotfiles/agent-ctrl/profiles/nestjs/skills/nestjs-patterns ~/.claude/skills/nestjs-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ahmet-cetinkaya/dotfiles /tmp/dotfiles && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/dotfiles/agent-ctrl/profiles/nestjs/skills/nestjs-patterns ~/.gemini/antigravity-cli/skills/nestjs-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
NestJS Development Patterns is a SKILL.md file that gives an AI assistant architecture patterns for NestJS. It covers project structure, bootstrap with a global validation pipe, modules, controllers and providers, DTO validation with class-validator, guards, interceptors, exception filters, environment config, persistence, and testing. Each section includes a short TypeScript code example.
The file lists rules for the assistant to follow. Examples include keeping controllers thin, putting business logic in injectable services, using one consistent error envelope, and validating environment variables at boot rather than at the first request. It also suggests structured logging, request correlation ids, and explicit rate limiting and audit logging for public endpoints. It is written for developers building NestJS APIs or services.
Written from the project's SKILL.md and checked against it.
What it can do
- Project structureSuggests a layout with feature modules and a common folder for cross-cutting code.
- Global validationShows a bootstrap setup with a ValidationPipe using whitelist and forbidNonWhitelisted.
- Modules and providersShows how to wire controllers, services and exports within feature modules.
- DTO validationShows request DTOs validated with class-validator decorators and response DTOs.
- Guards and authShows JWT and roles guards on routes and notes on request context types.
- Exception filtersProvides an example HTTP exception filter that returns one consistent error shape.
- Config validationShows ConfigModule setup with a validate function so env is checked at boot.
- Persistence guidanceAdvises keeping ORM code behind providers and transactions in services.
- TestingShows a Nest testing module setup and advice on unit and request-level tests.
- Production defaultsLists logging, health checks, background jobs and rate limiting guidance.
What you need
- NestJS project
- TypeScript
Try asking
- Set up a NestJS users module with a controller, service and CreateUserDto.
- Add a JWT and roles guard to my NestJS admin report route.
- Validate my environment variables at boot in this NestJS app.
Good to know
- Shows code snippets rather than a complete runnable project.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agent-ctrl/profiles/nestjs/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 →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
nestjs-patterns: common questions
What does the NestJS patterns skill cover?
It covers modules, controllers, providers, DTO validation, guards, interceptors, exception filters, config, persistence and testing for NestJS backends.
Does it enforce validation on API requests?
It recommends enabling whitelist and forbidNonWhitelisted in a global ValidationPipe on public APIs and validating every request DTO with class-validator.
Does it say which ORM to use?
It mentions Prisma or TypeORM for persistence and advises isolating transactional workflows in services, without requiring a specific one.
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 70 of 100. Grades: maintenance A, licence A, quality C. 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.
