Domain Inference Skill
62ドメイン・224コンポーネントを自動検出・推奨。
Domain Categories
| カテゴリ |
ドメイン数 |
例 |
| Business |
8 |
ecommerce, finance, crm, hr |
| Healthcare |
3 |
healthcare, pharmacy, veterinary |
| Service |
20+ |
booking, hotel, restaurant, gym |
| Technology |
8 |
iot, security, ai, analytics |
Key Domains
| Domain |
名称 |
Key Components |
| ecommerce |
EC・通販 |
CartService, ProductCatalog, OrderProcessor |
| finance |
金融 |
AccountService, TransactionManager |
| veterinary |
動物病院 |
PetService, VetScheduleService |
| booking |
予約 |
ReservationService, SlotManager |
| iot |
IoT |
DeviceManager, TelemetryProcessor |
WHEN → DO
| WHEN |
DO |
| 新規プロジェクト開始 |
要件テキストからドメイン検出 |
| 複数ドメインの場合 |
primaryとsecondaryを特定 |
| コンポーネント設計 |
推奨コンポーネントを適用 |
Detection Example
const result = domainDetector.detect(`
ペットの予約管理システム。
獣医師のスケジュール管理とワクチン接種記録。
`);
// {
// primaryDomain: { id: 'veterinary' },
// confidence: 0.92,
// matchedKeywords: ['ペット', '獣医', 'ワクチン'],
// suggestedComponents: ['PetService', 'ReservationService']
// }
Architecture by Category
| カテゴリ |
アーキテクチャ |
スケーリング |
| Business |
Layered + DDD |
Vertical + Cache |
| Technology |
Microservices |
Horizontal |
| Healthcare |
Layered + Audit |
Vertical + Compliance |
CLI
npx musubix design patterns --detect-domain <file> # ドメイン検出
npx musubix design generate <file> --infer-components # コンポーネント推論
出力例
┌─────────────────────────────────────────┐
│ Domain Detected │
├─────────────────────────────────────────┤
│ Primary: veterinary (動物病院) │
│ Confidence: 92% │
│ Keywords: ペット, 獣医, ワクチン │
│ Components: 5 recommended │
│ - PetService │
│ - ReservationService │
│ - VetScheduleService │
└─────────────────────────────────────────┘
1---2name: musubix-domain-inference-23description: 自動ドメイン検出・コンポーネント推論ガイド。プロジェクトドメイン特定に使用。4license: MIT5---67# Domain Inference Skill89**62ドメイン**・**224コンポーネント**を自動検出・推奨。1011## Domain Categories1213| カテゴリ | ドメイン数 | 例 |14|---------|-----------|-----|15| **Business** | 8 | ecommerce, finance, crm, hr |16| **Healthcare** | 3 | healthcare, pharmacy, veterinary |17| **Service** | 20+ | booking, hotel, restaurant, gym |18| **Technology** | 8 | iot, security, ai, analytics |1920## Key Domains2122| Domain | 名称 | Key Components |23|--------|------|----------------|24| ecommerce | EC・通販 | CartService, ProductCatalog, OrderProcessor |25| finance | 金融 | AccountService, TransactionManager |26| veterinary | 動物病院 | PetService, VetScheduleService |27| booking | 予約 | ReservationService, SlotManager |28| iot | IoT | DeviceManager, TelemetryProcessor |2930## WHEN → DO3132| WHEN | DO |33|------|-----|34| 新規プロジェクト開始 | 要件テキストからドメイン検出 |35| 複数ドメインの場合 | primaryとsecondaryを特定 |36| コンポーネント設計 | 推奨コンポーネントを適用 |3738## Detection Example3940```typescript41const result = domainDetector.detect(`42 ペットの予約管理システム。43 獣医師のスケジュール管理とワクチン接種記録。44`);45// {46// primaryDomain: { id: 'veterinary' },47// confidence: 0.92,48// matchedKeywords: ['ペット', '獣医', 'ワクチン'],49// suggestedComponents: ['PetService', 'ReservationService']50// }51```5253## Architecture by Category5455| カテゴリ | アーキテクチャ | スケーリング |56|---------|---------------|-------------|57| Business | Layered + DDD | Vertical + Cache |58| Technology | Microservices | Horizontal |59| Healthcare | Layered + Audit | Vertical + Compliance |6061## CLI6263```bash64npx musubix design patterns --detect-domain <file> # ドメイン検出65npx musubix design generate <file> --infer-components # コンポーネント推論66```6768## 出力例6970```71┌─────────────────────────────────────────┐72│ Domain Detected │73├─────────────────────────────────────────┤74│ Primary: veterinary (動物病院) │75│ Confidence: 92% │76│ Keywords: ペット, 獣医, ワクチン │77│ Components: 5 recommended │78│ - PetService │79│ - ReservationService │80│ - VetScheduleService │81└─────────────────────────────────────────┘82```