AGENT SKILL

strategic-ddd

When splitting or connecting domain models, classify each subdomain as core, supporting, or generic and record the context map the code already has, with one ubiquitous language per bounded context and translation at the boundary. Use when the same word means two things, when wiring two models, or when placing modules and schemas. Use architecture-patterns for tactical DDD inside one context and architecture to choose monolith versus services.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
strategic-ddd
license
MIT
description
When splitting or connecting domain models, classify each subdomain as core, supporting, or generic and record the context map the code already has, with one ubiquitous language per bounded context and translation at the boundary. Use when the same word means two things, when wiring two models, or when placing modules and schemas. Use architecture-patterns for tactical DDD inside one context and architecture to choose monolith versus services.

02 资源文件 3

03 SKILL.md 正文

Strategic DDD

Classify the subdomain. Record the contexts the code already has. One language inside each context. Translate at the boundary. Name the relationship before you wire it.

When to Use

Use when you split a model, connect two models, or decide where a module or a schema lives.

Skip a change that stays inside one model and does not add a term or a dependency. Skip a layering choice that does not cross contexts.

Other skills keep their jobs:

  • architecture-patterns owns tactical DDD and layering inside one context.
  • architecture owns monolith versus services, and whether a domain model is worth its cost.
  • designing-apis owns the wire contract after the relationship is named.
  • grasp-knowledge owns which type inside one model gets a behavior.

Before the edit

  1. Read references/rules.md.
  2. List the models this change touches. Quote the terms each model already uses.
  3. Classify each subdomain as core, supporting, or generic. Do that before you deepen a model.
  4. Record the context map from the modules, schemas, and owners that exist. Label a wished split as not built.

While editing

  • Keep one meaning for each term inside the context you edit. Reject a second meaning.
  • Treat the same word in another context as a different concept. Translate it at the boundary.
  • Do not import another context's domain types. Cross with a published language, an event, or an anti-corruption translation.
  • Name the relationship before you add the call, the event, or the shared type.
  • Share a kernel only when it is small, explicit, and jointly owned. Otherwise duplicate the concept.
  • Put modules, packages, and schemas on bounded contexts. Do not add a technical layer that mixes two models.

Stop

Stop when each boundary you touched has one language on each side, a named relationship, and a map that matches the code. Do not redraw the rest of the system.

Report

For each area you touched: subdomain class, contexts that exist, relationship named, what is translated, and what you refused to share. Mark any split you did not find in the code.

Limitations

This skill does not design entities, aggregates, or repositories. It does not choose a deployable topology. It does not invent a target map. Cite references/sources.md. Conflict winners live only in that file.

04 同仓库更多 Skills

w0rxbend
w0rxbend/dot-agents

wiki-builder

Create and maintain a local Markdown research wiki (sources with provenance, compiled concept/source pages, index, maintenance log) driven by a per-wiki config. Use when the user wants to start a wiki or knowledge base, ingest sources into one, or query and update it; use wiki-page-writer for a single code deep-dive page.

★ 0
w0rxbend
w0rxbend/dot-agents

refactoring-guru

Diagnose a named code smell and apply the smallest behavior-preserving refactoring, with verification before and after and an explicit stop condition. Use for structural refactors (extract, move, consolidate, change ownership), not for feature or bug work; for readability cleanup of recent changes use code-simplification.

★ 0
w0rxbend
w0rxbend/dot-agents

legacy-seams

When changing untested legacy code, pin the observed results with characterization tests and open the smallest seam that substitutes only the blocking dependency, separate from any later logic change. Use when a clock, random source, I/O, global, or hidden constructor blocks a test or a safe edit. Use test-driven-development for a new behavior or a bug, refactoring-guru for one named structural refactor after the seam exists, and code-refactoring-tech-debt to choose which legacy to replace.

★ 0
w0rxbend
w0rxbend/dot-agents

idea-refine

Refine a raw idea into a one-page brief (problem statement, recommended direction, assumptions to validate, MVP scope, not-doing list) through divergent then convergent thinking. Use when an idea is still vague or you want options and a stress test before committing; use interview-me when the goal itself is unclear and spec-driven-development once the direction is chosen.

★ 0
w0rxbend
w0rxbend/dot-agents

code-review-and-quality

Review rubric and approval standard for any change before merge, including code written by you, another agent, or a human: five axes (correctness, readability, architecture, security, performance), change sizing, structural remedies, severity labels, and feedback technique. Use to judge whether a change is fit to merge; use code-review to run a PR or diff review end to end.

★ 0
w0rxbend
w0rxbend/dot-agents

code-perfection

Smell and style gate for code you write or change. Bans known code smells (long method, large class, primitive obsession, long parameter list, data clumps, duplicate code, dead code, feature envy, shotgun surgery, flag arguments, message chains) and enforces behavior-preserving structure. On Scala files, enforces worxbend style. Use while implementing, reviewing a diff for smells, or when a smell or style violation is suspected. Routine construction stays with code-complete. SOLID and DRY stay with clean-code-guard. One named structural refactor stays with refactoring-guru.

★ 0