Create cqrs bulk commands

From PrestaShop/PrestaShop · View interactive version

Create cqrs bulk commands is an AI agent skill from the GitHub repository PrestaShop/PrestaShop. Create bulk action commands and their handlers. All bulk handlers extend AbstractBulkCommandHandler, catch errors per item, and report failures via BulkCommandExceptionInterface. Trigger: "create bulk commands for {Domain}".

How to use this skill

Skill file

create-cqrs-bulk-commands

See CQRS/CONTEXT.md for the bulk handler pattern (AbstractBulkCommandHandler, BulkCommandExceptionInterface, continue after failure).

1. Bulk delete command

Create src/Core/Domain/{Domain}/Command/BulkDelete{Domain}sCommand.php:

2. Bulk status command

Create src/Core/Domain/{Domain}/Command/BulkToggle{Domain}StatusCommand.php:

3. Bulk handlers

All bulk handlers follow the same structure. Create in src/Adapter/{Domain}/CommandHandler/:

Bulk delete handler

BulkDelete{Domain}sHandler.php:

Bulk status handler

BulkToggle{Domain}StatusHandler.php:

4. Handler interfaces

Create in src/Core/Domain/{Domain}/CommandHandler/:

Both return void. The bulk exception is thrown, not returned.

Rules

Conventions (AbstractBulkCommandHandler, continue after failure, BulkCommandExceptionInterface) are in CQRS/CONTEXT.md. Skill-specific reminders:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.