/waris-skill-library:warisskill-system-design-domain-modelingfrom waris-skill-library
Use when structuring a non-trivial backend feature or service — deciding how business logic relates to I/O (HTTP, database, external APIs), and how domain concepts are represented in code. Trigger when starting a new service/feature with real business logic, when domain logic is tangled with framework/transport code, or when a PR mixes DB queries directly into business rules. Companion to warisskill-system-design-decision-making (structural choice here rarely needs an ADR — it's the applied default, not a one-off decision) and warisskill-system-design-distributed-patterns (this skill is single-service domain structure; that one is cross-service).
Ships in waris-skill-library. 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.
None: SKILL.md is the whole skill.
Hexagonal architecture (ports and adapters) on any non-trivial feature — not gated behind "does a second implementation exist yet." Business logic never imports framework/transport/persistence code directly.
UserRepositoryPort, BillingGatewayPort) — model capabilities, not
technologies.This is a default for structure, not a one-off decision to weigh pros/cons on every feature — apply it the same way every time rather than deciding fresh per PR.
Use the parts of DDD that pay off immediately; skip the ceremony that doesn't:
Money value object instead of a raw float, a
validated Email type instead of a bare string, an entity with a clear
identity instead of an anonymous record.A typical feature: an inbound adapter (HTTP handler) converts a request into a use-case input → the use case (application layer) orchestrates domain logic using entities/value objects and calls outbound ports → outbound adapters (DB repository, external API client) implement those ports. Test the use case against fake/in-memory port implementations without spinning up real infrastructure.
warisskill-system-design-distributed-patterns for the additional
concerns (eventual consistency, sagas, service boundaries) that domain
modeling alone doesn't cover.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
129 skills in this plugin
/api-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend./browser-testing-with-devtoolsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured./npx claudepluginhub sodiqabdulwaris/waris-skill-library --plugin waris-skill-library