CQRS - Command Query Responsibility Segregation. An agent skill from TheBeardedBearSAS/claude-craft.

MITAuto-check passedBackend & APIs

Install Cqrs

skills CLI
$ npx skills add TheBeardedBearSAS/claude-craft --skill cqrs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TheBeardedBearSAS/claude-craft cqrs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cqrs .claude/skills/cqrs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cqrs
GitHub stars
107
Token cost
~833 tokens
SKILL.md length
325 words
Files
2
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

CQRS - Command Query Responsibility Segregation. An agent skill from TheBeardedBearSAS/claude-craft.

  • Implementing DDD patterns
  • SKILL.md covers Quand utiliser, Architecture en 30 secondes, Trade-off central and Patterns associés (souvent…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Separating read/write models

What it does

Cqrs is an agent skill from TheBeardedBearSAS/claude-craft. CQRS - Command Query Responsibility Segregation. Use when implementing DDD patterns, separating read/write models, event sourcing, or building scalable architectures with heterogeneous performance requirements.

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `REFERENCE.md`).

It sits in Backend & APIs, covering Event-driven systems. The repository describes itself as: Supercharge Claude Code with Expert Knowledge A comprehensive framework for AI-assisted development. Install standardized rules, agents, and commands for your projects across… The licence is MIT.

When your agent uses it

  • Implementing DDD patterns
  • Separating read/write models
  • Building scalable architectures with heterogeneous performance requirements

Example prompts

  • “/cqrs”

What it can do on your machine

Read from SKILL.md and the folder at commit 99c1ee3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cqrs loads about 833 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 325 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~833

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TheBeardedBearSAS/claude-craft at commit 99c1ee3, republished under its MIT licence (© TheBeardedBearSAS). 325 words, ~833 tokens.

Download SKILL.mdSave it as .claude/skills/cqrs/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cqrs
description
CQRS - Command Query Responsibility Segregation. Use when implementing DDD patterns, separating read/write models, event sourcing, or building scalable architectures with heterogeneous performance requirements.
context
fork files: ["**/Command*.php", "**/Query*.php", "**/Handler*.php", "**/Projector*.php", "**/ReadModel*.php", "**/WriteModel*.php"]

CQRS — Quick Reference

CQRS (Command Query Responsibility Segregation) sépare les opérations d'écriture et de lecture dans des modèles distincts. N'est pas par défaut — c'est une optimisation à activer quand le coût de la complexité est justifié.

Quand utiliser

PertinentPas pertinent
Domaine métier complexe avec règles d'invariants richesCRUD simple, domaine pauvre
Ratio lectures/écritures > 10×Petits projets, équipe junior
Audit / compliance (Event Sourcing naturel)Cohérence immédiate requise
Read models hétérogènes (mobile vs analytics vs back-office)Modèle de données stable et unique
Scale différencié reads vs writes (replicas, cache, search)Charge faible, monolithe modeste

Règle d'or : commencer par une architecture classique. Migrer vers CQRS lorsqu'au moins 2 des cas pertinents sont présents simultanément.

Architecture en 30 secondes

[ User ]
   ↓
[ Command ]──────────▶ [ Write Model (Domain) ]
                              ↓ persist + emit
                       [ Event(s) ]
                              ↓
[ Query ] ◀───── [ Read Model (denormalised) ] ◀── projections
  • Command side : modèle normalisé, focus invariants métier. Écrit, ne lit que ce qui est nécessaire à la validation.
  • Query side : modèle dénormalisé, focus performance lecture. N'a pas de logique métier.
  • Projections : transforment les events en read models. Eventually consistent.

Trade-off central

BénéficeCoût
Scale indépendant lecture / écritureEventual consistency (≈ 50-500 ms latency typique)
Read models taillés pour chaque besoinPlus de code à maintenir (2 modèles)
Event Sourcing devient facile à brancherDebugging plus complexe (event flow)
Audit trail naturelMigration tardive très coûteuse

Patterns associés (souvent ensemble)

  • Event Sourcing : stocker la séquence d'events comme source de vérité, le write model est reconstruit en replay.
  • Saga / Process Manager : orchestrer des transactions distribuées via events.
  • Outbox Pattern : garantir l'atomicité publication event + write DB.
  • Materialized Views : projections persistées en table dédiée pour query speed.

Anti-patterns critiques

  • ❌ CQRS sans cas d'usage clair → over-engineering, double charge cognitive.
  • ❌ Read model qui exécute des règles métier → bug d'invariants à chaque projection.
  • ❌ Projections synchrones → on perd le bénéfice scalability.
  • ❌ Event Sourcing sans snapshots → replay de millions d'events au boot.
  • ❌ Command qui retourne data complète → c'est une Query déguisée.

Pour aller plus loin

Implémentations Symfony / Laravel / .NET, Event Sourcing (Prooph, EventStoreDB), saga patterns, outbox, exemples concrets, migration progressive d'un CRUD vers CQRS, checklists par phase : voir @.claude/skills/cqrs/REFERENCE.md.

© TheBeardedBearSAS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/cqrs of TheBeardedBearSAS/claude-craft.

  • SKILL.md
  • REFERENCE.md

Open the folder on GitHubat commit 99c1ee3

Compare with similar skills

