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-domain

SKILL.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

IssueDesign Question
Data InconsistencyAre public fields allowing invalid states?
Object SlicingAre you passing polymorphic Entities by Value?
Header HellAre you leaking implementation details? (Use Pimpl).

Thinking Prompt

  1. Is it copyable?
  • Yes? → Value Type (Rule of Zero, defaults).
  • No? → Entity (Delete copy ctor, enable move).
  1. Does it have invariants?
  • Yes? → class with private data + public methods.
  • No? → struct (POD).
  1. 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) holds Name (Value) and Address (Value).

Quick Reference

PatternC++ Implementation
Value Objectstruct + operator<=>.
Entityclass + Deleted Copy + ID field.
RepositoryPure Virtual Interface (virtual ... = 0).
AggregateParent 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/13eholder/modern-cpp-skills/m09-domain/badge)](https://verified-skill.com/skills/13eholder/modern-cpp-skills/m09-domain)

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