/ronce-racine:ddd-backend-implementationfrom Ronce Racine
Guides implementing backend features in DDD layers (domain, application, infrastructure, handler) with CQRS. Use after domain modeling, during coding of aggregates, invariants, ports, and commands/queries.
Ships in Ronce Racine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
If the current repo has a specific implementation skill, it wins - it knows the stack, the paths and the project commands.
domain-modeling-design instead if: aggregates, invariants and placement are not decided yet (upstream of this skill - its output is this skill's input)superpowers:test-driven-development as a complement: this skill says where the code goes and in what order; TDD says how to write each layer (red test → green)The implementation respects two non-negotiable constraints: the order of the layers (from the core outward) and the direction of dependencies (everything points toward the domain, never the reverse). The domain knows nothing of the database, the network, or the web framework. Business logic lives in the aggregates; the outer layers only adapt (parse, persist, serialize). Short-circuiting the order or inverting a dependency produces an anemic model with logic scattered around.
package.json / Cargo.toml / pom.xml / Makefile / CI config for fmt, lint, test, builddomain-modeling-designImplement in this order, never the reverse, never a short-circuit. Test each layer before moving to the next.
- [ ] Domain: aggregate + value objects + invariants, pure tests green
- [ ] Application: command/query + ports, handler with no business logic
- [ ] Infrastructure: port adapters, parameterized queries
- [ ] Handler: parse → CQRS → serialize, auth at the edge
- [ ] Dependency direction verified: everything points toward the domain
- [ ] Integration tests happy path + invariant rejection
- [ ] fmt / lint / typecheck / build of the scope green
| Excuse | Reality |
|---|---|
| "Just a small validation in the handler, it's faster" | Business logic outside the domain = an unguaranteed invariant, duplicated at the next caller. It lives in the aggregate. |
| "I put the rule in the repo/infra, I'm already there" | Infrastructure is a replaceable adapter; a rule living there disappears if the tech changes and is untestable without I/O. |
| "The domain just imports the DB client to go faster" | Domain → infra dependency: the core becomes untestable and coupled to the framework. The domain depends on nothing external. |
| "I create the structures, the logic will follow" | Anemic model: bags of getters/setters, logic scattered across services. The aggregate carries its rules. |
| "I code the handler first, I'll work up toward the domain" | The reverse order makes you follow the shape of the API or the tables, not the domain. Domain → application → infra → handler. |
| "Command and query are the same path, I'll share it" | Reads and writes have different constraints; merging them makes you mutate on a read path and complicates both. |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub charierefiedler/ronce-racine --plugin ronce-racine37 skills in this plugin
/adversarial-feature-challengeUse when a feature is "done" and needs adversarial stress-testing before shipping - "is it really ready", "est-ce vraiment prêt", "find the bugs", "trouve les bugs", "red team", before closing a ticket whose only validation is the golden path passing./api-contract-versioningUse when modifying an API endpoint, schema or contract consumed elsewhere - renaming/removing/restructuring a request or response field, pagination or envelope change, "field X must become", "le champ X doit devenir", introducing a breaking change, versioning an API, or deprecating a field/route. Covers REST, GraphQL and gRPC alike./audit-architectureOther plugins' skills for the same job