Agent skill
wolverine__update_operation
Adds a new UPDATE operation (appending to stream) to the Backend. Use this when implementing PUT or PATCH endpoints to modify existing resources.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/wolverine-update-operation
SKILL.md
Follow this guide to implement an Update Operation in the ApiService.
-
Define the Domain Event
- Create a
recordinsrc/BookStore.ApiService/Events/ - Naming:
{Resource}Updatedor specific action (e.g.,BookPublished) - Template:
templates/Event.cs
- Create a
-
Define the Command
- Create a
recordinsrc/BookStore.ApiService/Commands/{Resource}/ - Naming:
{Verb}{Resource}(e.g.,UpdateAuthor,PublishBook) - Template:
templates/Command.cs
- Create a
-
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
aggregateand returning(IResult, IEvent). - Template:
templates/Endpoint.cs
- Create/Update
-
Update Read Models
- Ensure your projections handle the events.
Related Skills
/wolverine__create_operation: For creating new resources./wolverine__delete_operation: For deleting resources.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?