create-domain-story — community create-domain-story, architecture-redesign-agent, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Essential for DDD Agents specializing in legacy system modernization and microservices refactoring. Legacy system analysis and microservices refactoring agent system for Claude Code

wfukatsu wfukatsu
[2]
[0]
Updated: 2/21/2026

Agent Capability Analysis

The create-domain-story skill by wfukatsu is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Essential for DDD Agents specializing in legacy system modernization and microservices refactoring.

Core Value

Empowers agents to extract implicit business knowledge using Domain Storytelling methodology, structuring processes into visual narratives with Actors, Work Items, and Activities. Directly consumes outputs from /ddd-redesign and /analyze-system commands, including bounded-contexts-redesign.md and ubiquitous-language.md files.

Capabilities Granted for create-domain-story

Extracting implicit business processes from legacy systems
Visualizing domain workflows for microservices decomposition
Generating domain story artifacts from bounded context definitions
Translating ubiquitous language into actionable process flows

! Prerequisites & Limits

  • Requires specific input files: bounded-contexts-redesign.md and ubiquitous-language.md
  • Depends on prior execution of /ddd-redesign and /analyze-system commands
  • Limited to Domain Storytelling methodology framework
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

create-domain-story

Install create-domain-story, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Domain Storyteller Agent

ドメインストーリーテリング手法を用いて、各ドメインのビジネスプロセスを物語形式で整理するエージェントです。

概要

ドメインストーリーテリングは、ビジネスプロセスの暗黙知を引き出し、可視化する手法です。以下の3つの要素で物語を構成します:

要素説明表記
アクター登場人物(人、役割、システム)人型アイコン
ワークアイテム扱うモノや情報長方形
アクティビティ実行する行動矢印とラベル

前提条件

推奨(/ddd-redesign の出力):

  • reports/03_design/bounded-contexts-redesign.md - 境界コンテキスト再設計

推奨(/analyze-system の出力):

  • reports/01_analysis/ubiquitous-language.md - ユビキタス言語集
  • reports/01_analysis/actors-roles-permissions.md - アクター・ロール・権限

出力先

結果は reports/04_stories/ に出力します。 重要: 各ステップ完了時に即座にファイルを出力してください。

実行モード

インタラクティブモード(推奨)

ユーザーとの対話を通じてストーリーを引き出します。AskUserQuestionツールを活用して、以下の7段階のプロセスで進行します。

自動生成モード

既存の分析結果からストーリーを自動生成します。精度は低下しますが、大量のドメインを効率的に処理できます。

7段階のファシリテーションプロセス

Stage 1: 舞台設定(Context Setting)

目的: ストーリーのスコープを決定する

質問例:

  • 「どのビジネスプロセスについて話しましょうか?」
  • 「このプロセスはどこから始まり、どこで終わりますか?」
  • 「主な目的は何ですか?」
AskUserQuestion を使用して以下を確認:
- 対象プロセス名
- 開始点と終了点
- 主要な目的

Stage 2: 物語開始(Story Opening)

目的: 最初のアクターと行動を特定する

質問例:

  • 「このプロセスを始めるのは誰ですか?」
  • 「最初に何をしますか?」
  • 「何を使って/何に対して行いますか?」
markdown
1## 最初のシーン 2 3**アクター**: [誰が] 4**アクティビティ**: [何をする] 5**ワークアイテム**: [何を/何に対して]

Stage 3: 展開(Story Development)

目的: 時系列でアクティビティの連鎖を追跡する

質問例:

  • 「次に何が起こりますか?」
  • 「それを受けて誰が動きますか?」
  • 「どんな情報が渡されますか?」
markdown
1## シーン [N] 2 3**前提**: [前のシーンからの引き継ぎ] 4**アクター**: [誰が] 5**アクティビティ**: [何をする] 6**ワークアイテム**: [何を/何に対して] 7**結果**: [次のシーンへの引き継ぎ]

Stage 4: 確認(Confirmation)

目的: 整理した内容をレビューする

確認事項:

  • 抜け漏れがないか
  • 順序は正しいか
  • 用語は適切か

Stage 5: 例外検討(Exception Handling)

目的: うまくいかないパターンを確認する

質問例:

  • 「このステップが失敗したらどうなりますか?」
  • 「データが不正だった場合は?」
  • 「システムが応答しない場合は?」
markdown
1## 例外シナリオ 2 3### [例外名1] 4**トリガー**: [何が起こると] 5**対応**: [どう対処する] 6**復帰**: [どう正常フローに戻る] 7 8### [例外名2] 9...

Stage 6: 可視化(Visualization)

目的: Mermaidコードでプロセス図を生成する

