Skip to content

a5c-ai/babysitter / library/specializations/code-migration-modernization/skills/domain-model-extractor

domain-model-extractor

Verified

Extract domain models from monolithic codebases using DDD principles for microservices decomposition

FileKindSize
README.mdmarkdown1.6 KB
SKILL.mdskill md2.8 KB
# 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/)
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 implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall