phase-1

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

A command that starts Phase 1 of a domain-driven design workflow. Domain-driven design is a way to model software around the real-world business area it serves.

In plain words
What is it for?
Use it to map scenarios, commands, events, business components, user stories, and possible uses for AI at system or component level.
Why use it?
It lets you deliberately redo or begin the discovery work instead of relying on automatic phase selection.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to map scenarios, commands, events, business components, user stories, and possible uses for AI at system or component level.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jed1978/ddd-architecture-coach/phase-1
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/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-1

README.md
[![agentmods](https://agentmods.dev/badge/commands/jed1978/ddd-architecture-coach/phase-1.svg)](https://agentmods.dev/commands/jed1978/ddd-architecture-coach/phase-1)
Your own site
<a href="https://agentmods.dev/commands/jed1978/ddd-architecture-coach/phase-1"><img src="https://agentmods.dev/badge/commands/jed1978/ddd-architecture-coach/phase-1.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 441 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.00081 $0.00441
Opus 5 $0.00041 $0.00220
Sonnet 5 $0.00016 $0.00088
Haiku 4.5 $0.00008 $0.00044

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

Security

Grade A, and why

phase-1 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.

assets/commands/phase-1.md · 18 lines

What it actually says

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

Argument handling:

  • $ARGUMENTS 為空 → 進入 Phase 1 system-level(Steps 1–5)。若 {coach_output_root}/system/domain-stories.md 已存在 → 詢問使用者要 revise 既有 system 文件、還是改傳一個 BC 跑 Steps 6–7。
  • $ARGUMENTS 含 BC 名稱 → 進入該 BC 的 Phase 1 Steps 6–7(per-BC Domain Discovery)。Pre-flight:先 probe {coach_output_root}/system/ 確認 system-level Steps 1–5 已完成;若未完成 → 報錯「System-level Phase 1(Steps 1–5)必須先完成。請先執行不帶參數的 /phase-1。」

執行步驟:

  1. 讀取 .claude/project-context.md(必要)與 .claude/arch-state.md(讀取作為 fallback hint,非權威)
  2. 讀取 references/phase1-domain-discovery.md,依「Mode Selection」決定 system-full / system-incremental / per-bc
  3. 跳過 Phase Selection Logic 的自動判斷,直接執行 Phase 1
  4. 進入 phase 時更新 .claude/arch-state.mdlast_touched: { bc, phase, at: <today> }(個人 cursor,不寫團隊狀態)

$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. 7d ago First seen · 18 lines · 81 tokens per session scan A c9b33d6494d0

Subscribe to this mod's changes

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