domain-decompose

domain-decompose is a skill for Claude Code, Codex from baodq97/open-plugin. It costs 199 tokens per session (2,566 once invoked), scanned A, original, MIT.

A domain-modelling skill that turns a business description into a structured map of responsibilities, data, and important events. It uses Domain-Driven Design terms such as bounded contexts, which are separate areas of business responsibility.

In plain words
What is it for?
Breaking down a product or business domain, naming its main concepts in business language, and identifying possible boundaries for services in a larger application.
Why use it?
It helps clarify where business concepts belong and where system boundaries might be placed, without guessing rules that were not provided.

Skill for Claude CodeCodex

Part of the swe-flow plugin — 2 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/baodq97/open-plugin/domain-decompose
Any agent
npx skills add baodq97/open-plugin --skill domain-decompose
Clone the repo
git clone --depth 1 https://github.com/baodq97/open-plugin

Made for: Claude Code, Codex.

Or install swe-flow, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for domain-decompose

README.md
[![agentmods](https://agentmods.dev/badge/skills/baodq97/open-plugin/domain-decompose.svg)](https://agentmods.dev/skills/baodq97/open-plugin/domain-decompose)
Your own site
<a href="https://agentmods.dev/skills/baodq97/open-plugin/domain-decompose"><img src="https://agentmods.dev/badge/skills/baodq97/open-plugin/domain-decompose.svg" alt="Measured on agentmods" height="20"></a>
Per session 199 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00199 $0.02566
Opus 5 $0.00100 $0.01283
Sonnet 5 $0.00040 $0.00513
Haiku 4.5 $0.00020 $0.00257

Measured 4d ago against content hash b68d780b7791, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

domain-decompose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/swe-flow/skills/domain-decompose/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Domain Decompose

Turn a prose domain/requirements description into a Domain-Driven Design decomposition — bounded contexts → aggregates → entities, value objects, and domain events — named in the business's ubiquitous language; each context doubles as a candidate service boundary on the monolith → microservices path.

Strategic-then-tactical and hybrid: produce a first-pass model from what you're given, then ask targeted questions only where boundaries or ownership are genuinely ambiguous — don't re-ask what the description already settles, and never invent business rules.

Inputs

A domain description: feature list, PRD, process narrative, key capabilities, actors, notable events. If the user points at code instead, say this skill models from domain knowledge, not code, and ask for a description (or the key capabilities and rules) — reverse-engineering a codebase is out of scope.

Brownfield (the model lives only in code, nothing written down): don't reverse it from the code. Ask for a one-page sketch — main capabilities, key events (past-tense things that happen), any hard rules — enough for a first-pass model; step 5 refines the rest. If domain docs/PRDs do exist, step 1 already picks them up.

Reference files (read as needed)

  • references/ddd-methodology.md — theory and heuristics behind every step (sub-domain types, boundary heuristics, aggregate/entity/VO/event criteria, naming). Read when a judgement call needs grounding.
  • references/bounded-context-canvas.md — template + guidance for each context's README.md.
  • references/aggregate-design-canvas.md — template + rules for modelling each aggregate.
  • references/output-template.mdthe exact output contract (where to write, file layout, schemas, frontmatter, hard rules). Read before emitting anything.

Process

1. Find & reconcile existing domain artifacts

Before modelling, look for existing domain knowledge — re-deriving it wastes effort and risks contradicting what the team already agreed. Look for PRDs, specs, design docs (docs/specs/, docs/**/prd/, anything titled "… domain model"), code carrying a domain layer (*/domain/, */ports/), and this skill's own prior output in docs/domain/. Treat any you find as authoritative input: build on them, preserve their names and stated rules verbatim, reconcile rather than re-invent. Prior docs/domain/ output puts you in update mode — you're merging a delta, not writing from scratch; step 6 handles it.

Read the full file on GitHub · 196 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 196 lines · 199 tokens per session scan A b68d780b7791

Subscribe to this mod's changes

domain-decompose is a skill published in the GitHub repository baodq97/open-plugin (4 stars, last pushed 3mo ago), licensed MIT. It adds 199 tokens to every session and 2,566 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop recommendations. Use when evaluating experiment results, checking if a test reached significance, interpreting split test data, or deciding whether to ship a variant.

phuryn/pm-skills · 54 tokens

brainstorm-okrs

Brainstorm team-level OKRs aligned with company objectives — qualitative objectives with measurable key results. Use when setting quarterly OKRs, aligning team goals with company strategy, drafting objectives, or learning how to write effective OKRs.

phuryn/pm-skills · 49 tokens

dummy-dataset

Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script). Use when creating test data, building mock datasets, or generating sample data for development and demos.

phuryn/pm-skills · 48 tokens

outcome-roadmap

Transform an output-focused roadmap into an outcome-focused one that communicates strategic intent. Rewrites initiatives as outcome statements reflecting user and business impacts. Use when shifting to outcome roadmaps, making a roadmap more strategic, or rewriting feature lists as outcomes.

phuryn/pm-skills · 53 tokens

pre-mortem

Run a pre-mortem risk analysis on a PRD or launch plan. Categorizes risks as Tigers (real problems), Paper Tigers (overblown concerns), and Elephants (unspoken worries), then classifies as launch-blocking, fast-follow, or track. Use when preparing for launch, stress-testing a product plan, or identifying what could go…

phuryn/pm-skills · 79 tokens

retro

Facilitate a structured sprint retrospective — what went well, what didn't, and prioritized action items with owners and deadlines. Use when running a retrospective, reflecting on a sprint, creating action items from team feedback, or learning how to run effective retros.

phuryn/pm-skills · 52 tokens