Agent skill

Ddd Context Mapping

by revfactory in revfactory/harness-100

Detailed methodology for DDD (Domain-Driven Design) bounded context identification, context map creation, and event storming execution.

Apache-2.0Auto-check passedDevelopment

Install Ddd Context Mapping

skills CLI
$ npx skills add revfactory/harness-100 --skill ddd-context-mapping -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 ddd-context-mapping --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/23-microservice-designer/.claude/skills/ddd-context-mapping .claude/skills/ddd-context-mapping && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ddd-context-mapping
GitHub stars
1.3k
Token cost
~1.3k tokens
SKILL.md length
239 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

Detailed methodology for DDD (Domain-Driven Design) bounded context identification, context map creation, and event storming execution.

  • Works in 4 steps: Domain Event Collection → Command -> Event Mapping → Aggregate Identification → …
  • Bounded context
  • SKILL.md covers Event Storming Procedure, Context Map Relationship Types, Aggregate Design Principles and Ubiquitous Language Dictionary…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ddd Context Mapping is an agent skill from revfactory/harness-100. Detailed methodology for DDD (Domain-Driven Design) bounded context identification, context map creation, and event storming execution. Use this skill for 'bounded context', 'DDD', 'domain modeling', 'event storming', 'context map', 'aggregate design', 'ubiquitous language', and other domain analysis tasks. Enhances the domain analysis capabilities of domain-analyst and service-architect. Note: infrastructure deployment and code implementation are outside the scope of this skill.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Domain-driven design. The licence is Apache-2.0.

When your agent uses it

  • Bounded context
  • Domain modeling
  • Aggregate design
  • Ubiquitous language

Example prompts

  • “bounded context”
  • “domain modeling”
  • “event storming”
  • “/ddd-context-mapping”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Domain Event Collection
  2. Command -> Event Mapping
  3. Aggregate Identification
  4. Bounded Context Derivation

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ddd Context Mapping loads about 1.3k tokens when it runs. Until then it costs about 126 tokens; SKILL.md has 239 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~126
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 239 words, ~1,293 tokens.

