Extract pure domain models
vibe-domain-extractorskillsetup L2★3
richfrem/agent-plugins-skills ↗What it does
Extract pure domain logic from rapid prototype code
Best for
Salvaging high-value business logic from a vibe-coded prototype before architectural reengineering.
Inputs
- · Rapid prototype codebase (Express, Sequelize, React, etc.)
- · DISCOVERY_REPORT.md identifying business rules and tech debt
Outputs
- · domain/entities/, domain/values/, domain/rules/, domain/exceptions/ structure
- · Pure business models with Port abstractions for side effects
- · domain-purity-auditor certification report
- · Pure domain unit tests (zero mocks, zero database, instant)
Requires
- · domain-purity-auditor agent (scans for framework/IO leakages)
- · File system write for domain/ folder creation
Preconditions
- · Prototype codebase analyzed with explicit Preserve vs Replace classification
- · Business rules and calculations identified and isolated
- · Project structure allows domain/ folder creation
Failure modes
- · Framework dependency leaked into domain/: purity auditor flags, refactor to Port interface
- · Direct database client in domain/: violates purity, replace with IRepository port
- · Non-deterministic logic (timestamps, random): move to adapter layer
Trust signals
- · Explicit Preserve vs Replace classification prevents throwing away value
- · Port abstractions decouple business rules from infrastructure
- · domain-purity-auditor confirms zero framework/IO dependencies
- · Pure unit tests validate logic deterministically