nestjs-best-practices
Skill by Asymmetric-al
Provides NestJS best practices and architecture patterns for writing, reviewing, or refactoring NestJS code. It covers modules, dependency injection, security, and performance.
Install nestjs-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Asymmetric-al/core /tmp/core && mkdir -p ~/.claude/skills && cp -r /tmp/core/docs/ai/skills/nestjs-best-practices ~/.claude/skills/nestjs-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Asymmetric-al/core /tmp/core && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/core/docs/ai/skills/nestjs-best-practices ~/.gemini/antigravity-cli/skills/nestjs-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install nestjs-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
NestJS Best Practices is an agent skill that gives an AI assistant reference guidance for NestJS code. It contains 40 rules across 10 categories, ordered by impact. The categories cover architecture, dependency injection, error handling, security, performance, testing, database and ORM, API design, microservices, and DevOps. Each rule is stored as a separate file with incorrect and correct code examples.
The skill is meant for writing, reviewing, or refactoring NestJS code. The version in this listing includes a repository overlay for Asymmetric-al/core, which states that Core is a Bun and Next.js monorepo rather than a NestJS application. In that repository the skill is only a reference and should not be used to restyle Core or add Nest modules, controllers, or TypeORM. The skill is published under the MIT license by its author, Kadajett.
Written from the project's SKILL.md and checked against it.
What it can do
- Architecture rulesCovers circular dependencies, feature modules, module sharing, single responsibility, the repository pattern, and events.
- Dependency injection rulesCovers constructor injection, injection tokens, interface segregation, Liskov substitution, scope awareness, and avoiding service locators.
- Error handling rulesCovers centralized exception filters, NestJS HTTP exceptions, and handling async errors.
- Security rulesCovers JWT authentication, input validation with class-validator, guards, output sanitizing, and rate limiting.
- Performance rulesCovers async lifecycle hooks, caching strategies, database query optimization, and lazy loading modules.
- Testing and database rulesCovers the testing module, Supertest e2e tests, mocking external services, transactions, N+1 queries, and migrations.
- API, microservices, and DevOps rulesCovers DTO serialization, interceptors, versioning, pipes, message patterns, health checks, queues, config, logging, and shutdown.
Try asking
- Review this NestJS controller for security issues and missing input validation.
- Refactor this NestJS module to remove circular dependencies.
- Check my NestJS service for N+1 query problems and suggest fixes.
Good to know
- Intended as a reference for NestJS code only.
- The repository overlay says not to use it to restyle the Core Next.js monorepo.
- Upstream refreshes may replace the file, so the repository overlay must be reconciled first.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: docs/ai/skills/nestjs-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to nestjs-best-practices
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-best-practices: common questions
What does nestjs-best-practices cover?
The skill contains 40 rules across 10 categories, prioritized by impact, including architecture, security, performance, and testing.
Can it be used in the Asymmetric-al/core repository?
The repository overlay says Core is a Bun and Next.js monorepo, so the skill is only a NestJS reference there and should not change Core's stack.
Where are the full rule details?
Each rule has its own file under rules/, and the full compiled guide is in AGENTS.md in the Kadajett/agent-nestjs-skills repository.
How do I install nestjs-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nestjs-best-practices free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is nestjs-best-practices safe to use?
It scores 70 of 100. Grades: maintenance A, licence C, 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-best-practices?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
