Agent skill

Cqrs And Handlers

by dev-toolings in dev-toolings/superpowers-symfony

Implement CQRS in Symfony with separate Command and Query buses/handlers using the Messenger component

MITAuto-check passedBackend & APIs

Install Cqrs And Handlers

skills CLI
$ npx skills add dev-toolings/superpowers-symfony --skill cqrs-and-handlers -a claude-code

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

GitHub CLI
$ gh skill install dev-toolings/superpowers-symfony cqrs-and-handlers --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/dev-toolings/superpowers-symfony.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/cqrs-and-handlers .claude/skills/cqrs-and-handlers && 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-and-handlers
GitHub stars
223
Token cost
~413 tokens
SKILL.md length
207 words
Files
2
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

Implement CQRS in Symfony with separate Command and Query buses/handlers using the Messenger component

  • Works in 5 steps: Name the use case: a command changes… → Write the message as a readonly class… → Configure separate command and query… → …
  • Tasks that involve Event-driven systems
  • SKILL.md covers Use when, Default workflow, Guardrails and Progressive disclosure, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cqrs And Handlers is an agent skill from dev-toolings/superpowers-symfony. Implement CQRS in Symfony with separate Command and Query buses/handlers using the Messenger component

Its SKILL.md is about 410 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. It works with Symfony. The repository describes itself as: Claude Code plugin for Symfony 7.4 LTS & 8.x — 44 skills, 7 AI subagents & 13 commands for API Platform v4, Doctrine ORM 3, TDD (Pest/PHPUnit), Messenger, security & DDD. The licence is MIT.

When your agent uses it

  • Tasks that involve Event-driven systems

Example prompts

  • “/cqrs-and-handlers”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Name the use case: a command changes state, a query returns data.
  2. Write the message as a readonly class and exactly one handler for it.
  3. Configure separate command and query buses; give the command bus the validation and doctrine_transaction middleware.
  4. Inject the buses behind small interfaces, or the native buses with #[Target].
  5. Dispatch from a thin controller and return the query result or the new id.

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep

    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 And Handlers loads about 413 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 207 words of instructions outside code blocks.

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

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 dev-toolings/superpowers-symfony at commit 459bcd0, republished under its MIT licence (© dev-toolings). 207 words, ~413 tokens.

Download SKILL.mdSave it as .claude/skills/cqrs-and-handlers/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cqrs-and-handlers
description
Implement CQRS in Symfony with separate Command and Query buses/handlers using the Messenger component
allowed-tools
Read, Glob, Grep
capabilities
read, search
tags
architecture, messenger

Cqrs And Handlers (Symfony)

Use when

  • Separating writes from reads with distinct command and query buses.
  • A service both changes state and returns data for display.
  • Adding a use case as a command or a query with its own handler.

Default workflow

  1. Name the use case: a command changes state, a query returns data.
  2. Write the message as a readonly class and exactly one handler for it.
  3. Configure separate command and query buses; give the command bus the validation and doctrine_transaction middleware.
  4. Inject the buses behind small interfaces, or the native buses with #[Target].
  5. Dispatch from a thin controller and return the query result or the new id.

Guardrails

  • Commands return nothing, or at most the id they created.
  • Queries have no side effects, so they can be cached and retried.
  • One handler per message; no handler dispatches back onto the bus it serves.
  • Read models for complex queries are optional: add them when a query outgrows the entities.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Commands, queries and their handlers.
  • The bus configuration and its middleware.
  • Handler tests, and a functional test through the controller.

References

  • reference.md

© dev-toolings, 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 content/skills/cqrs-and-handlers of dev-toolings/superpowers-symfony.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 459bcd0

Compare with similar skills

Cqrs And Handlers 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 And Handlers compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cqrs And Handlers this skilldev-toolings/superpowers-symfony223—~413Automated 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 yesterday
    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 2 days ago
    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.

    994 GitHub stars~1.5k tokensUpdated 15 days ago
    Backend & APIsAuto-check passed

More from dev-toolings/superpowers-symfony

All 44 skills in this repo
  • Symfony Scheduler

    dev-toolings/superpowers-symfony

    Schedule recurring tasks with the Symfony Scheduler component (native since 7.x); define schedules, triggers, and integrate with Messenger

    223 GitHub stars~526 tokensUpdated 5 days ago
    Auto-check: notes
  • API Platform Dto Resources

    dev-toolings/superpowers-symfony

    Map entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper ([Map], stateOptions) for decoupled input/output contracts

    223 GitHub stars~593 tokensUpdated 5 days ago
    Auto-check: notes
  • API Platform Filters

    dev-toolings/superpowers-symfony

    Implement API Platform filters - Parameters API (QueryParameter, v5/4.4/4.3) and the [ApiFilter] attribute deprecated since 4.4 - for search, date, range, boolean, and custom filtering

    223 GitHub stars~610 tokensUpdated 5 days ago
    Auto-check: notes
  • API Platform Resources

    dev-toolings/superpowers-symfony

    Configure API Platform resources (v5, 4.4, 4.3) with explicit operations, pagination, and typed OpenAPI for clean, versioned REST/GraphQL APIs

    223 GitHub stars~560 tokensUpdated 5 days ago
    Auto-check: notes
  • API Platform Security

    dev-toolings/superpowers-symfony

    Secure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control

    223 GitHub stars~551 tokensUpdated 5 days ago
    Auto-check: notes
  • API Platform Serialization

    dev-toolings/superpowers-symfony

    Control API Platform serialization with groups, [Context], IRI links (readableLink/writableLink), and custom context builders

    223 GitHub stars~519 tokensUpdated 5 days ago
    Auto-check: notes

Works with

Categories

Questions about Cqrs And Handlers

What does Cqrs And Handlers do?

Implement CQRS in Symfony with separate Command and Query buses/handlers using the Messenger component. Cqrs And Handlers is an agent skill from dev-toolings/superpowers-symfony.

When should I use Cqrs And Handlers?

Cqrs And Handlers fits situations like: tasks that involve Event-driven systems.

How do I install Cqrs And Handlers in Claude Code?

Run `npx skills add dev-toolings/superpowers-symfony --skill cqrs-and-handlers -a claude-code`. Or copy the skill folder (content/skills/cqrs-and-handlers in dev-toolings/superpowers-symfony) into .claude/skills/cqrs-and-handlers in your project. Claude Code loads it when a task matches its description.

How do I install Cqrs And Handlers in Codex?

Run `npx skills add dev-toolings/superpowers-symfony --skill cqrs-and-handlers -a codex`. Or copy the skill folder (content/skills/cqrs-and-handlers in dev-toolings/superpowers-symfony) into .agents/skills/cqrs-and-handlers in your project. Codex loads it when a task matches its description.

Can I use Cqrs And Handlers 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 dev-toolings/superpowers-symfony --skill cqrs-and-handlers -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-and-handlers, .gemini/skills/cqrs-and-handlers, .github/skills/cqrs-and-handlers and .opencode/skills/cqrs-and-handlers in your project.

What does Cqrs And Handlers need to run?

SKILL.md names no scripts, command-line tools or credentials: Cqrs And Handlers is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep.

Does Cqrs And Handlers 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 And Handlers 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 And Handlers use?

Cqrs And Handlers 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 And Handlers use?

About 413 tokens (SKILL.md is roughly 1.7k 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 And Handlers?

Skills that share tags, products or a category with Cqrs And Handlers: 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 And Handlers?

dev-toolings (a GitHub organization) maintains it in dev-toolings/superpowers-symfony, which has 223 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 5, 2026.

Source: dev-toolings/superpowers-symfony on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.