a5c-ai/babysitter / library/specializations/code-migration-modernization/skills/domain-model-extractor
domain-model-extractor
VerifiedExtract domain models from monolithic codebases using DDD principles for microservices decomposition
README.md
View on GitHub# Domain Model Extractor Skill
## Overview
The Domain Model Extractor skill identifies domain boundaries in monolithic codebases. It applies DDD principles to extract bounded contexts and aggregates for microservices decomposition.
## Quick Start
### Prerequisites
- Access to codebase
- Domain knowledge
- DDD understanding
### Basic Usage
1. **Analyze code structure**
- Review module boundaries
- Identify domain areas
- Map dependencies
2. **Extract domain model**
- Identify aggregates
- Map entities
- Find domain events
3. **Create context map**
- Define bounded contexts
- Map relationships
- Document integration patterns
## Features
### DDD Patterns Identified
| Pattern | Description | Output |
|---------|-------------|--------|
| Bounded Context | Domain boundary | Context map |
| Aggregate | Consistency boundary | Aggregate list |
| Entity | Domain object | Entity catalog |
| Value Object | Immutable value | VO catalog |
| Domain Event | State change | Event catalog |
### Context Relationships
- Shared Kernel
- Customer/Supplier
- Conformist
- Anti-Corruption Layer
- Open Host Service
- Published Language
## Configuration
```json
{
"analysis": {
"targetPaths": ["./src"],
"includeHistory": true,
"teamMappings": "./teams.json"
},
"output": {
"format": "markdown",
"diagrams": true,
"glossary": true
},
"ddd": {
"identifyAggregates": true,
"findEvents": true,
"extractLanguage": true
}
}
```
## Related Documentation
- [SKILL.md](./SKILL.md) - Full skill specification
- [Domain-Driven Design](https://domainlanguage.com/ddd/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |