Agent skill

wolverine__delete_operation

Adds a new DELETE operation (soft delete / tombstone) to the Backend. Use this when implementing DELETE endpoints to remove resources.

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/wolverine-delete-operation

SKILL.md

Follow this guide to implement a Delete Operation (Soft Delete) in the ApiService.

  1. Define the Domain Event

    • Create a record in src/BookStore.ApiService/Events/
    • Naming: {Resource}Deleted
    • Template: templates/Event.cs
  2. Define the Command

    • Create a record in src/BookStore.ApiService/Commands/{Resource}/
    • Naming: Delete{Resource}
    • Template: templates/Command.cs
  3. Implement the Endpoint

    • Create/Update src/BookStore.ApiService/Endpoints/{Resource}Endpoints.cs
    • Pattern: Wolverine.HTTP
    • Features: Use [Aggregate] attribute to auto-load state.
    • Logic: Pure function receiving aggregate and returning (IResult, IEvent).
    • Template: templates/Endpoint.cs
  4. Update Read Models

    • Ensure your projections handle the {Resource}Deleted event (e.g., set Deleted = true or remove document).

Related Skills

  • /wolverine__create_operation: For creating new resources.
  • /wolverine__update_operation: For updating existing resources.

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