Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dicklesworthstone/cqrs-implementation
Implement Command Query Responsibility Segregation for scalable architectures.
Passed 16 of 23 test cases with the skill, and 12 of 23 without it.
and 1 more in the full report
4 fixed12 passed either way7 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
Implement a Python command handler for creating an order. Developers often query the read database inside the handler to verify prior state or build the response view directly. How should the handler validate incoming commands and record state changes?
| Checked | Without skill | With skill |
|---|---|---|
| Raises a `ValueError` if the command contains an empty items list. | Passed | Passed |
| Appends uncommitted events from the aggregate to the event store instead of querying read views. | Missed | Passed |
The instructions your model reads when the skill loads.
Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.
┌─────────────┐
│ Client │
└──────┬──────┘
│
┌────────────┴────────────┐
│ │
▼ ▼
┌─────────────┐ ┌─────────────┐
│ Commands │ │ Queries │
│ API │ │ API │
└──────┬──────┘ └──────┬──────┘
│ │
▼ ▼
┌─────────────┐ ┌─────────────┐
│ Command │ │ Query │
│ Handlers │ │ Handlers │
└──────┬──────┘ └──────┬──────┘
│ │
▼ ▼
┌─────────────┐ ┌─────────────┐
│ Write │─────────►│ Read │
│ Model │ Events │ Model │
test cases passed, vs 12 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.