본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)81k · #1615

ddd-context

하는 일

이 스킬은 바운디드 컨텍스트, 즉 코드베이스 안의 독립된 업무 영역을 위한 표준 폴더 구조를 만듭니다. 큰 앱을 명확한 부분으로 나누는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓코드베이스에서 새 업무 영역을 시작할 때.
  • ✓큰 애플리케이션을 경계가 분명한 여러 부분으로 나눌 때.
  • ✓새 모듈에 도메인, 애플리케이션, 인프라를 같은 방식으로 나누고 싶을 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ddd/skills/ddd-context/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ddd/skills/ddd-context/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분.

작동 방식

스킬은 이름이 케밥 케이스인지, 이미 쓰이지 않는지 확인한 뒤 도메인, 애플리케이션, 인프라 계층의 폴더와 인덱스 파일을 만듭니다. 또한 새 영역을 도메인 모델 저장소에 기록합니다.

기술 내용 (원본 SKILL.md)

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

Create a bounded context directory structure for the given context name.

Parse $ARGUMENTS as the context name (kebab-case). If empty, list existing contexts.

Steps

  1. Validate name: Ensure the context name is kebab-case and does not already exist under src/.

  2. Create directory structure:

    src/<context-name>/
      domain/
        entities/
        value-objects/
        events/
        services/
        repositories/
      application/
      infrastructure/
    
  3. Generate index files:

    • src/<context-name>/domain/entities/index.ts -- barrel export for entities
    • src/<context-name>/domain/value-objects/index.ts -- barrel export for value objects
    • src/<context-name>/domain/events/index.ts -- barrel export for domain events
    • src/<context-name>/domain/services/index.ts -- barrel export for domain services
    • src/<context-name>/domain/repositories/index.ts -- barrel export for repository interfaces
    • src/<context-name>/domain/index.ts -- re-export all domain submodules
    • src/<context-name>/application/index.ts -- barrel export for application services
    • src/<context-name>/infrastructure/index.ts -- barrel export for infrastructure implementations
    • src/<context-name>/index.ts -- public API of the bounded context (re-exports domain and application only, NOT infrastructure)
  4. Store in domain model graph:

    mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store({ key: "domain/context-<context-name>", value: "Bounded context <context-name> (parent: domain)", tier: "semantic" })
    mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge({ sourceId: "entity:domain", targetId: "entity:context-<context-name>", relation: "contains" })
    mcp__plugin_ruflo-core_ruflo__memory_store({ key: "ddd-context-<context-name>", value: "Created bounded context", namespace: "tasks" })
    
  5. Report: Confirm the context was created and list the generated files.

자주 묻는 질문

어떤 이름 형식을 써야 하나요?

billing-invoices처럼 케밥 케이스를 쓰고, 같은 이름의 폴더가 없는지 확인하세요.

공개 인덱스는 무엇을 노출하나요?

도메인과 애플리케이션 계층만 다시 내보내며, 인프라 계층은 노출하지 않습니다.

이름 없이 실행하면 어떻게 되나요?

새 컨텍스트를 만드는 대신 기존 컨텍스트 목록을 보여 줍니다.

상세 정보

작성자의 원본 설명

Create and manage a DDD bounded context with standard directory structure. Use when starting a new subdomain, splitting a monolith into bounded contexts, or scaffolding the domain/application/infrastructure layout for a fresh module.

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1615
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