Agent skill

generate-crud

Generate complete CRUD operations for an entity

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-crud

SKILL.md

Generate CRUD Operations

Generate Controller, Service, Repository, DTO, and Tests for an entity.

What To Do

  1. Analyze existing patterns: Read an existing entity implementation to match conventions.
  2. Generate files:
    • Controller with GET (all, by id), POST, PUT, DELETE endpoints
    • Service interface + implementation with validation
    • Repository interface + implementation (CosmosDB)
    • DTO with ToDomain() and FromDomain() static methods
    • Unit tests for service layer
  3. Register in DI: Add service and repository to Program.cs

Arguments

  • <entity-name>: Entity name in PascalCase
  • --with-tests: Generate test file (default: true)
  • --with-dto: Generate DTO classes (default: true)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results