13eholder/modern-cpp-skills/m09-domain
Claude Code and agent skill by 13eholder/modern-cpp-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Mastering C++ Domain Modeling (DDD). Triggers: Entity, Value Object, Aggregate, Repository, Pimpl, Class Design, Invariant.
Install
npx vskill@latest install 13eholder/modern-cpp-skills/m09-domainSKILL.md
C++ Domain Modeling
Core Question
Identity or Value?
- Value Object: Defined by attributes (
Color,Money). Equality via comparison. Copyable. - Entity: Defined by Identity (
User,Socket). Equality via ID. Non-copyable (usually).
Error → Design Question
| Issue | Design Question | |
|---|---|---|
| Data Inconsistency | Are public fields allowing invalid states? | |
| Object Slicing | Are you passing polymorphic Entities by Value? | |
| Header Hell | Are you leaking implementation details? (Use Pimpl). |
Thinking Prompt
- Is it copyable?
- Yes? → Value Type (Rule of Zero, defaults).
- No? → Entity (Delete copy ctor, enable move).
- Does it have invariants?
- Yes? →
classwith private data + public methods. - No? →
struct(POD).
- Does it own others?
- Aggregate Root? → Owns children via
std::vector/unique_ptr.
Trace Up / Down
- Trace Down:
- Intent: "User has a Name and an Address."
- Code:
class User(Entity) holdsName(Value) andAddress(Value).
Quick Reference
| Pattern | C++ Implementation | |
|---|---|---|
| Value Object | struct + operator<=>. | |
| Entity | class + Deleted Copy + ID field. | |
| Repository | Pure Virtual Interface (virtual ... = 0). | |
| Aggregate | Parent class owning children. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingm09-domain/SKILL.md
Popularity
- Repository stars
- 12
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 8 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
[](https://verified-skill.com/skills/13eholder/modern-cpp-skills/m09-domain)