Generates complete CRUD modules for NestJS with Drizzle ORM, including controllers, services, Zod DTOs, schemas, and Jest tests. Use for new database-backed entities and endpoints.
How this skill is triggered — by the user, by Claude, or both
Slash command
/developer-kit-typescript:nestjs-drizzle-crud-generatorThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.
Gather entity definition:
user, product, order)references/field-types.md for supported types)python scripts/generate_crud.py --feature <name> --fields '<json-array>' --output <path>
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
cd libs/server && npx tsc --noEmit
cd libs/server && npm test -- --testPathPattern=<feature-name>
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
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
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
forRootAsync pattern for lazy configurationdeletedAt column)After generation, integrate into your app module:
// app.module.ts
import { {{FeatureName}}FeatureModule } from '@your-org/server-{{feature}}';
@Module({
imports: [
{{FeatureName}}FeatureModule.forRootAsync({
useFactory: () => ({
defaultPageSize: 10,
maxPageSize: 100,
}),
}),
],
})
export class AppModule {}
Required packages:
@nestjs/common@nestjs/coredrizzle-ormdrizzle-zodzodnestjs-zodtsc --noEmit and tests before committing generated codedeletedAt timestamp). Hard deletes require manual modificationnpx claudepluginhub giuseppe-trisciuoglio/developer-kit --plugin developer-kit-typescriptGenerates NestJS modules with Drizzle ORM for REST/GraphQL APIs, JWT authentication guards, CRUD operations, database schemas, microservices, and migrations. Use for scalable server-side apps.
Generates production-ready CRUD scaffolding and API endpoints for entities, including validation (Zod), authorization, tests, and relational support. Detects and adapts to existing schema (Prisma, Drizzle, raw SQL) and framework (Next.js, Express, Hono).
Creates and configures NestJS modules, controllers, services, DTOs, guards, interceptors, and authentication for enterprise-grade TypeScript backend applications.