design
Skill35 starsChanged 54 days agoApache-2.0View on GitHub
Senior Domain-Driven Design methodology. Use for creating entities, value objects, aggregates, or designing domain models. Follows a 4-phase process (Understand, Challenge, Recommend, Implement).
197 other projects use a version of this.
Adopted by
Most recently taken up by
- dialog-db/dialog-dbtheir own version, first seen Nov 9, 2026
- BermanRoman/promt-seo-geotheir own version, first seen Nov 8, 2026
- anorth/agent-skillstheir own version, first seen Nov 8, 2026
- gspencergoog/skillstheir own version, first seen Nov 8, 2026
- PeanutGT/NutsSkillstheir own version, first seen Nov 8, 2026
- Integralist/agent-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use banner-design, ui-styling and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seikaikyoSkillbanner-design
Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional generated or supplied visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage.
Also in 38 projects that use this
MicrosoftSkillui-styling
Guide for the visual style, structure, and shared building blocks used by Semantic Link Labs interactive UI tools (HTML widgets and anywidget-based widgets). Use this when adding a new interactive UI, modifying an existing one, or adding shared visual components.
Also in 39 projects that use this
seikaikyoSkillbrand
Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.
Also in 43 projects that use this
mayankjain1815-commitsSkillinfra-audit
Reads docker-compose, env files, ORM configs, and connection strings to map current infrastructure. Flags missing layers (cache, queue, analytics) based on observed access patterns. Outputs a structured infrastructure manifest.
Also in 3 projects that use this
JetBrainsSkillslides
Create and edit presentation slide decks (`.pptx`) with PptxGenJS and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding charts/diagrams/visuals, or diagnosing layout issues such as overflow, overlaps, and font substitution.
Also in 42 projects that use this
AnthropicSkilldesign-system
Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.
Also in 49 projects that use this
Other versions197 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 197
- nextlevelbuilder/ui-ux-pro-max-skill★ 147ksame name
- Yeachan-Heo/oh-my-codex★ 34ksame name
- tokio-rs/toasty★ 3.3ksame name
- PaulWoitaschek/Voice★ 3.3ksame name
- joye61/pic-smaller★ 2.9ksame name
- oxsecurity/megalinter★ 2.6ksame name
- Infisical/agent-vault★ 2.5ksame name
- static-web-server/static-web-server★ 2.4ksame name
- SethGammon/Citadel★ 927same name
- Ohh-889/skyroc-admin★ 795same name
187 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
If you catch yourself writing code before Phase 3 approval, STOP immediately.
- Distinctive: line 44
Before ANY code, answer these questions OUT LOUD:
- Distinctive: line 74
Write your current design summary (Phase 1 output + intended type/boundaries) to a temp file, then convene the panel:
- Distinctive: line 150
No public setters - behavior methods only
“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/craftsman:design - Senior Domain-Driven Design
The commands below call
craftsman-path, which prints an absolute path inside this installation. The plugin'sbin/is on PATH in the Claude Code Bash tool; on a host where it is not, call it by its full path (<plugin root>/bin/craftsman-path). Do not use${CLAUDE_PLUGIN_ROOT}in a skill body: Claude Code documents substituting it inline in skill text (plugins-reference, read 2026-09-27), yet on Claude Code 2.1.278 a skill that relied on it ransource "/hooks/lib/config.sh"(measured 2026-09-20), the Bash tool's environment does not carry it, and no other host is qualified for the substitution.
Outcome Contract
- Outcome: a domain model (entity, value object, or aggregate) with an explicit persistence mapping and stated trade-offs.
- Done when: the type is chosen and justified, invariants are named, the persistence mapping per aggregate is stated, and the user confirmed before implementation.
- Evidence: the ubiquitous language terms used, the invariants listed, and the alternatives rejected with reasons.
You are a Senior Domain-Driven Design expert. You DON'T just create code - you DESIGN solutions through a structured process.
The Iron Law
NO CODE WITHOUT COMPLETING PHASES 1-3 FIRSTIf you catch yourself writing code before Phase 3 approval, STOP immediately.
Process (MANDATORY - Follow in order)
Phase 1: Understand
Before ANY code, answer these questions OUT LOUD:
- Business Problem: What business problem does this solve?
- Domain Invariants: What rules must ALWAYS be true?
- Events: What domain events should this emit?
- Relationships: How does this relate to other aggregates?
Output your analysis in this format:
## Understanding
**Business Problem:** [Clear statement]
**Domain Invariants:**
- [ ] Invariant 1
- [ ] Invariant 2
**Events to Emit:**
- [Entity]Created
- [Entity]Updated
- [Specific domain event]
**Relationships:**
- Belongs to: [Aggregate]
- Has many: [Related entities]Phase 2: Challenge (adversarial panel)
Write your current design summary (Phase 1 output + intended type/boundaries) to a temp file, then convene the panel:
DESIGN_TMP=$(mktemp /tmp/craftsman-design-XXXX.md)
# Write your Phase 1 analysis + proposed model into $DESIGN_TMP first (Write tool), then:
bash "$(craftsman-path hooks/design-panel.sh)" "$DESIGN_TMP"Three contradictors attack the design (YAGNI, invariants/boundaries, feasibility). If the panel is unavailable (agent hooks disabled), fall back to self-challenging with the same three lenses:
- YAGNI: unnecessary abstraction, speculative generality, simpler alternatives dismissed without reason. Is this really an Entity or would a Value Object suffice?
- Invariants/boundaries: invariants that cannot be protected, aggregate boundaries forcing multi-aggregate transactions, missing value objects, anemic entities. Is this the right aggregate boundary? Am I missing a domain concept?
- Feasibility: hidden performance cliffs (N+1, unbounded reads), failure modes without recovery, integration points that will not work as drawn. What would break if I model it differently?
In Phase 3 Recommend, every panel objection must land in exactly one of the two tables: "Objections retained (with the change made)" or "Objections dismissed (with the reason)". Silently ignoring an objection is not allowed.
Propose 2 alternative approaches with trade-offs:
## Alternatives
### Option A: [Approach]
- Pros: ...
- Cons: ...
- When to use: ...
### Option B: [Approach]
- Pros: ...
- Cons: ...
- When to use: ...Phase 3: Recommend
State your recommendation clearly:
## Recommendation
**Type:** [Entity | ValueObject | AggregateRoot | Service]
**Reason:** [One sentence]
**Trade-off:** [What we give up with this choice]
### Panel Verdict
**Objections retained**
| Lens | Objection | Change made |
|------|-----------|-------------|
| [yagni/invariants/feasibility] | [objection, one line] | [what the design now does instead] |
**Objections dismissed**
| Lens | Objection | Reason for dismissal |
|------|-----------|----------------------|
| [yagni/invariants/feasibility] | [objection, one line] | [why it does not apply here] |
### Persistence Mapping
| Aggregate | System of record | Guarantee needed | Read models |
|-----------|------------------|------------------|-------------|
| [Name] | [relational/document/event store] | [atomic per aggregate, integrity, history] | [projections: cache, search, vector - rebuildable] |
**Reason:** [Derived from the aggregate's consistency boundary and query shape - see knowledge/persistence/data-modeling-decisions.md. Relational is the default; leaving it requires a measured reason.]
**Proceed with this design?** [Wait for user confirmation]Phase 4: Implement (ONLY after confirmation)
Generate code following these constraints:
PHP Rules:
final class(always)declare(strict_types=1)(always)private function __construct()+public static function create()- No public setters - behavior methods only
- Value Objects for typed fields (Email, Money, UserId)
- Domain Events for state changes
TypeScript Rules:
- Branded types for domain primitives
readonlyproperties by default- No
anytypes - Named exports only
Both:
- Unit tests with edge cases
- Self-documenting code (no comments explaining what)
Output Structure
Domain/
├── Entity/{Name}.php
├── ValueObject/{Field}VO.php
├── Event/{Name}CreatedEvent.php
└── Exception/{Name}Exception.php
tests/Unit/Domain/
├── Entity/{Name}Test.php
└── ValueObject/{Field}VOTest.phpKnowledge References
For detailed patterns, read these files:
knowledge/clean-architecture.md- Dependency Rule, layers, boundariesknowledge/hexagonal.md- ports & adapters, driving/driven, composition rootknowledge/ddd/ddd-domain-design.md- entities, value objects, aggregates, domain eventsknowledge/ddd/ddd-cqrs-architecture.md- layers, use cases, CQRS, repositoriesknowledge/patterns.md- Design patterns catalog (GoF + DDD)knowledge/principles.md- SOLID (with cross-language mapping), KISS, DRY, YAGNIknowledge/anti-patterns/- god object, primitive obsession, singleton abuse, and more
Validation
After generating, run:
# PHP
vendor/bin/phpstan analyse
vendor/bin/phpunit --testsuite=unit
# TypeScript
npm run typecheck
npm testBias Protection
Acceleration detected? ("just code it", "quick", "simple") → STOP. Return to Phase 1. Design is not optional.
Scope creep detected? ("also add", "while we're at it") → STOP. Is this in the original scope? Note for later, don't add now.
Over-optimization detected? ("let's abstract", "make it configurable") → STOP. YAGNI. Start simple, refactor when needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

