Agent skill

Nestjs Drizzle Crud Generator

by giuseppe-trisciuoglio in giuseppe-trisciuoglio/developer-kit

Generates complete CRUD modules for NestJS applications with Drizzle ORM.

MITAuto-check: notesDatabases

Install Nestjs Drizzle Crud Generator

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

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install giuseppe-trisciuoglio/developer-kit nestjs-drizzle-crud-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/developer-kit-typescript/skills/nestjs-drizzle-crud-generator .claude/skills/nestjs-drizzle-crud-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nestjs-drizzle-crud-generator
GitHub stars
357
Token cost
~1.3k tokens
SKILL.md length
365 words
Files
9 (incl. scripts, references, assets)
Skills in repo
115
Repo updated
First seen
Licence
MIT

At a glance

Generates complete CRUD modules for NestJS applications with Drizzle ORM.

  • Works in 5 steps: Define Entity Fields → Run the Generator → Verify Generated Files → …
  • Building server-side features in NestJS that require database operations
  • SKILL.md covers Overview, When to Use, Instructions and Examples, plus 6 more sections
  • Runs TypeScript and Python scripts from its folder; calls python, npx and npm

What it does

Nestjs Drizzle Crud Generator is an agent skill from giuseppe-trisciuoglio/developer-kit. Generates complete CRUD modules for NestJS applications with Drizzle ORM. Use when building server-side features in NestJS that require database operations, including creating new entities with full CRUD endpoints, services with Drizzle queries, Zod-validated DTOs, and unit tests. Triggered by requests like "generate a user module", "create a product CRUD", "add a new entity with endpoints", or when setting up database-backed features in NestJS.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts, reference files and assets (for example `assets/templates/controller-template.ts`, `assets/templates/dto-template.ts` and `assets/templates/module-template.ts`).

It sits in Databases, covering ORMs and data access, Unit testing and Forms and validation. It works with NestJS, Zod and Drizzle ORM. The repository describes itself as: Modular plugin marketplace for Claude Code and agentic CLIs, with validated, spec-driven skills, agents, commands, and workflows for Java, TypeScript, Python, PHP, AWS, and AI. The licence is MIT.

When your agent uses it

  • Building server-side features in NestJS that require database operations
  • Including creating new entities with full CRUD endpoints
  • Services with Drizzle queries
  • Zod-validated DTOs

Example prompts

  • “generate a user module”
  • “create a product CRUD”
  • “add a new entity with endpoints”
  • “/nestjs-drizzle-crud-generator”

Requirements

  • Python 3
  • Node.js
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, Bash

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Define Entity Fields
  2. Run the Generator
  3. Verify Generated Files
  4. Run TypeScript Compilation
  5. Execute Unit Tests

What it can do on your machine

