giuseppe-trisciuoglio avatar

Nestjs Drizzle Crud Generator

Spins up complete NestJS CRUD modules with Drizzle ORM through a Python script that generates controllers, services, Zod-validated DTOs, database schemas, and Jest tests in one shot. You give it an entity name and a JSON array of fields, and it outputs the full module structure following a monorepo pattern. Solid time-saver when you're scaffolding database-backed features and don't want to write the same boilerplate for the hundredth time. Ships with soft delete support and pagination out of the box, though you'll need to layer on auth guards and any business logic yourself. The generated code compiles clean and includes test mocks, but treat it as a starting point rather than production-ready.

skills.sh installs
3.8K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill nestjs-drizzle-crud-generator --agent claude-code

Installs into .claude/skills of the current project.

Files

NestJS Drizzle CRUD Generator

Overview

Automatically generates complete CRUD modules for NestJS applications using Drizzle ORM. Creates all necessary files following the zaccheroni-monorepo patterns: feature modules, controllers, services, Zod-validated DTOs, Drizzle schemas, and Jest unit tests.

When to Use

  • Creating new entity modules with full CRUD endpoints
  • Building database-backed features in NestJS
  • Generating type-safe DTOs with Zod validation
  • Adding services with Drizzle ORM queries
  • Creating unit tests with mocked database

Instructions

Step 1: Define Entity Fields

Gather entity definition:

  • Entity name (e.g., user, product, order)
  • List of fields with types (see references/field-types.md for supported types)
  • Required fields vs optional fields with defaults

Step 2: Run the Generator

python scripts/generate_crud.py --feature <name> --fields '<json-array>' --output <path>

Step 3: Verify Generated Files

Check that all expected files were created:

ls -la libs/server/<feature-name>/src/lib/

Expected structure:

controllers/
services/
dto/
schema/
<feature>-feature.module.ts

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Backend & APIs, Automation & Workflows, Databases
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102
1giuseppe-trisciuoglio avataraws-lambda-python-integrationgiuseppe-trisciuoglio/developer-kitProvides AWS Lambda integration patterns for Python with cold start optimization. Use when deploying Python functions to AWS Lambda, choosing between AWS Chalic3.8Kskills.sh installs
2giuseppe-trisciuoglio avataraws-lambda-typescript-integrationgiuseppe-trisciuoglio/developer-kitProvides AWS Lambda integration patterns for TypeScript with cold start optimization. Use when creating or deploying TypeScript Lambda functions, choosing betwe3.7Kskills.sh installs
3giuseppe-trisciuoglio avatarbetter-authgiuseppe-trisciuoglio/developer-kitProvides Better Auth integration patterns for NestJS backend and Next.js frontend with Drizzle ORM and PostgreSQL. Use when setting up Better Auth with NestJS b3.7Kskills.sh installs
4giuseppe-trisciuoglio avataraws-lambda-java-integrationgiuseppe-trisciuoglio/developer-kitProvides AWS Lambda integration patterns for Java with cold start optimization. Use when deploying Java functions to AWS Lambda, choosing between Micronaut and 3.7Kskills.sh installs
5giuseppe-trisciuoglio avataraws-lambda-php-integrationgiuseppe-trisciuoglio/developer-kitProvides AWS Lambda integration patterns for PHP with Symfony using the Bref framework. Creates Lambda handler classes, configures runtime layers, sets up SQS/S3.7Kskills.sh installs
6cloudflare avatarbuilding-mcp-server-on-cloudflarecloudflare/skillsBuilds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment. Generates server code, con3.4Kskills.sh installs