Download SKILL.mdSave it as .claude/skills/ddd-context-mapping/SKILL.md (or your agent's skills folder).
name
ddd-context-mapping
description
Detailed methodology for DDD (Domain-Driven Design) bounded context identification, context map creation, and event storming execution. Use this skill for 'bounded context', 'DDD', 'domain modeling', 'event storming', 'context map', 'aggregate design', 'ubiquitous language', and other domain analysis tasks. Enhances the domain analysis capabilities of domain-analyst and service-architect. Note: infrastructure deployment and code implementation are outside the scope of this skill.

DDD Context Mapping — Domain-Driven Design Context Mapping Guide

Systematic methodology from bounded context identification to context map creation.

Event Storming Procedure

Phase 1: Domain Event Collection
Rule: Express in past tense verbs
Examples: "Order was created", "Payment was approved", "Shipping was initiated"

Collection order:
1. List events from core business flows in chronological order
2. Add exception/failure events
3. Add external system events
Phase 2: Command -> Event Mapping
[User/System] -> {Command} -> [Aggregate] -> <<Domain Event>>
[Customer]    -> {Create Order} -> [Order]  -> <<Order was created>>
[Payment System] -> {Approve Payment} -> [Payment] -> <<Payment was approved>>
Phase 3: Aggregate Identification
Aggregate boundary criteria:
1. Transactional consistency boundary — groups of objects that must change together
2. Invariant protection — units that enforce business rules
3. Concurrency boundary — units that manage conflicts during concurrent access
Phase 4: Bounded Context Derivation
SignalMeaning
Same word with different meaningsContext separation needed (e.g., "Account" = user account vs. financial account)
Owned by different teamsOrganizational boundary = context boundary
Different change cadencesIndependent deployment needed -> separate
Different data storesTechnical boundary = context boundary

Context Map Relationship Types

RelationshipSymbolDescriptionExample
Shared KernelSKShared domain modelTwo teams using the same Entity
Customer-SupplierC/SUpstream/downstream relationshipOrder (upstream) -> Shipping (downstream)
ConformistCFDownstream accepts upstream model as-isAccepting external API model
Anti-Corruption LayerACLInsert model translation layerIntegration with legacy system
Open Host ServiceOHSProvide public protocolPublic REST API
Published LanguagePLShared language (schema)Protobuf/Avro schema
Separate WaysSWIndependent operationIntegration unnecessary
PartnershipPEqual collaborationJoint development by two teams
Context Map Example:

+---------------+     OHS/PL      +-----------------+
| Order Mgmt    | ---------------> | Payment Process |
| (Order BC)    |                  | (Payment BC)    |
+-------+-------+                  +--------+--------+
        | C/S                               | C/S
        v                                   v
+---------------+     ACL          +-----------------+
| Shipping Mgmt | <--------------- | External PG     |
| (Shipping BC) |                  | (3rd Party)     |
+---------------+                  +-----------------+

Aggregate Design Principles

Sizing Criteria
Prefer small aggregates:
+-- Minimize transaction scope -> reduce concurrency conflicts
+-- Reduce memory usage
+-- Shrink change impact scope

Exceptions (larger aggregates allowed):
+-- Invariants span multiple entities
+-- Atomic consistency is absolutely required
+-- Cannot be replaced with eventual consistency
Inter-aggregate Reference Rules
OK - ID reference: Order.customerId (only holds the Customer aggregate's ID)
NO - Direct reference: Order.customer (directly holds the Customer object)

Reasons:
1. Respects aggregate boundaries
2. Transaction isolation
3. Enables independent storage usage

Ubiquitous Language Dictionary Template

markdown
| Term | Context | Definition | Synonyms | Confusion/Antonyms |
|------|---------|-----------|----------|-------------------|
| Order | Order Management | Customer's product purchase request | Purchase order | Distinct from Cart |
| Account | User Management | Loginable user unit | User | Distinct from financial account |
| Account | Settlement Management | Settlement target financial account | Bank account | Distinct from user account |

Service Decomposition Anti-patterns

Anti-patternSymptomsResolution
NanoserviceService is too small, only 1-2 APIsMerge related services
Distributed MonolithAll services in synchronous call chainsSwitch to event-driven async
CRUD ServiceActs as DB proxy without domain logicInternalize domain logic
God ServiceExcessive responsibilities in one serviceRe-decompose based on bounded contexts
Shared DBMultiple services using the same tablesSeparate data ownership

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in en/23-microservice-designer/.claude/skills/ddd-context-mapping of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Ddd Context Mapping next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ddd Context Mapping compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ddd Context Mapping this skillrevfactory/harness-1001.3k—~1.3kAutomated safety check: PassApache-2.0
Domain Modelingfossasia/eventyay-interpretation1.6k29 repos~821Automated safety check: PassApache-2.0
Architecture Governancezai-org/ZCode7.5k—~1.2kAutomated safety check: PassApache-2.0
Evolutionary Modular Architecturetech-leads-club/agent-skills7k—~3.7kAutomated safety check: PassCC-BY-4.0
Domain Modelingbrim-borium/spotify_sdk1665 repos~806Automated safety check: PassApache-2.0
Domain Modeling and Glossarywindmill-labs/windmill18k—~622Automated safety check: PassCustom licence

Similar skills

  • Domain Modeling

    fossasia/eventyay-interpretation

    Build and sharpen a project's domain model. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 29 repos~821 tokens
    DevelopmentAuto-check passed
  • Apply the repository's architecture policy to code changes by generating a bounded context package, checking module and layer boundaries, and reporting baseline-aware violations.

    7.5k GitHub stars~1.2k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Evolutionary Modular Architecture

    tech-leads-club/agent-skills

    Guides design of modular-monolith platforms with DDD, flat-by-aggregate modules, anti-corruption layers, outbox events and resilience, plus an architecture document with SVG diagrams.

    7k GitHub stars~3.7k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Domain Modeling

    brim-borium/spotify_sdk

    Build and sharpen a project's domain model. An agent skill from brim-borium/spotify_sdk.

    166 GitHub starsUsed in 5 repos~806 tokens
    DevelopmentAuto-check passed
  • Domain Modeling and Glossary

    windmill-labs/windmill

    Actively challenges vague or conflicting terminology as you design, and keeps a living domain glossary file up to date in real time.

    18k GitHub stars~622 tokensUpdated today
    DevelopmentAuto-check passed
  • Ddd

    swamp-club/swamp

    Domain Driven Design guidance for TypeScript/Deno codebases.

    642 GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about Ddd Context Mapping

What does Ddd Context Mapping do?

Detailed methodology for DDD (Domain-Driven Design) bounded context identification, context map creation, and event storming execution. Ddd Context Mapping is an agent skill from revfactory/harness-100. Detailed methodology for DDD (Domain-Driven Design) bounded context identification, context map creation, and event storming execution.

When should I use Ddd Context Mapping?

Ddd Context Mapping fits situations like: bounded context; domain modeling; aggregate design; ubiquitous language.

How do I install Ddd Context Mapping in Claude Code?

Run `npx skills add revfactory/harness-100 --skill ddd-context-mapping -a claude-code`. Or copy the skill folder (en/23-microservice-designer/.claude/skills/ddd-context-mapping in revfactory/harness-100) into .claude/skills/ddd-context-mapping in your project. Claude Code loads it when a task matches its description.

How do I install Ddd Context Mapping in Codex?

Run `npx skills add revfactory/harness-100 --skill ddd-context-mapping -a codex`. Or copy the skill folder (en/23-microservice-designer/.claude/skills/ddd-context-mapping in revfactory/harness-100) into .agents/skills/ddd-context-mapping in your project. Codex loads it when a task matches its description.

Can I use Ddd Context Mapping in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill ddd-context-mapping -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ddd-context-mapping, .gemini/skills/ddd-context-mapping, .github/skills/ddd-context-mapping and .opencode/skills/ddd-context-mapping in your project.

What does Ddd Context Mapping need to run?

SKILL.md names no scripts, command-line tools or credentials: Ddd Context Mapping is instructions for the agent only.

Does Ddd Context Mapping access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ddd Context Mapping safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ddd Context Mapping use?

Ddd Context Mapping is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ddd Context Mapping use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ddd Context Mapping?

Skills that share tags, products or a category with Ddd Context Mapping: Domain Modeling (fossasia/eventyay-interpretation, 1.6k stars), Architecture Governance (zai-org/ZCode, 7.5k stars), Evolutionary Modular Architecture (tech-leads-club/agent-skills, 7k stars) and Domain Modeling (brim-borium/spotify_sdk, 166 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ddd Context Mapping?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.