Read from SKILL.md and the folder at commit fe73fb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (TypeScript and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • npx
    • npm
    • tsc

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nestjs Drizzle Crud Generator loads about 1.3k tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 120 tokens; SKILL.md has 365 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Glob, Grep, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from giuseppe-trisciuoglio/developer-kit at commit fe73fb3, republished under its MIT licence (© giuseppe-trisciuoglio). 365 words, ~1,309 tokens.

Download SKILL.mdSave it as .claude/skills/nestjs-drizzle-crud-generator/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
nestjs-drizzle-crud-generator
description
Generates complete CRUD modules for NestJS applications with Drizzle ORM. Use when building server-side features in NestJS that require database operations, including creating new entities with full CRUD endpoints, services with Drizzle queries, Zod-validated DTOs, and unit tests. Triggered by requests like "generate a user module", "create a product CRUD", "add a new entity with endpoints", or when setting up database-backed features in NestJS.
allowed-tools
Read, Write, Edit, Glob, Grep, Bash

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
bash
python scripts/generate_crud.py --feature <name> --fields '<json-array>' --output <path>
Step 3: Verify Generated Files

Check that all expected files were created:

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

Expected structure:

controllers/
services/
dto/
schema/
<feature>-feature.module.ts
Step 4: Run TypeScript Compilation
bash
cd libs/server && npx tsc --noEmit
Step 5: Execute Unit Tests
bash
cd libs/server && npm test -- --testPathPattern=<feature-name>

Examples

Generate a User module
bash
python scripts/generate_crud.py \
  --feature user \
  --fields '[{"name": "name", "type": "string", "required": true}, {"name": "email", "type": "email", "required": true}, {"name": "password", "type": "string", "required": true}]' \
  --output ./libs/server
Generate a Product module
bash
python scripts/generate_crud.py \
  --feature product \
  --fields '[{"name": "title", "type": "string", "required": true}, {"name": "price", "type": "number", "required": true}, {"name": "description", "type": "text", "required": false}, {"name": "inStock", "type": "boolean", "required": false, "default": true}]' \
  --output ./libs/server

Generated Structure

libs/server/{feature-name}/
├── src/
│   ├── index.ts
│   └── lib/
│       ├── {feature}-feature.module.ts
│       ├── controllers/
│       │   ├── index.ts
│       │   └── {feature}.controller.ts
│       ├── services/
│       │   ├── index.ts
│       │   ├── {feature}.service.ts
│       │   └── {feature}.service.spec.ts
│       ├── dto/
│       │   ├── index.ts
│       │   └── {feature}.dto.ts
│       └── schema/
│           └── {feature}.table.ts

Features

Module
  • Uses forRootAsync pattern for lazy configuration
  • Exports generated service for other modules
  • Imports DatabaseModule for feature tables
Controller
  • Full CRUD endpoints: POST, GET, PATCH, DELETE
  • Query parameter validation for pagination
  • Zod validation pipe integration
Service
  • Drizzle ORM query methods
  • Soft delete support (via deletedAt column)
  • Pagination with limit/offset
  • Filtering support
  • Type-safe return types
DTOs
  • Zod schemas for Create and Update
  • Query parameter schemas for filtering
  • NestJS DTO integration
Tests
  • Jest test suite
  • Mocked Drizzle database
  • Test cases for all CRUD operations
Show full SKILL.md (140 more words)Show less

Manual Integration

After generation, integrate into your app module:

typescript
// app.module.ts
import { {{FeatureName}}FeatureModule } from '@your-org/server-{{feature}}';

@Module({
  imports: [
    {{FeatureName}}FeatureModule.forRootAsync({
      useFactory: () => ({
        defaultPageSize: 10,
        maxPageSize: 100,
      }),
    }),
  ],
})
export class AppModule {}

Dependencies

Required packages:

  • @nestjs/common
  • @nestjs/core
  • drizzle-orm
  • drizzle-zod
  • zod
  • nestjs-zod

Best Practices

  1. Verify before commit: Always run tsc --noEmit and tests before committing generated code
  2. Customize services: Add business logic to generated services after validation
  3. Database migrations: Create migrations separately for generated Drizzle schemas
  4. Use generated types: Reference generated types in your application code
  5. Review DTOs: Adjust Zod validation rules based on your API requirements

Constraints and Warnings

  • Soft delete only: Delete operations use soft delete (deletedAt timestamp). Hard deletes require manual modification
  • No authentication: Generated code does not include auth guards - add them based on your security requirements
  • Basic CRUD only: Complex queries, transactions, or business logic must be implemented manually
  • JSON escaping: Use single quotes around the JSON array when passing fields on command line

© giuseppe-trisciuoglio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references, assets) in plugins/developer-kit-typescript/skills/nestjs-drizzle-crud-generator of giuseppe-trisciuoglio/developer-kit.

  • SKILL.md
  • assets/templates/controller-template.ts
  • assets/templates/dto-template.ts
  • assets/templates/module-template.ts
  • assets/templates/service-template.ts
  • assets/templates/table-template.ts
  • assets/templates/test-template.ts
  • references/field-types.md
  • scripts/generate_crud.py

Open the folder on GitHubat commit fe73fb3

Compare with similar skills

