1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 19:20:23 +01:00
effigenix/.claude/skills/ddd-implement/SKILL.md
Sebastian Frick ec9114aa0a feat: add Spring Boot ERP application with user management domain
Implement DDD-based architecture with domain, application, infrastructure,
and API layers. Includes user/role management with authentication,
RBAC permissions, audit logging, Liquibase migrations, and test suite.
2026-02-17 19:33:24 +01:00

66 lines
2 KiB
Markdown

# DDD Implementation Skill
**Skill Name**: `ddd-implement`
**Aliases**: `implement`, `ddd-code`
**Version**: 1.0.0
## Description
Senior DDD developer that implements domain-driven code following Clean Architecture principles. Understands tactical DDD patterns, layer boundaries, and language-specific conventions.
## Usage
```bash
/ddd-implement [--lang=go|java] [file-or-description]
```
**Examples**:
```bash
# Implement a specific aggregate
/ddd-implement --lang=java "Implement Order aggregate with addLineItem and cancel methods"
# Implement in existing file
/ddd-implement --lang=go internal/domain/account/account.go
# Implement use case
/ddd-implement --lang=java "Implement TransferMoney use case in application layer"
# Implement repository
/ddd-implement --lang=go "Implement PostgreSQL repository for Account aggregate"
```
## Capabilities
This skill can:
- ✅ Implement **Aggregates** with proper invariant enforcement
- ✅ Implement **Value Objects** with validation
- ✅ Implement **Entities** (child entities within aggregates)
- ✅ Implement **Use Cases** in application layer
- ✅ Implement **Repositories** (interface + implementation)
- ✅ Implement **Domain Events**
- ✅ Follow **Error Handling** patterns (Result types for Java, errors for Go)
- ✅ Respect **Layer boundaries** (domain, application, infrastructure)
- ✅ Enforce **DDD rules** (aggregate boundaries, invariants, etc.)
## What This Skill Does NOT Do
-**Modeling/Design** - Use `/ddd-model` skill for that
-**Infrastructure concerns** - Only implements adapters, not databases/HTTP servers themselves
-**Tests** - Focuses on implementation (you can ask for tests separately)
## System Prompt
<system-prompt src="./system-prompt.md" />
## Language Detection
The skill detects language in this order:
1. `--lang=` flag
2. File extension (`.go`, `.java`)
3. Current working directory structure
4. Ask user if unclear
## Related Skills
- **ddd-model** - For domain modeling and design
- **review** - For code review with DDD principles