V3 Core Implementation

Implements DDD domains, clean architecture, and dependency injection for TypeScript core modules.

Updated May 11, 2026
One-click install
npx skills add https://github.com/Turgunoff/mebellar_app --skill v3-core-implementation-turgunoff
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: V3 Core Implementation
Source: https://github.com/Turgunoff/mebellar_app/tree/main/.agents/skills/v3-core-implementation
Command: npx skills add https://github.com/Turgunoff/mebellar_app --skill v3-core-implementation-turgunoff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires inversify.

What problem does it solve? Building a modular TypeScript codebase without clear architectural boundaries leads to tangled dependencies, untestable business logic, and fragile domain models. This Skill provides a complete blueprint for implementing core modules using Domain-Driven Design, clean architecture, and dependency injection with comprehensive test coverage. ## Core Features & Use Cases - DDD Domain Modeling: Provides base classes for entities, value objects, and aggregate roots with domain event support, plus a full task-management bounded context example. - Clean Architecture Layers: Defines repository interfaces with SQLite implementations, application use cases with command handling, and an Inversify-based dependency injection container. - Testing & Quality Gates: Includes unit and integration test patterns, strict TypeScript configuration, and measurable success metrics like >90% domain test coverage. - Use Case: When bootstrapping the core of an agent orchestration system, use this Skill to scaffold the task, session, and health domains with entities, services, repositories, and event-driven use cases. ## Quick Start Ask the AI to implement the core domains for Codex-flow v3 with DDD patterns, dependency injection, and comprehensive tests using this Skill.

Frequently Asked Questions about V3 Core Implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement DDD entities and value objects in TypeScript?▼

Create abstract base classes for Entity, ValueObject, and AggregateRoot that encapsulate identity, equality comparison, and domain event collection. Concrete domains like task management then extend these bases with factory methods and business rules.

How to structure a clean architecture TypeScript project?▼

Organize code into domains with entities, value objects, services, and repositories, plus a shared kernel and an application layer for use cases. Use path aliases like @core and @domains in tsconfig to enforce clean import boundaries.

What dependency injection library works with TypeScript decorators?▼

Inversify works with TypeScript decorators when experimentalDecorators and emitDecoratorMetadata are enabled in tsconfig. Bind interfaces to implementations in a container using symbols, then resolve use cases and repositories through the container.

Does this DDD approach support domain events?▼

Yes, aggregate roots collect domain events through addDomainEvent, and use cases publish them via a DomainEventBus after persistence. Events are marked committed once published to prevent duplicate dispatch.

What are the limitations of in-memory event buses?▼

The InMemoryDomainEventBus does not persist events, so events are lost on process restart and cannot span multiple services. For distributed systems, replace it with a durable message broker behind the same interface.