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.
npx skills add jeffsenso/prestashop-skills --skill create-cqrs-commandsgit clone --depth 1 https://github.com/jeffsenso/prestashop-skillsWrote 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.
[](https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-cqrs-commands)<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-cqrs-commands"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-cqrs-commands/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.
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-cqrs-commands"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-cqrs-commands.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00085 | $0.01353 |
| Opus 5.5 | $0.00034 | $0.00541 |
| Sonnet 5.5 | $0.00017 | $0.00271 |
| Haiku 4.5 | $0.00009 | $0.00135 |
Grade A, and why
create-cqrs-commands 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.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
create-cqrs-commands
This skill creates the entire domain layer for an entity. It covers the Core side only
(interfaces and data objects) — handler implementations live in implement-cqrs-handlers.
Read CQRS/CONTEXT.md for conventions (scalar inputs/VO getters, exception hierarchy, handler rules).
1. Identity Value Object
Create src/Core/Domain/{Domain}/ValueObject/{Domain}Id.php:
- Constructor takes
int $value, validates$value > 0, throws{Domain}Exceptionif not - Single getter:
getValue(): int - No Symfony/Doctrine dependencies — pure PHP
Reference: src/Core/Domain/Tax/ValueObject/TaxId.php (simple), src/Core/Domain/Carrier/ValueObject/CarrierId.php (complex domain)
2. Additional Value Objects (if needed)
For fields with non-trivial validation or domain meaning (not just string/int):
- Enum-like fields: class with constants +
fromInt()/fromString()factory - URL fields: validate format in constructor
- Constrained numbers: range checks in constructor
Not every field needs a VO — only those with invariants beyond primitive type checking.
For has-many relations, create typed collections implementing \Countable and \IteratorAggregate.
3. Exception Hierarchy
Create in src/Core/Domain/{Domain}/Exception/ following the hierarchy documented in CQRS/CONTEXT.md: base, not-found, per-action, and constraint classes.
Reference: src/Core/Domain/Tax/Exception/ (simple), src/Core/Domain/Carrier/Exception/ (many constraint codes)
4. Commands
All commands live in src/Core/Domain/{Domain}/Command/.
4.1 Add command
Add{Domain}Command.php:
- Constructor takes all required fields as scalar typed parameters
- Optional fields use nullable types with defaults
- Multilingual fields:
array $localizedValueskeyed by language ID - Validate primitives in constructor (non-empty strings, positive ints)
- Getters can return VOs built from the scalar inputs
- Sub-resource fields are NOT included — they get their own command (see 4.5)
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.
- 3mo ago First seen · 132 lines · 85 tokens per session scan A 54153729bf5b
create-cqrs-commands is a skill published in the GitHub repository jeffsenso/prestashop-skills (6 stars, last pushed 27d ago), licensed MIT. It adds 85 tokens to every session and 1,353 once invoked, about $0.0003 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-08-31.
create-cqrs-commands compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-cqrs-commandsjeffsenso/prestashop-skills | Skill | 6 | 27d ago | MIT | A | 85 | Claude Code, Codex |
| laravel-specialistJeffallan/claude-skills | Skill | 13k | today | MIT | A | 86 | Claude Code |
| php-proJeffallan/claude-skills | Skill | 13k | today | MIT | A | 107 | Claude Code |
| 123-java-design-patternsjabrena/plinth | Skill | 469 | yesterday | Apache-2.0 | A | 89 | Claude Code, Codex |
| 125-java-concurrencyjabrena/plinth | Skill | 469 | yesterday | Apache-2.0 | A | 133 | Claude Code, Codex |
| 302-frameworks-spring-boot-restjabrena/plinth | Skill | 469 | yesterday | Apache-2.0 | A | 177 | Claude Code, Codex |
| 300-frameworks-spring-boot-create-projectjabrena/plinth | Skill | 469 | yesterday | Apache-2.0 | A | 90 | Claude Code, Codex |