본문으로 건너뛰기
Skillpedia
일반 코딩7.1k · #13504

domain-analysis

하는 일

이 스킬은 AI가 코드베이스의 주요 업무 영역을 찾고, 각각을 핵심, 지원, 일반 영역으로 나누며, 바운디드 컨텍스트를 제안하게 합니다. 비즈니스에 맞는 서비스 경계를 원하는 개발자와 아키텍트를 위한 것입니다.

사용하는 경우

  • ✓코드베이스에 어떤 비즈니스 도메인이 있는지 알고 싶을 때.
  • ✓서비스 사이에 경계를 어디에 그을지 정해야 할 때.
  • ✓시스템의 부분들이 업무 영역과 맞는지 확인하고 싶을 때.

스킬 링크

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/domain-analysis/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/domain-analysis/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 코드베이스의 주요 비즈니스 도메인은 무엇이고, 서비스 경계는 어디에 두면 좋을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 코드에서 비즈니스 용어와 규칙을 읽고, 이를 하위 도메인으로 묶은 뒤, 각 용어가 하나의 분명한 의미를 갖는 바운디드 컨텍스트를 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Subdomain Identification & Bounded Context Analysis

This skill analyzes codebases to identify subdomains (Core, Supporting, Generic) and suggest bounded contexts following Domain-Driven Design Strategic Design principles.

When to Use

Apply this skill when:

  • Analyzing domain boundaries in any codebase
  • Identifying Core, Supporting, and Generic subdomains
  • Mapping bounded contexts from problem space to solution space
  • Assessing domain cohesion and detecting coupling issues
  • Planning domain-driven refactoring
  • Understanding business capabilities in code

Core Principles

Subdomain Classification

Core Domain: Competitive advantage, highest business value, requires best developers

  • Indicators: Complex business logic, frequent changes, domain experts needed

Supporting Subdomain: Essential but not differentiating, business-specific

  • Indicators: Supports Core Domain, moderate complexity, business-specific rules

Generic Subdomain: Common functionality, could be outsourced

  • Indicators: Well-understood problem, low differentiation, standard functionality

Bounded Context

An explicit linguistic boundary where domain terms have specific, unambiguous meanings.

  • Primary nature: Linguistic boundary, not technical
  • Key rule: Inside boundary, all Ubiquitous Language terms are unambiguous
  • Goal: Align 1 subdomain to 1 bounded context (ideal)

Analysis Process

Phase 1: Extract Concepts

Scan codebase for business concepts (not infrastructure):

  1. Entities (domain models with identity)

    • Patterns: @Entity, class, domain models
    • Focus: Business concepts, not technical classes
  2. Services (business operations)

    • Patterns: *Service, *Manager, *Handler
    • Focus: Business logic, not technical utilities
  3. Use Cases (business workflows)

    • Patterns: *UseCase, *Command, *Handler
    • Focus: Business processes, not CRUD
  4. Controllers/Resolvers (entry points)

    • Patterns: *Controller, *Resolver, API endpoints
    • Focus: Business capabilities, not technical routes

Phase 2: Group by Ubiquitous Language

For each concept, determine:

Primary Language Context

  • What business vocabulary does this belong to?
  • Examples:
    • Subscription, Invoice, Payment → Billing language
    • Movie, Video, Episode → Content language
    • User, Authentication → Identity language

Linguistic Boundaries

  • Where do term meanings change?
  • Same term, different meaning = different bounded context
  • Example: "Customer" in Sales vs "Customer" in Support

Concept Relationships

  • Which concepts naturally belong together?
  • Which share business vocabulary?
  • Which reference each other?

Phase 3: Identify Subdomains

A subdomain has:

  • Distinct business capability
  • Independent business value
  • Unique vocabulary
  • Multiple related entities working together
  • Cohesive set of business operations

Common Domain Patterns:

  • Billing/Subscription: Payments, invoices, plans
  • Content/Catalog: Media, products, inventory
  • Identity/Access: Users, authentication, authorization
  • Analytics: Metrics, dashboards, insights
  • Notifications: Messages, alerts, communications

Classify Each Subdomain:

Use this decision tree:

Is it a competitive advantage?
  YES → Core Domain
  NO → Does it require business-specific knowledge?
        YES → Supporting Subdomain
        NO → Generic Subdomain

Phase 4: Assess Cohesion

High Cohesion Indicators ✅

  • Concepts share Ubiquitous Language
  • Concepts frequently used together
  • Direct business relationships
  • Changes to one affect others in group
  • Solve same business problem

Low Cohesion Indicators ❌

  • Different business vocabularies mixed
  • Concepts rarely used together
  • No direct business relationship
  • Changes don't affect others
  • Solve different business problems

Cohesion Score Formula:

Score = (
  Linguistic Cohesion (0-3) +    // Shared vocabulary
  Usage Cohesion (0-3) +         // Used together
  Data Cohesion (0-2) +          // Entity relationships
  Change Cohesion (0-2)          // Change together
) / 10

8-10: High Cohesion ✅
5-7:  Medium Cohesion ⚠️
0-4:  Low Cohesion ❌

Phase 5: Detect Low Cohesion Issues

Rule 1: Linguistic Mismatch

  • Problem: Different business vocabularies mixed
  • Example: User (identity) + Subscription (billing) in same service
  • Action: Suggest separation into different bounded contexts

**Rule 2: Cross-

자주 묻는 질문

바운디드 컨텍스트란 무엇인가요?

시스템 안에서 각 비즈니스 용어가 하나의 분명한 의미를 갖는 영역입니다.

기존 컴포넌트를 묶나요?

아니요. 기존 컴포넌트를 도메인별로 묶는 것은 별도의 스킬이 담당합니다.

핵심, 지원, 일반 도메인은 무엇인가요?

핵심 영역은 경쟁 우위를 주고, 지원 영역은 핵심을 돕고, 일반 영역은 흔해서 외부에 맡길 수 있습니다.

상세 정보

작성자의 원본 설명

Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "where should I draw service boundaries?", "identify bounded contexts", "classify subdomains", "DDD analysis", or analyzing domain cohesion. Do NOT use for grouping existing components into domains (use domain-identification-grouping) or dependency analysis (use coupling-analysis).

repo: tech-leads-club/agent-skills

인기도

GitHub 스타
7.1k
순위
#13504
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