Specify a webhook-driven task for OpenClaw
Describe event inputs, validation, deduplication, and intended actions before integration work.
5,283,260 AI resources indexedWorking toward the world’s largest AI resource index.
Plan and route Domain-Driven Design work from strategic modeling to tactical implementation and evented architecture patterns.
--- name: domain-driven-design-4982296e364f description: "Plan and route Domain-Driven Design work from strategic modeling to tactical implementation and evented architecture patterns." risk: safe source: self tags: "[ddd, domain, bounded-context, architecture]" date_added: "2026-02-27" --- # Domain-Driven Design ## Use this skill when - You need to model a complex business domain with explicit boundaries. - You want to decide whether full DDD is worth the added complexity. - You need to connect strategic design decisions to implementation patterns. - You are planning CQRS, event sourcing, sagas, or projections from domain needs. ## Do not use this skill when - The problem is simple CRUD with low business complexity. - You only need localized bug fixes. - There is no access to domain knowledge and no proxy product expert. ## Instructions 1. Run a viability check before committing to full DDD. 2. Produce strategic artifacts first: subdomains, bounded contexts, language glossary. 3. Route to specialized skills based on current task. 4. Define success criteria and evidence for each stage. ### Viability check Use full DDD only when at least two of these are true: - Business rules are complex or fast-changing. - Multiple teams are causing model collisions. - Integration contracts are unstable. - Auditability and explicit invariants are critical. ### Routing map - Strategic model and boundaries: `@ddd-strategic-design` - Cross-context integrations and translation: `@ddd-context-mapping` - Tactical code modeling: `@ddd-tactical-patterns` - Read/write separation: `@cqrs-implementation` - Event history as source of truth: `@event-sourcing-architect` and `@event-store-design` - Long-running workflows: `@saga-orchestration` - Read models: `@projection-patterns` - Decision log: `@architecture-decision-records` If templates are needed, open `references/ddd-deliverables.md`. ## Output requirements Always return: - Scope and assumptions - Current stage (strategic, tactical, or evented) - Explicit artifacts produced - Open risks and next step recommendation ## Examples ```text Use @domain-driven-design to assess if this billing platform should adopt full DDD. Then route to the right next skill and list artifacts we must produce this week. ``` ## Limitations - This skill does not replace direct workshops with domain experts. - It does not provide framework-specific code generation. - It should not be used as a justification to over-engineer simple systems. --- <!-- AGI-INTEGRATION-START --> ## AGI Framework Integration > **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)** > Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills) ### Memory-First Protocol Retrieve prior Architecture Decision Records (ADRs), trade-off analyses, and system design rationale. Critical for maintaining consistency across long-running projects. ```bash # Check for prior architecture/design context before starting python3 execution/memory_manager.py auto --query "architecture decisions and trade-off analysis for Domain Driven Design" ``` ### Storing Results After completing work, store architecture/design decisions for future sessions: ```bash python3 execution/memory_manager.py store \ --content "Architecture: event-driven microservices with CQRS, Pulsar for messaging, Qdrant for semantic search" \ --type decision --project <project> \ --tags domain-driven-design architecture ``` ### Multi-Agent Collaboration Broadcast architecture decisions to ALL agents so implementation stays aligned with the chosen patterns. ```bash python3 execution/cross_agent_context.py store \ --agent "<your-agent>" \ --action "Completed architecture review — ADR documented, trade-offs analyzed, team aligned" \ --project <project> ``` ### Control Tower Coordination Register architecture tasks in the Control Tower so all agents across machines know the current system design and constraints. <!-- AGI-INTEGRATION-END -->--- name: domain-driven-design-4982296e364f description: "Plan and route Domain-Driven Design work from strategic modeling to tactical implementation and evented architecture patterns." risk: safe source: self tags: "[ddd, domain, bounded-context, architecture]" date_added: "2026-02-27" --- # Domain-Driven Design ## Use this skill when - You need to model a complex business domain with explicit boundaries. - You want to decide whether full DDD is worth the added complexity. - You need to connect strategic design decisions to implementation patterns. - You are planning CQRS, event sourcing, sagas, or projections from domain needs. ## Do not use this skill when - The problem is simple CRUD with low business complexity. - You only need localized bug fixes. - There is no access to domain knowledge and no proxy product expert. ## Instructions 1. Run a viability check before committing to full DDD. 2. Produce strategic artifacts first: subdomains, bounded contexts, language glossary. 3. Route to specialized skills based on current task. 4. Define success criteria and evidence for each stage. ### Viability check Use full DDD only when at least two of these are true: - Business rules are complex or fast-changing. - Multiple teams are causing model collisions. - Integration contracts are unstable. - Auditability and explicit invariants are critical. ### Routing map - Strategic model and boundaries: `@ddd-strategic-design` - Cross-context integrations and translation: `@ddd-context-mapping` - Tactical code modeling: `@ddd-tactical-patterns` - Read/write separation: `@cqrs-implementation` - Event history as source of truth: `@event-sourcing-architect` and `@event-store-design` - Long-running workflows: `@saga-orchestration` - Read models: `@projection-patterns` - Decision log: `@architecture-decision-records` If templates are needed, open `references/ddd-deliverables.md`. ## Output requirements Always return: - Scope and assumptions - Current stage (strategic, tactical, or evented) - Explicit artifacts produced - Open risks and next step recommendation ## Examples ```text Use @domain-driven-design to assess if this billing platform should adopt full DDD. Then route to the right next skill and list artifacts we must produce this week. ``` ## Limitations - This skill does not replace direct workshops with domain experts. - It does not provide framework-specific code generation. - It should not be used as a justification to over-engineer simple systems. --- <!-- AGI-INTEGRATION-START --> ## AGI Framework Integration > **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)** > Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills) ### Memory-First Protocol Retrieve prior Architecture Decision Records (ADRs), trade-off analyses, and system design rationale. Critical for maintaining consistency across long-running projects. ```bash # Check for prior architecture/design context before starting python3 execution/memory_manager.py auto --query "architecture decisions and trade-off analysis for Domain Driven Design" ``` ### Storing Results After completing work, store architecture/design decisions for future sessions: ```bash python3 execution/memory_manager.py store \ --content "Architecture: event-driven microservices with CQRS, Pulsar for messaging, Qdrant for semantic search" \ --type decision --project <project> \ --tags domain-driven-design architecture ``` ### Multi-Agent Collaboration Broadcast architecture decisions to ALL agents so implementation stays aligned with the chosen patterns. ```bash python3 execution/cross_agent_context.py store \ --agent "<your-agent>" \ --action "Completed architecture review — ADR documented, trade-offs analyzed, team aligned" \ --project <project> ``` ### Control Tower Coordination Register architecture tasks in the Control Tower so all agents across machines know the current system design and constraints. <!-- AGI-INTEGRATION-END -->
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.