phase-2

phase-2 is a command for Claude Code from jed1978/ddd-architecture-coach. It costs 51 tokens per session (372 once invoked), scanned A, original, MIT.

A command that moves one bounded context (a clearly defined part of a system) into Phase 2 of a Domain-Driven Design architecture process.

In plain words
What is it for?
Use it to review a context map, make architecture decisions, plan cloud deployment, or record AI-related architecture decisions for one bounded context.
Why use it?
It prevents architecture work from being applied to the wrong bounded context by requiring its name explicitly.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 commands/jed1978/ddd-architecture-coach/phase-2
Clone the repo
git clone --depth 1 https://github.com/jed1978/ddd-architecture-coach

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 phase-2

README.md
[![agentmods](https://agentmods.dev/badge/commands/jed1978/ddd-architecture-coach/phase-2.svg)](https://agentmods.dev/commands/jed1978/ddd-architecture-coach/phase-2)
Your own site
<a href="https://agentmods.dev/commands/jed1978/ddd-architecture-coach/phase-2"><img src="https://agentmods.dev/badge/commands/jed1978/ddd-architecture-coach/phase-2.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 372 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.1 $0.00051 $0.00372
Opus 5 $0.00026 $0.00186
Sonnet 5 $0.00010 $0.00074
Haiku 4.5 $0.00005 $0.00037

Measured 6d ago against content hash befe2c9c8d51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

phase-2 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 6d 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.

assets/commands/phase-2.md · 23 lines

What it actually says

請啟動 DDD Architecture Coach(ddd-architecture-coach skill)並強制進入 Phase 2

Argument handling:

$ARGUMENTS 必須包含 BC 名稱。為空 → 報錯並結束:

Phase 2 需要明確的 BC 參數。用法:/phase-2 <BC-name>。要查看目前哪些 BC 在進行中,請執行不帶參數的 /arch-coach

不要 fallback 到 arch-state.mdlast_touched.bc — 顯式命名 BC 可以避免在團隊環境中誤寫到別的 BC 的 decisions.md

執行步驟:

  1. 讀取 .claude/project-context.md.claude/arch-state.md(後者僅作為 personal cursor 紀錄用)
  2. 讀取 references/phase2-architecture-design.md,依「Mode Selection」決定 greenfield / incremental
  3. 執行 Pre-flight Checks,缺資料則停下並請使用者補
  4. $ARGUMENTS 指定的 BC 為 per-BC 範圍焦點
  5. 進入 phase 時更新 .claude/arch-state.mdlast_touched: { bc: <BC>, phase: phase_2, at: <today> }

$ARGUMENTS

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. 6d ago First seen · 23 lines · 51 tokens per session scan A befe2c9c8d51

Subscribe to this mod's changes

phase-2 is a command published in the GitHub repository jed1978/ddd-architecture-coach (5 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 372 once invoked, about $0.0003 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.