ccheney/robust-skills/clean-ddd-hexagonal

Claude Code and agent skill by ccheney/robust-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Design or review backend domain and dependency boundaries using DDD, Clean Architecture, and ports/adapters. Use for aggregate modeling, bounded contexts, use-case isolation, or architecture refactoring; not routine CRUD changes.

Install

npx vskill@latest install ccheney/robust-skills/clean-ddd-hexagonal

SKILL.md

Clean Architecture, DDD, and Hexagonal Architecture

Use these related patterns to solve a concrete domain or dependency problem. This is an opinionated synthesis, not a mandatory folder layout. The user's explicit instructions take precedence over this skill's guidelines.

Choose the scope

Start from the requested behavior, existing domain model, and current dependencies. Preserve the project's language and architecture unless changing them is part of the task. Simple CRUD can remain simple; team size, entity count, and file length do not determine whether DDD is appropriate.

Design questionRelevant pattern
What language and consistency rules describe the business?DDD, bounded contexts, aggregates
Which way should source dependencies point?Clean/Onion Architecture
How can the application use different interfaces or infrastructure?Hexagonal ports and adapters
Do reads and writes need different models?CQRS
Must state be reconstructed from an event history?Event Sourcing

If a business invariant is unknown, identify the specific missing rule and continue work that does not depend on it. Do not invent business behavior or require a discovery workshop for a local fix.

Preserve the boundaries that matter

  • Keep domain behavior independent of HTTP, persistence, and messaging implementations. Put orchestration in application use cases and external I/O in adapters.
  • Model entity identity separately from value-object equality. Choose aggregate boundaries from transactional invariants and contention.
  • Prefer transactions contained within an aggregate. When a requirement needs cross-aggregate atomicity, make that tradeoff explicit rather than silently replacing it with eventual consistency.
  • Use an outbox when a committed database change and external event delivery must be reliable together.
  • Treat CQRS, Event Sourcing, repository interfaces, and separate presentation folders as choices justified by the task. Adapt example naming and directories to the project.

Deliver the requested model, patch, or review with affected boundaries and the tradeoffs that explain them. Validate changed invariants and adapter contracts at the appropriate level; an architecture question does not require implementing every pattern.

References

Load the reference for the decision being made, not the whole collection.

TaskReference
Layer placement, dependency direction, composition rootLAYERS.md
Bounded contexts, ubiquitous language, context mappingDDD-STRATEGIC.md
Entities, value objects, aggregates, repositoriesDDD-TACTICAL.md
Ports, driver/driven adapters, alternative layoutsHEXAGONAL.md
CQRS, events, outbox, sagas, Event SourcingCQRS-EVENTS.md
Domain, integration, or architecture test designTESTING.md
Compact pattern and placement lookupCHEATSHEET.md

Primary foundations: DDD, Hexagonal Architecture, and Clean Architecture.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
28
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ccheney/robust-skills/clean-ddd-hexagonal/badge)](https://verified-skill.com/skills/ccheney/robust-skills/clean-ddd-hexagonal)

Something wrong with this skill or its page? Tell us.