Skip to content

Which model do I need?

Start with a question that matters to your project. For business rules, begin with DDD; for a user journey, begin with USM; for an existing codebase, inspect a Topic Map before deciding what to author. Add other models when they answer another useful question.

Every implemented-model guide below is a compound menu with three pages: Short info (summary, when to use it, common mistakes, history, alternatives and references), a Tutorial (prerequisites, the model walkthrough, authoring steps and CLI usage) and Samples (the worked example and four practice exercise briefs). Read Learning with models for the available tutorial downloads and the planned CtxBazaar lesson experience.

These models describe intent. Choose a small useful subset and connect them when the relationship helps a reviewer understand the system.

Your question Start here A small first use
What concepts and rules must stay consistent? DDD — Domain Model One aggregate and one invariant.
What outcome does a user need? USM — User Story Map One persona and an end-to-end release slice.
What observable obligation must be met? CBRL — Requirements One requirement with allowed and rejected examples.
Which screens exist and how do users move? SCM — Screen Connectivity Three screens with named transitions.
How is data stored and constrained? DSM — Data Storage One table, a key and an integrity constraint.
What contracts connect systems? SIM — System Integration Two participants and one interaction.
What are the architectural parts at this zoom level? C4 — Architecture A system context view.
Where do meaning and ownership change? Context Map Two bounded contexts and a typed relationship.
What happens in this business process? Event Storming A short episode of events and commands.

DDD is useful beyond large systems, and USM can describe service consumers as well as people using screens. A database does not by itself imply complex DDD; multiple bounded contexts do not require microservices. A discovery workshop does not require an event-sourced implementation.

These layers support or govern the authored specifications. Their editor, versioning and transport capabilities differ; read the guide before choosing a workflow.

Your question Guide Capability boundary
What may an agent do and when must it escalate? ABSL — Agent Behavior Declares a contract; runtime enforcement depends on its consumer.
Who may access which resource? ACM — Access Connectivity Authored access layer over model references; coverage differs from enforcement.
What lifecycle states and transitions are declared? State Lens References domain/storage concepts; not the planned standalone STM model or an assumed simulator.
Which source material informs this project? Knowledge The current surface manages sources; ingestion accumulates knowledge separately.

These views help inspect, organize or discover information. They should not become competing authorities for the authored models they inform.

Your question Guide First review
Where does this domain language apply? Bounded Contexts Inspect two contexts that use the same term differently.
What does this term mean here? Ubiquitous Dictionary Define a term, context, aliases and owner.
What concepts does existing code suggest? Topic Map Follow evidence before promoting a candidate cluster.

These are documented formats or artifacts, with capabilities distinct from the implemented-model selector. A file schema does not imply a standalone editor.

Your question Guide Current scope
How do commands, events and projections describe change? ESDM — Event-Sourced DDD Import workflow; no standalone ESDM editor selection.
Why did we make this choice? Decisions — ADR Trail Structured decision records carried as an archive artifact.
What evidence should judge an output or behavior? Evals — Evaluation Suites Declares suites and expectations; execution requires a named runner.
Project need Useful combination
Reservation rules and persistent state DDD + CBRL + DSM.
A user-facing booking flow USM + SCM; add ACM when access differs by role or ownership.
Several interacting services DDD + Context Map + SIM; use C4 for the architecture explanation.
Understanding a codebase before changing it Topic Map + Dictionary/Bounded Contexts review, then authored DDD/Context Map.
An agent with explicit permissions ABSL + relevant DDD/CBRL obligations + evaluation fixtures.
A consequential architecture choice Decision record + affected models + the checks that would test its consequences.

For a cumulative worked project, follow the learning path. For supported input/output formats, see Import & Export. For exact serialized fields and versions, use the file schemas.