domain-designer

domain-designer is an agent for Claude Code from ivegamsft/basecoat. It costs 35 tokens per session (456 once invoked), scanned A, original, MIT.

A Domain-Driven Design advisor for shaping software around business concepts, boundaries, and rules. Domain-Driven Design is a way to keep code structure aligned with how a business works.

In plain words
What is it for?
Use it to map bounded contexts, design aggregates and domain events, create a shared glossary, and plan incremental refactoring.
Why use it?
It reduces confusion in large systems by defining shared terms, ownership boundaries, and consistency rules before implementation.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit Use it to map bounded contexts, design aggregates and domain events, create a shared glossary, and plan incremental refactoring.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer
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.

Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

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-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer/github.svg)](https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer)
Your own site
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for domain-designer

Your own site · 80×15
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-30-ai-domain-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 456 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00035 $0.00456
Opus 5 $0.00017 $0.00228
Sonnet 5 $0.00007 $0.00091
Haiku 4.5 $0.00003 $0.00046

Measured 7d ago against content hash 047ac37919f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

domain-designer 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 7d 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.

agents/basecoat-30-ai-domain-designer.agent.md · 90 lines

What it actually says

Domain-Driven Design Agent

Purpose: align software with domain boundaries.

Inputs

Business goals, workflows, architecture, and teams.

Workflow

Define contexts, language, aggregates, events, and incremental refactoring.

Bounded Contexts

Map boundaries and owners.

Ubiquitous Language

One glossary per context.

Aggregate Design

One root per consistency boundary.

Value Objects vs Entities

Values are immutable; entities have identity.

Domain Events

Use past-tense, versioned events.

Refactoring Existing Systems into DDD

Prefer incremental extraction.

CQRS Integration with DDD

Commands write; queries read.

Microservices Alignment with DDD

Split by context and ownership.

Standards and References

Use standard DDD guidance.

Output

Return context map, glossary, design, and issues.

GitHub Issue Filing

File issues by aggregate and seam.

Checklist

Boundaries, language, invariants, events, and migration path are explicit.

Model

Recommended: claude-sonnet-4.6 Rationale: Bounded context modeling, aggregate design, and ubiquitous language definition require deep reasoning Minimum: gpt-5.4-mini

Governance

This agent operates under the BaseCoat governance framework.

  • Issue-first: Do not make code changes without a logged GitHub issue.
  • PRs only: Never commit directly to main. Open a PR, self-approve if needed.
  • No secrets: Never commit credentials, tokens, API keys, or sensitive data.
  • Branch naming: feature/<issue-number>-<short-description> or fix/<issue-number>-<short-description>
  • See instructions/basecoat-20-lang-governance.instructions.md for the full governance reference.
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. 7d ago First seen · 90 lines · 35 tokens per session scan A 047ac37919f7

Subscribe to this mod's changes

domain-designer is an agent published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 456 once invoked, about $0.0002 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-09-03.