
Nestjs
Apply NestJS structure, validation, security, and Drizzle/Gel database patterns while your agent implements backend modules.
Install
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill nestjsWhat is this skill?
- 10 numbered core principles including constructor injection, DTOs, and exception filters
- Database practices: pooling, indexes, migrations, soft deletes, and transactions
- Security practices: input validation, rate limiting, HTTPS, and no stack traces in production
- Drizzle ORM install and Gel get-started package steps from official docs
- Logging interceptors and TypeScript type-safety expectations across modules
Adoption & trust: 1.5k installs on skills.sh; 271 GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Entra App Registrationmicrosoft/azure-skills
Azure Aigatewaymicrosoft/azure-skills
Lark Openapi Explorerlarksuite/cli
Supabasesupabase/agent-skills
Firebase Auth Basicsfirebase/agent-skills
Firebase Data Connectfirebase/agent-skills
Journey fit
Primary fit
NestJS conventions matter during active backend implementation, before review and production hardening elsewhere in the journey. The skill targets server modules, DI, DTOs, pipes, filters, and ORM setup—the backend layer of a Nest app.
Common Questions / FAQ
Is Nestjs safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Nestjs
# NestJS Best Practices Comprehensive best practices for NestJS development. ## Core Principles 1. **Always use constructor injection** - Never use property injection 2. **Use DTOs for data transfer** - Define interfaces for request/response 3. **Implement proper error handling** - Use exception filters 4. **Validate all inputs** - Use validation pipes 5. **Keep modules focused** - Single responsibility principle 6. **Use environment variables** - Never hardcode credentials 7. **Write comprehensive tests** - Unit and integration tests 8. **Use transactions for complex operations** - Maintain data consistency 9. **Implement proper logging** - Use interceptors for cross-cutting concerns 10. **Use type safety** - Leverage TypeScript features ## Database Best Practices - **Connection pooling** - Always use pooling for production workloads - **Index frequently queried columns** - Improve query performance - **Use migrations for schema changes** - Never modify schema manually - **Implement soft deletes** - Preserve data history - **Use transactions** - Ensure data consistency ## Security Best Practices - **Never expose stack traces** - In production error responses - **Validate all inputs** - Prevent injection attacks - **Use parameterized queries** - Drizzle does this automatically - **Implement rate limiting** - Prevent abuse - **Use HTTPS** - Encrypt data in transit ### Install Drizzle and Gel Packages Source: https://orm.drizzle.team/docs/get-started/gel-new Installs the necessary Drizzle ORM and Gel packages, along with development dependencies like Drizzle Kit and tsx. ```bash npm i drizzle-orm gel npm i -D drizzle-kit tsx ``` ```bash yarn add drizzle-orm gel yarn add -D drizzle-kit tsx ``` ```bash pnpm add drizzle-orm gel pnpm add -D drizzle-kit tsx ``` ```bash bun add drizzle-orm gel bun add -D drizzle-kit tsx ``` -------------------------------- ### Install Drizzle ORM and Drizzle Kit with bun Source: https://orm.drizzle.team/docs/get-started/bun-sql-new Installs Drizzle ORM and Drizzle Kit using the Bun runtime's package manager, including types for Bun. ```bash bun add drizzle-orm bun add -D drizzle-kit @types/bun ``` -------------------------------- ### Install Drizzle ORM and Drizzle Kit with npm Source: https://orm.drizzle.team/docs/get-started/bun-sql-new Installs the necessary Drizzle ORM package for database operations and Drizzle Kit for schema management and migrations using npm. ```bash npm i drizzle-orm npm i -D drizzle-kit @types/bun ``` -------------------------------- ### Install Drizzle ORM and Drizzle Kit with yarn Source: https://orm.drizzle.team/docs/get-started/bun-sql-new Installs the Drizzle ORM and Drizzle Kit packages using yarn, including the types for Bun. ```bash yarn add drizzle-orm yarn add -D drizzle-kit @types/bun ``` -------------------------------- ### Install Drizzle Packages with bun Source: https://orm.drizzle.team/docs/get-started/planetscale-new Installs the necessary Drizzle ORM packages, the PlanetScale database driver, dotenv for environment variables, and Drizzle Kit with tsx for development. ```bash bun add drizzle-orm @planetscale/database dotenv bun add -D drizzle-kit tsx ``` -------------------------------- ### Install Drizzle ORM and Drizzle Kit with pnpm Source: https://orm.drizzle.team/docs/get-started/bun-sql-new Installs Drizzle ORM and Drizzle Kit, along with Bun types, using the pnpm package manager. ```bash pnpm add drizzle-orm pnpm add -D drizzle-kit @types/bun ``` -------------------------------- ### Install Drizzle Packages with pnpm Source: https://orm.drizzle.team/docs/get-started/planetscale-new Installs the necessary Drizzle ORM packages, the PlanetScale database driver, dotenv for environment variables, and Drizzle Kit with tsx for development. ```bash pnpm add drizzle-orm @planetscale/database dotenv pnpm add -D drizzle-kit tsx ``` -------------------------------- ### Install Drizzle Packages with npm Source: https