AgentSkillsCN

musubix-domain-inference

自动识别领域并推断组件的指南,用于精准界定项目领域。

SKILL.md
--- frontmatter
name: musubix-domain-inference
description: 自動ドメイン検出・コンポーネント推論ガイド。プロジェクトドメイン特定に使用。
license: MIT

Domain Inference Skill

62ドメイン224コンポーネントを自動検出・推奨。

Domain Categories

カテゴリドメイン数
Business8ecommerce, finance, crm, hr
Healthcare3healthcare, pharmacy, veterinary
Service20+booking, hotel, restaurant, gym
Technology8iot, security, ai, analytics

Key Domains

Domain名称Key Components
ecommerceEC・通販CartService, ProductCatalog, OrderProcessor
finance金融AccountService, TransactionManager
veterinary動物病院PetService, VetScheduleService
booking予約ReservationService, SlotManager
iotIoTDeviceManager, TelemetryProcessor

WHEN → DO

WHENDO
新規プロジェクト開始要件テキストからドメイン検出
複数ドメインの場合primaryとsecondaryを特定
コンポーネント設計推奨コンポーネントを適用

Detection Example

typescript
const result = domainDetector.detect(`
  ペットの予約管理システム。
  獣医師のスケジュール管理とワクチン接種記録。
`);
// {
//   primaryDomain: { id: 'veterinary' },
//   confidence: 0.92,
//   matchedKeywords: ['ペット', '獣医', 'ワクチン'],
//   suggestedComponents: ['PetService', 'ReservationService']
// }

Architecture by Category

カテゴリアーキテクチャスケーリング
BusinessLayered + DDDVertical + Cache
TechnologyMicroservicesHorizontal
HealthcareLayered + AuditVertical + Compliance

CLI

bash
npx musubix design patterns --detect-domain <file>  # ドメイン検出
npx musubix design generate <file> --infer-components  # コンポーネント推論

出力例

code
┌─────────────────────────────────────────┐
│ Domain Detected                         │
├─────────────────────────────────────────┤
│ Primary:    veterinary (動物病院)       │
│ Confidence: 92%                         │
│ Keywords:   ペット, 獣医, ワクチン      │
│ Components: 5 recommended               │
│ - PetService                            │
│ - ReservationService                    │
│ - VetScheduleService                    │
└─────────────────────────────────────────┘