crud-generator
БесплатноБез исполняемых скриптовНе проверенGenerate complete CRUD application services for ABP Framework following DDD patterns. Creates interface in Contracts layer, implementation in AppServices, and…
от 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 (extendsEntityDto<Guid>or plain class)CreateUpdate{EntityName}Dto- Input for create/update with validation attributes{EntityName}Filter- Filter and pagination (extendsPagedAndSortedResultRequestDto){EntityName}ExportDto- For export operationsManageConfigDto- IfhasConfig=true{EntityName}ImportDto- IfneedsBulkImport=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
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic