scaffold-crud

Generates complete CRUD feature files for .NET microservices using CQRS and Entity Framework.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/GSU26SE55/backend --skill scaffold-crud-gsu26se55
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scaffold-crud
Source: https://github.com/GSU26SE55/backend/tree/main/.claude/skills/dev/be/scaffold-crud
Command: npx skills add https://github.com/GSU26SE55/backend --skill scaffold-crud-gsu26se55

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually creating all the boilerplate files for a new CRUD entity in a layered .NET microservice is repetitive and error-prone. This Skill automates the generation of 16 files across Domain, Application, and Api layers, plus updates to the DbContext, Unit of Work, and a database migration. ## Core Features & Use Cases - Full-stack file generation: Creates the Entity, Status Enum, DTOs, 4 Commands (Create, Update, Delete, Restore), 2 Queries (GetList, GetById), and a Controller for any entity. - CQRS pattern enforcement: Follows the project's established Command/Query handler structure with soft-delete and restore support. - Migration automation: Runs dotnet ef migrations add to keep the database schema in sync. - Use Case: You need to add a new Battery entity to BatteryService. Run the skill with the service and entity name, and it produces the controller endpoints (GET list/by-id, POST, PUT, DELETE, PATCH restore) with pagination, filtering, and data shaping query params. ## Quick Start Ask the AI to scaffold a complete CRUD feature by providing the service name and entity name, for example: scaffold a CRUD for entity Battery in BatteryService.

Frequently Asked Questions about scaffold-crud

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a CRUD feature in a .NET microservice?▼

Invoke the skill with the service name and entity name, for example /scaffold-crud BatteryService Battery. It generates the entity, enum, DTOs, four commands, two queries, a controller, and runs an EF Core migration.

What files does a CQRS CRUD scaffold generate?▼

It generates 16 files: a Domain entity and status enum, response DTOs, Create/Update/Delete/Restore command and handler pairs, GetList/GetById query and handler pairs, and an API controller. It also updates the DbContext, UnitOfWork interface, and implementation.

Does the generated controller support pagination and filtering?▼

Yes. The GetList endpoint supports query parameters for searchTerm, status enum filter, parentId, isDeleted soft-delete filter, ordering, field selection for data shaping, conditional includes, and pageNumber/pageSize pagination.

Can I scaffold only part of the CRUD instead of all files?▼

Yes. The full scaffold is composed of smaller steps such as scaffold-entity, scaffold-dto, scaffold-cqrs-command, scaffold-cqrs-query, scaffold-controller, and run-migration, which can be invoked individually for partial generation.

What are the limitations of this scaffolding approach?▼

It assumes the project follows the specific layered structure with Domain, Application, Infrastructure, and Api projects plus a Unit of Work pattern. Projects with different architectures or naming conventions would need manual adjustment of the generated files.