Cqrs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cqrs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cqrs this skillTheBeardedBearSAS/claude-craft107—~833Automated safety check: PassMIT
Stripe Projectsfossasia/eventyay1.7k5 repos~2kAutomated safety check: NotesApache-2.0
MQTTX CLIemqx/MQTTX5.1k—~1.9kAutomated safety check: PassApache-2.0
AWS Serverless Edazxkane/aws-skills3674 repos~3.2kAutomated safety check: PassMIT
Windmill Trigger Type Checklistwindmill-labs/windmill18k—~4.7kAutomated safety check: PassCustom licence
FoundatioFoundatioFx/Foundatio2.1k—~3.9kAutomated safety check: PassApache-2.0

Similar skills

  • Stripe Projects

    fossasia/eventyay

    A skill your agent uses when the user wants to provision infrastructure or third-party services using Stripe Projects.

    1.7k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check: notes
  • MQTTX CLI

    emqx/MQTTX

    Operates the `mqttx` command line client to connect, publish, subscribe, benchmark and simulate data against an MQTT broker, with TLS and MQTT 5 support.

    5.1k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • AWS Serverless Eda

    zxkane/aws-skills

    AWS serverless and event-driven architecture expert based on Well-Architected Framework.

    367 GitHub starsUsed in 4 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Windmill Trigger Type Checklist

    windmill-labs/windmill

    Checklist of every backend, frontend, CLI and capture change needed to add a new TriggerCrud-based trigger type, such as Azure, GCP or Kafka, to Windmill.

    18k GitHub stars~4.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Foundatio

    FoundatioFx/Foundatio

    A skill your agent uses when working with Foundatio infrastructure abstractions for .NET -- caching, queuing, messaging, file storage, distributed locking, or background jobs.

    2.1k GitHub stars~3.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Homerail Dag Ops

    xiaotianfotos/homerail

    Design, start, supervise, inspect, and continue HomeRail DAG workflows from any agent with CLI or HTTP access.

    992 GitHub stars~1.5k tokensUpdated 14 days ago
    Backend & APIsAuto-check passed

More from TheBeardedBearSAS/claude-craft

All 12 skills in this repo
  • Architect

    TheBeardedBearSAS/claude-craft

    Phase d'architecture systématique AVANT le code (TDD). An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~1.2k tokensUpdated 25 days ago
    Auto-check passed
  • Async

    TheBeardedBearSAS/claude-craft

    Architecture async-first avec messaging et queues (Symfony Messenger, Laravel Queue, Ecotone).

    107 GitHub stars~741 tokensUpdated 25 days ago
    Auto-check passed
  • Atomic Tasks

    TheBeardedBearSAS/claude-craft

    Pattern GSD (Get Shit Done) - découper en tâches atomiques avec contextes subagent frais pour combattre le context rot.

    107 GitHub stars~1.1k tokensUpdated 25 days ago
    Auto-check passed
  • Design Md Convention

    TheBeardedBearSAS/claude-craft

    Convention DESIGN.md pour design systems AI-friendly. An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~1.1k tokensUpdated 25 days ago
    Auto-check passed
  • Docker Hadolint

    TheBeardedBearSAS/claude-craft

    Docker & Hadolint validation (2026). An agent skill from TheBeardedBearSAS/claude-craft.

    107 GitHub stars~498 tokensUpdated 25 days ago
    Auto-check passed
  • Dynamic Workflows

    TheBeardedBearSAS/claude-craft

    Orchestrate dozens-to-hundreds of subagents from a script Claude writes (Claude Code Dynamic Workflows, trigger ultracode).

    107 GitHub stars~1.4k tokensUpdated 25 days ago
    Auto-check passed

Categories

Questions about Cqrs

What does Cqrs do?

CQRS - Command Query Responsibility Segregation. An agent skill from TheBeardedBearSAS/claude-craft. Cqrs is an agent skill from TheBeardedBearSAS/claude-craft. CQRS - Command Query Responsibility Segregation.

When should I use Cqrs?

Cqrs fits situations like: implementing DDD patterns; separating read/write models; building scalable architectures with heterogeneous performance requirements.

How do I install Cqrs in Claude Code?

Run `npx skills add TheBeardedBearSAS/claude-craft --skill cqrs -a claude-code`. Or copy the skill folder (.claude/skills/cqrs in TheBeardedBearSAS/claude-craft) into .claude/skills/cqrs in your project. Claude Code loads it when a task matches its description.

How do I install Cqrs in Codex?

Run `npx skills add TheBeardedBearSAS/claude-craft --skill cqrs -a codex`. Or copy the skill folder (.claude/skills/cqrs in TheBeardedBearSAS/claude-craft) into .agents/skills/cqrs in your project. Codex loads it when a task matches its description.

Can I use Cqrs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TheBeardedBearSAS/claude-craft --skill cqrs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cqrs, .gemini/skills/cqrs, .github/skills/cqrs and .opencode/skills/cqrs in your project.

What does Cqrs need to run?

SKILL.md names no scripts, command-line tools or credentials: Cqrs is instructions for the agent only.

Does Cqrs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cqrs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cqrs use?

Cqrs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cqrs use?

About 833 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cqrs?

Skills that share tags, products or a category with Cqrs: Stripe Projects (fossasia/eventyay, 1.7k stars), MQTTX CLI (emqx/MQTTX, 5.1k stars), AWS Serverless Eda (zxkane/aws-skills, 367 stars) and Windmill Trigger Type Checklist (windmill-labs/windmill, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cqrs?

TheBeardedBearSAS (a GitHub organization) maintains it in TheBeardedBearSAS/claude-craft, which has 107 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 14, 2026.

Source: TheBeardedBearSAS/claude-craft on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.