agentleFS
KaratussKaratuss/bstack/skills/architect/SKILL.md

architect

Skill0 starsChanged 7 months agoMITView on GitHub

DDD·모듈 경계·레이어 설계 리뷰. 구조 개선·의존성 방향·Bounded Context 논의 시 사용.

174 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 14 projects that use this

  • jaydubya818Skill

    figure-it-out

    Use when novel or multi-phase work needs an auditable workflow and no narrower playbook fits.

    Also in 55 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 29 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 20 projects that use this

  • +6 more from naman10parikh

The file

Files
SKILL.md

/architect — 설계 리뷰 스킬

DDD, 모듈 경계, 레이어 설계, Bounded Context 관련 설계 결정을 검토하고 제안한다.

When to use

  • 레이어 구조 또는 모듈 분리 방향 논의
  • Bounded Context 또는 도메인 경계 설정
  • 새 기능의 위치(어느 레이어/모듈에 둘지) 결정
  • 의존성 방향이 올바른지 검토 요청

시작 전 필수

  1. docs/ARCHITECTURE.md 읽기
  2. docs/LAYER_RULES.md 읽기
  3. 관련 docs/specs/*.md 읽기 (있는 경우)
  4. 현재 패키지 구조 파악 (src/main/java/** glob)

설계 원칙

레이어 의존성 (단방향)

Controller → Service → Domain
Controller → Service → Repository(interface)
Domain (Entity, VO, DomainEvent) — 외부 의존 없음
Infrastructure (Repository 구현) → Domain

금지 패턴

  • Controller가 Repository를 직접 호출
  • 두 Service가 서로를 직접 의존 (순환)
  • 공통 유틸리티에 비즈니스 로직 숨기기
  • @Component를 도메인 클래스에 사용

Bounded Context 가이드

  • 각 Context는 자신의 도메인 객체를 소유
  • Context 간 통신은 이벤트 또는 명시적 API
  • 공유 커널은 최소화, 변경 시 양측 동의 필요
  • Anti-Corruption Layer로 외부 모델 격리

패키지 구조 (Hexagonal — 권장)

상세 구조·역할 명명·레퍼런스 레포 → docs/NAMING.md.

com.example.myapp
├── domain/          # 의존성 0. 순수 Java. Spring 어노테이션 불가.
│   └── order/
│       ├── Order.java              # AggregateRoot
│       ├── OrderRepository.java    # OutputPort (interface, domain에 위치)
│       └── OrderCreatedEvent.java  # DomainEvent
├── application/     # domain 만 의존. UseCase 정의 + 구현.
│   └── order/
│       ├── port/in/CreateOrderUseCase.java   # InputPort interface
│       ├── port/out/LoadOrderPort.java        # OutputPort interface
│       ├── CreateOrderCommand.java            # record
│       └── service/CreateOrderService.java   # UseCase 구현 (package-private)
├── infrastructure/  # Spring + JPA. Adapter 구현.
│   └── order/
│       ├── OrderRepositoryAdapter.java        # domain port 구현
│       └── OrderEntity.java                   # JPA @Entity (domain Entity 아님)
└── interfaces/      # HTTP/gRPC 어댑터.
    └── api/order/
        ├── OrderController.java               # InputPort 주입
        └── CreateOrderRequest.java            # API DTO

레퍼런스: thombergs/buckpal · ddd-by-examples/library

출력 형식

  1. 현재 구조 분석: 실제 코드 기반, 위반 사항 명시
  2. 제안: 구체적인 이동/분리 방향, 이유 포함
  3. 마이그레이션 순서: 점진적 변경 가능한 단계 제시
  4. ArchUnit 검증: 변경 후 /arch-guard로 제약 코드화 권장

완료 후

설계 결정 사항은 docs/ARCHITECTURE.md 또는 docs/specs/ADR-NNN.md에 기록. /spec 스킬로 연계.


References

  • docs/NAMING.md — DDD/Clean Architecture 역할 명명 + 패키지 구조 + 레퍼런스 레포
  • docs/STYLE_GUIDE.md — 원칙 (Karpathy 4 + 동료 협업 + 정량)
  • docs/RED_FLAGS.md — 안티패턴
  • docs/LAYER_RULES.md — 레이어 규칙

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.