Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

crud-generator

БесплатноБез исполняемых скриптовНе проверен

Generate complete CRUD application services for ABP Framework following DDD patterns. Creates interface in Contracts layer, implementation in AppServices, and…

thapaliyabikendraот thapaliyabikendra★ 25 звёзд на GitHub

Об этом скилле

ABP CRUD Service Generator (Project-Agnostic)

Generates complete, production-ready CRUD application services following ABP Framework best practices and DDD patterns. This skill is framework-agnostic and works with any ABP-based project.

When to Use

  • Creating a new entity service from scratch in any ABP project
  • Scaffolding standard CRUD operations quickly
  • Ensuring consistency with existing service patterns
  • Implementing reference-based service architecture
  • Accelerating feature development with proven templates
  • Interface-first development (generate implementation after interface exists)

What Gets Generated

The skill generates files in two separate layers following standard ABP architecture:

Contracts Layer ({Project}.Application.Contracts/)

The interface and DTOs are generated in the Contracts project. This layer is shared between server and client.

1. Interface (I{EntityName}AppService.cs)

using System;
using System.Threading.Tasks;
using {Project}.Dtos; // Adjust based on your project's DTO namespace
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace {Project}.Application.Contracts.{PluralEntityName};

public interface I{EntityName}AppService : IApplicationService
{
    Task<ResponseDataDto<object>> CreateAsync(CreateUpdate{EntityName}Dto input);
    Task<ResponseDataDto<object>> UpdateAsync(Guid id, CreateUpdate{EntityName}Dto input);
    Task<ResponseDataDto<object>> DeleteAsync(Guid id);
    Task<ResponseDataDto<{EntityName}Dto>> GetAsync(Guid id);
    Task<ResponseDataDto<PagedResultDto<{EntityName}Dto>>> GetListAsync(PagedAndSortedResultRequestDto input, {EntityName}Filter filter);
    Task<ResponseDataDto<object>> ActivateAsync(Guid id);          // If hasIsActive=true
    Task<ResponseDataDto<object>> DeactivateAsync(Guid id);       // If hasIsActive=true
    Task<ResponseDataDto<object>> ManageConfigAsync(ManageConfigDto input); // If hasConfig=true
    Task<ResponseDataDto<object>> BulkImportAsync([FromForm] BulkImportFileDto input); // If needsBulkImport=true
    Task<ResponseDataDto<ExportFileBlobDto>> ExportAsync({EntityName}Filter filter); // If needsBulkImport=true
    Task<ResponseDataDto<DropDownDto[]>> Get{EntityName}sAsync();
}

Note: Adjust the using statements and namespace to match your project conventions.

2. DTOs ({EntityName}Dtos.cs)

All required DTO classes:

  • {EntityName}Dto - Response DTO (extends EntityDto<Guid> or plain class)
  • CreateUpdate{EntityName}Dto - Input for create/update with validation attributes
  • {EntityName}Filter - Filter and pagination (extends PagedAndSortedResultRequestDto)
  • {EntityName}ExportDto - For export operations
  • ManageConfigDto - If hasConfig=true
  • {EntityName}ImportDto - If needsBulkImport=true

Application Layer ({Project}.Application/AppServices/)

3. Implementation ({EntityName}AppService.cs)

Complete implementation with:

  • Constructor injection of all dependencies
  • Full CRUD methods with try-catch and structured logging
  • Validation methods (ValidateInputAsync, etc.)
  • Optional activation/deactivation methods with business rules
  • Optional config management
  • Optional bulk import/export with validation
  • Helper methods (Get{EntityName}Async, etc.)

ABP CRUD Service Generator

Generates complete, production-ready CRUD application services following ABP Framework best practices and DDD patterns.

When to Use

  • Creating a new entity service from scratch
  • Scaffolding standard CRUD operations quickly
  • Ensuring consistency with existing service patterns
  • Implementing reference-based service architecture
  • Accelerating feature development with proven templates
  • Interface-first development (generate implementation after interface exists)

What Gets Generated

The skill generates files in two separate layers following standard ABP architecture:

Contracts Layer ({Project}.Application.Contracts/)

The interface and DTOs are generated in the Contracts project. This layer is shared between server and client.

1. Interface (I{EntityName}AppService.cs)

public interface I{EntityName}AppService : IApplicationService
{
    Task<ResponseDataDto<object>> CreateAsync(CreateUpdate{EntityName}Dto input);
    Task<ResponseDataDto<object>> UpdateAsync(Guid id, CreateUpdate{EntityName}Dto input);
    Task<ResponseDataDto<object>> DeleteAsync(Guid id);
    Task<ResponseDataDto<{EntityName}Dto>> GetAsync(Guid id);
    Task<ResponseDataDto<PagedResultDto<{EntityName}Dto>>> GetListAsync(PagedAndSortedResultRequestDto input, {EntityName}Filter filter);
    Task<ResponseDataDto<object>> ActivateAsync(Guid id);          // If hasIsActive=true
    Task<ResponseDataDto<object>> DeactivateAsync(Guid id);       // If hasIsActive=true
    Task<ResponseDataDto<object>> ManageConfigAsync(ManageConfigDto input); // If hasConfig=true
    Task<ResponseDataDto<object>> BulkImpor
Полный SKILL.md на GitHub

Установить crud-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл crud-generator?

Generate complete CRUD application services for ABP Framework following DDD patterns. Creates interface in Contracts layer, implementation in AppServices, and DTOs in Contracts. Use when: (1) creating new entity services, (2) scaffolding CRUD operations, (3) implementing standard ABP service patterns, (4) accelerating feature development.

Как установить скилл crud-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл crud-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить crud-generator с