Nestjs Drizzle Crud Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nestjs Drizzle Crud Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nestjs Drizzle Crud Generator this skillgiuseppe-trisciuoglio/developer-kit357—~1.3kAutomated safety check: NotesMIT
DB Schemazhe-qi/clhoria-template193—~620Automated safety check: PassMIT
Drizzle Sqlite Scaffoldpproenca/dot-skills215—~4kAutomated safety check: PassMIT
ImplementAI-Unified-Process/marketplace142—~4.7kAutomated safety check: WarnApache-2.0
Backend Dev Guidelineslangfuse/langfuse36k—~1.9kAutomated safety check: PassCustom licence
Better Drizzlealmeidazs/better-drizzle349—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • DB Schema

    zhe-qi/clhoria-template

    创建或修改数据库 Schema。当需要创建新表、修改表结构、定义字段、设置索引约束、或涉及 Drizzle ORM / drizzle-zod 操作时使用

    193 GitHub stars~620 tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • Drizzle Sqlite Scaffold

    pproenca/dot-skills

    Scaffolds Drizzle ORM + SQLite boilerplate — a new drizzle.config.ts, a singleton client with the right pragmas, per-table schema files with explicit primary keys/indexed foreign…

    215 GitHub stars~4k tokensUpdated 1 mo ago
    DatabasesAuto-check passed
  • Implement

    AI-Unified-Process/marketplace

    Implements use cases across a NestJS backend with Drizzle ORM over PostgreSQL and a Next.js App Router frontend wired to that API.

    142 GitHub stars~4.7k tokensUpdated 6 days ago
    DatabasesAuto-check: warnings
  • Backend Dev Guidelines

    langfuse/langfuse

    Build or review Langfuse backend code. An agent skill from langfuse/langfuse.

    36k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Better Drizzle

    almeidazs/better-drizzle

    Write, review, and debug code that uses better-drizzle, the typed repository layer over Drizzle ORM 1.x (better(db), client.users.findMany, paginate, cursor, upsertMany, relation include/connect…

    349 GitHub stars~1.7k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Backend Dev Guidelines

    litefuse/litefuse

    Comprehensive backend development guide for Litefuse's Next.js 14/tRPC/Express/TypeScript monorepo.

    101 GitHub starsUsed in 1 repo~5.8k tokens
    Backend & APIsAuto-check passed

More from giuseppe-trisciuoglio/developer-kit

All 115 skills in this repo
  • Spring Boot Actuator

    giuseppe-trisciuoglio/developer-kit

    Provides patterns to configure Spring Boot Actuator for production-grade monitoring, health probes, secured management endpoints, and Micrometer metrics across JVM services.

    357 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check: notes
  • Spring Boot Crud Patterns

    giuseppe-trisciuoglio/developer-kit

    Provides and generates complete CRUD workflows for Spring Boot 3 services.

    357 GitHub stars~2.5k tokensUpdated 1 mo ago
    Auto-check: notes
  • Spring Boot Security JWT

    giuseppe-trisciuoglio/developer-kit

    Provides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based…

    357 GitHub stars~3.9k tokensUpdated 1 mo ago
    Auto-check: notes
  • AWS CLI Beast

    giuseppe-trisciuoglio/developer-kit

    Provides advanced AWS CLI patterns for managing EC2, Lambda, S3, DynamoDB, RDS, VPC, IAM, and CloudWatch.

    357 GitHub stars~1.7k tokensUpdated 1 mo ago
    Auto-check: notes
  • PR Review Comments

    giuseppe-trisciuoglio/developer-kit

    Posts review findings from a JSON file as inline comments on a GitHub Pull Request, attaching each comment to its file and line.

    357 GitHub stars~1k tokensUpdated 1 mo ago
    Auto-check: notes
  • AWS SDK Java V2 Secrets Manager

    giuseppe-trisciuoglio/developer-kit

    Provides AWS Secrets Manager patterns for AWS SDK for Java 2.x, including secret retrieval, caching, rotation-aware access, and Spring Boot integration.

    357 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check: notes

Questions about Nestjs Drizzle Crud Generator

What does Nestjs Drizzle Crud Generator do?

Generates complete CRUD modules for NestJS applications with Drizzle ORM. Nestjs Drizzle Crud Generator is an agent skill from giuseppe-trisciuoglio/developer-kit. Generates complete CRUD modules for NestJS applications with Drizzle ORM.

When should I use Nestjs Drizzle Crud Generator?

Nestjs Drizzle Crud Generator fits situations like: building server-side features in NestJS that require database operations; including creating new entities with full CRUD endpoints; services with Drizzle queries; zod-validated DTOs.

How do I install Nestjs Drizzle Crud Generator in Claude Code?

Run `npx skills add giuseppe-trisciuoglio/developer-kit --skill nestjs-drizzle-crud-generator -a claude-code`. Or copy the skill folder (plugins/developer-kit-typescript/skills/nestjs-drizzle-crud-generator in giuseppe-trisciuoglio/developer-kit) into .claude/skills/nestjs-drizzle-crud-generator in your project. Claude Code loads it when a task matches its description.

How do I install Nestjs Drizzle Crud Generator in Codex?

Run `npx skills add giuseppe-trisciuoglio/developer-kit --skill nestjs-drizzle-crud-generator -a codex`. Or copy the skill folder (plugins/developer-kit-typescript/skills/nestjs-drizzle-crud-generator in giuseppe-trisciuoglio/developer-kit) into .agents/skills/nestjs-drizzle-crud-generator in your project. Codex loads it when a task matches its description.

Can I use Nestjs Drizzle Crud Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add giuseppe-trisciuoglio/developer-kit --skill nestjs-drizzle-crud-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nestjs-drizzle-crud-generator, .gemini/skills/nestjs-drizzle-crud-generator, .github/skills/nestjs-drizzle-crud-generator and .opencode/skills/nestjs-drizzle-crud-generator in your project.

What does Nestjs Drizzle Crud Generator need to run?

Going by SKILL.md and its folder, Nestjs Drizzle Crud Generator needs TypeScript and Python for the scripts in its folder and the command-line tools its instructions call (python, npx, npm and tsc). Our summary lists: Python 3; Node.js. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash.

Does Nestjs Drizzle Crud Generator access the network?

SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Nestjs Drizzle Crud Generator safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Nestjs Drizzle Crud Generator use?

Nestjs Drizzle Crud Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nestjs Drizzle Crud Generator use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 335 tokens, read only when the agent opens those files.

What are the alternatives to Nestjs Drizzle Crud Generator?

Skills that share tags, products or a category with Nestjs Drizzle Crud Generator: DB Schema (zhe-qi/clhoria-template, 193 stars), Drizzle Sqlite Scaffold (pproenca/dot-skills, 215 stars), Implement (AI-Unified-Process/marketplace, 142 stars) and Backend Dev Guidelines (langfuse/langfuse, 36k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nestjs Drizzle Crud Generator?

giuseppe-trisciuoglio (a GitHub user) maintains it in giuseppe-trisciuoglio/developer-kit, which has 357 GitHub stars. The repository holds 115 skills in this directory. The repository was last updated on September 10, 2026.

Source: giuseppe-trisciuoglio/developer-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.