mermaid
1sequenceDiagram 2 actor Actor1 as [アクター1] 3 actor Actor2 as [アクター2] 4 participant System as [システム] 5 6 Actor1->>System: [アクティビティ1] 7 System-->>Actor2: [アクティビティ2] 8 Note over System: [補足説明]

Stage 7: クロージング(Closing)

目的: 調整確認と終了判断

確認事項:

  • 追加したいシナリオはあるか
  • 用語の定義は明確か
  • 次に掘り下げるべきプロセスはあるか

Stage 8: Mermaid図の検証

出力したファイルのMermaid図を検証し、エラーがあれば修正:

bash
1/fix-mermaid ./reports/04_stories

出力フォーマット

[domain]_story.md

ドメインストーリー(概要、登場人物、ワークアイテム、メインストーリー、ストーリーフロー図、例外シナリオ、業務ルール一覧、ドメインイベント、用語集、関連ストーリー、改善提案、メタデータ)

インタラクティブモードの実装

javascript
1// ファシリテーションの疑似コード 2async function facilitateDomainStory(domainName) { 3 // Stage 1: 舞台設定 4 const context = await askUser({ 5 questions: [ 6 { 7 question: "どのビジネスプロセスについて話しますか?", 8 header: "プロセス", 9 options: [ 10 { label: "注文処理", description: "顧客からの注文を処理するプロセス" }, 11 { label: "在庫管理", description: "商品在庫を管理するプロセス" }, 12 { label: "顧客対応", description: "顧客からの問い合わせ対応" } 13 ] 14 } 15 ] 16 }); 17 18 // Stage 2-6: ストーリー構築 19 const story = await buildStory(context); 20 21 // Stage 7: クロージング 22 const confirmation = await confirmStory(story); 23 24 // 出力 25 await writeStoryFile(domainName, story); 26}

自動生成モードの実装

既存の分析結果から推論:

  1. アクター抽出

    • actors-roles-permissions.md から人間アクター
    • system-overview.md からシステムアクター
  2. ワークアイテム抽出

    • ubiquitous-language.md からエンティティ
    • domain-code-mapping.md からデータオブジェクト
  3. アクティビティ推論

    • API定義からCRUD操作を特定
    • イベント定義からビジネスアクションを特定
  4. ストーリー構築

    • ユースケースの順序を推論
    • 依存関係からフローを構築

ツール活用

対話的な情報収集

AskUserQuestion でユーザーから情報を収集

既存情報の読み取り

Read で中間ファイルを読み込み
mcp__serena__find_symbol でコードからメソッドを特定

図の生成

  • Mermaid sequence diagram を使用
  • 複雑な場合は複数の図に分割

ベストプラクティス

Do's

  • ビジネス用語を使用(技術用語を避ける)
  • 具体的なシナリオで説明
  • 例外ケースも必ず確認
  • 図と文章の両方で表現

Don'ts

  • 実装詳細に踏み込まない
  • 仮定で進めない(必ず確認)
  • 複雑すぎる図を作らない
  • 専門用語を説明なしで使わない

エラーハンドリング

  • ドメインエキスパートが不在 → 既存ドキュメント・コードから推測(精度低下を警告)
  • ストーリーが複雑すぎる場合 → サブプロセスに分割を提案
  • ユビキタス言語が未定義 → /analyze-system の先行実行を案内
  • Mermaid図の構文エラー → /fix-mermaid で修正

関連スキル

スキル用途
/analyze-systemユビキタス言語・アクター抽出(入力)
/ddd-redesignDDD再設計(次ステップ)
/map-domainsドメインマッピング(補完)
/build-graphナレッジグラフ構築(出力活用)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is create-domain-story?

Essential for DDD Agents specializing in legacy system modernization and microservices refactoring. Legacy system analysis and microservices refactoring agent system for Claude Code

How do I install create-domain-story?

Run the command: npx killer-skills add wfukatsu/architecture-redesign-agent/create-domain-story. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for create-domain-story?

Key use cases include: Extracting implicit business processes from legacy systems, Visualizing domain workflows for microservices decomposition, Generating domain story artifacts from bounded context definitions, Translating ubiquitous language into actionable process flows.

Which IDEs are compatible with create-domain-story?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for create-domain-story?

Requires specific input files: bounded-contexts-redesign.md and ubiquitous-language.md. Depends on prior execution of /ddd-redesign and /analyze-system commands. Limited to Domain Storytelling methodology framework.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add wfukatsu/architecture-redesign-agent/create-domain-story. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use create-domain-story immediately in the current project.

Related Skills

Looking for an alternative to create-domain-story or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI