cqrs-implementation

cqrs-implementation is a skill for Claude Code from wshobson/agents. It costs 35 tokens per session (647 once invoked), scanned A, original, MIT.

A guide to CQRS, an architecture that separates changing data from reading data. It also covers event-sourced systems, where changes are stored as a history of events.

In plain words
What is it for?
Use it to separate read and write models, scale them independently, design event-sourced systems, and improve reporting queries.
Why use it?
It helps when reading and writing data have different performance or design needs, or when complex queries make one shared model difficult to manage.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the backend-development plugin — 9 skills, 1 command, 5 agents shipped together

not rated 43krepo +205 2d ago A scan Socket: passSnyk: passSkillSpector: pass 35 tokens original MIT

Good fit Use it to separate read and write models, scale them independently, design event-sourced systems, and improve reporting queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wshobson/agents/cqrs-implementation
About the project

Agentic Plugin Marketplace is a collection of reusable plugins, agents, skills, commands, and rules for coding-agent tools including Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, and GitHub Copilot. It is for developers assembling agentic workflows across multiple harnesses from shared Markdown sources, and the catalogue entries are examples or subsets of those workflow components.

wshobson/agents · 43,195 stars · on GitHub · sethhobson.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wshobson/agents --skill cqrs-implementation
Clone the repo
git clone --depth 1 https://github.com/wshobson/agents

Made for: Claude Code.

Or install backend-development, the plugin that ships this one along with the rest of its 9 skills, 1 command, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cqrs-implementation

README.md
[![agentmods](https://agentmods.dev/badge/skills/wshobson/agents/cqrs-implementation/github.svg)](https://agentmods.dev/skills/wshobson/agents/cqrs-implementation)
Your own site
<a href="https://agentmods.dev/skills/wshobson/agents/cqrs-implementation"><img src="https://agentmods.dev/badge/skills/wshobson/agents/cqrs-implementation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cqrs-implementation

Your own site · 80×15
<a href="https://agentmods.dev/skills/wshobson/agents/cqrs-implementation"><img src="https://agentmods.dev/badge/skills/wshobson/agents/cqrs-implementation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 647 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00647
Opus 5.5 $0.00014 $0.00259
Sonnet 5.5 $0.00007 $0.00129
Haiku 4.5 $0.00003 $0.00065

Measured 3mo ago against content hash 03102920d271, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cqrs-implementation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/backend-development/skills/cqrs-implementation/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CQRS Implementation

Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.

When to Use This Skill

  • Separating read and write concerns
  • Scaling reads independently from writes
  • Building event-sourced systems
  • Optimizing complex query scenarios
  • Different read/write data models needed
  • High-performance reporting requirements

Core Concepts

1. CQRS Architecture

                    ┌─────────────┐
                    │   Client    │
                    └──────┬──────┘
                           │
              ┌────────────┴────────────┐
              │                         │
              ▼                         ▼
       ┌─────────────┐          ┌─────────────┐
       │  Commands   │          │   Queries   │
       │    API      │          │    API      │
       └──────┬──────┘          └──────┬──────┘
              │                         │
              ▼                         ▼
       ┌─────────────┐          ┌─────────────┐
       │  Command    │          │   Query     │
       │  Handlers   │          │  Handlers   │
       └──────┬──────┘          └──────┬──────┘
              │                         │
              ▼                         ▼
       ┌─────────────┐          ┌─────────────┐
       │   Write     │─────────►│    Read     │
       │   Model     │  Events  │   Model     │
       └─────────────┘          └─────────────┘

2. Key Components

Component Responsibility
Command Intent to change state
Command Handler Validates and executes commands
Event Record of state change
Query Request for data
Query Handler Retrieves data from read model
Projector Updates read model from events

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

Read the full file on GitHub · 80 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 80 lines · 35 tokens per session scan A 03102920d271

Subscribe to this mod's changes

cqrs-implementation is a skill published in the GitHub repository wshobson/agents (43,195 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 647 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cqrs-implementation compared with skills from other repositories

cqrs-implementation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cqrs-implementationwshobson/agentsSkill43k2d agoMITA35Claude Code
software-baas-platformsvasilyu1983/AI-Agents-publicSkill1011mo agoMITA37Claude Code, Codex
dev-supabasechristopherlouet/claude-baseSkill64d agoMITA28Claude Code
312-frameworks-spring-data-jdbcjabrena/cursor-rules-examplesSkill23mo agoApache-2.0A57Claude Code, Codex
caching-strategiesVersoXBT/claude-initial-setupSkill46mo agoMITA63Claude Code
backend-patternsaffaan-m/ECCSkill316k3d agoMITA51Claude Code, Codex
ai-persistence/storesTanStack/aiSkill3.4ktodayMITA101Claude Code