Help us improve
Share bugs, ideas, or general feedback.
From wigtn-coding
Manages shared context across team builds using 3-layer architecture: Auto Memory (MEMORY.md), SHARED_CONTEXT files, TaskCreate tracking. Defines templates, paths, write permissions, and update rules for collaborative development.
npx claudepluginhub wigtn/wigtn-plugins-with-claude-code --plugin wigtn-codingHow this skill is triggered — by the user, by Claude, or both
Slash command
/wigtn-coding:team-memory-protocolThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
팀 기반 병렬 빌드에서 팀 간 데이터 공유를 위한 3계층 메모리 관리 프로토콜입니다.
Use when a task benefits from multiple Claude instances collaborating with peer-to-peer messaging - parallel research, multi-module features, cross-layer changes, or competing hypothesis debugging. Not for simple independent tasks (use parallel-execution) or sequential tasks (use delegated-execution).
Builds and maintains a shared mental model document (_workspace/SMM.md) aligning agent team members on terminology, interfaces, goals, and task boundaries. Use when starting a team, resolving misaligned outputs, or agreeing on shared conventions across code, research, writing, or creative tasks.
Share bugs, ideas, or general feedback.
팀 기반 병렬 빌드에서 팀 간 데이터 공유를 위한 3계층 메모리 관리 프로토콜입니다.
┌─────────────────────────────────────────────────────────────┐
│ 3계층 공유 메모리 구조 │
├─────────────────────────────────────────────────────────────┤
│ │
│ Layer 1: Auto Memory (MEMORY.md) │
│ ├── 지속성: 세션 간 영구 지속 │
│ ├── 용도: 프로젝트 컨벤션, 패턴, 아키텍처 결정 │
│ ├── 읽기: 빌드 시작 시 (모든 팀) │
│ └── 쓰기: 빌드 완료 후 (Coordinator만) │
│ │
│ Layer 2: SHARED_CONTEXT (파일 기반) │
│ ├── 지속성: 빌드 세션 동안 (완료 후 참조용 유지) │
│ ├── 용도: API 계약, 공유 타입, 환경변수, 진행 상태 │
│ ├── 읽기: 빌드 중 (모든 팀) │
│ └── 쓰기: Coordinator + Backend 팀만 │
│ │
│ Layer 3: TaskCreate (대화 내 추적) │
│ ├── 지속성: 대화 세션 동안 │
│ ├── 용도: 팀별 진행 추적, 의존성 관리 │
│ ├── 읽기/쓰기: Coordinator │
│ └── metadata: team, files, phase │
│ │
└─────────────────────────────────────────────────────────────┘
docs/shared/SHARED_CONTEXT_{feature_name}.md
# SHARED_CONTEXT: {feature_name}
> team-build-coordinator 자동 생성. 팀 간 조율용.
> 생성일: {timestamp}
> 기능: {feature_name}
## API Contract
| Method | Path | Request Type | Response Type | Owner |
|--------|------|-------------|--------------|-------|
## Shared Types
<!-- TypeScript interfaces/types 공유 -->
<!-- Backend 팀이 정의, 다른 팀이 import하여 사용 -->
## Environment Variables
| Variable | Required By | Description |
|----------|------------|-------------|
## Integration Points
| From | To | Type | Description |
|------|-----|------|-------------|
## Team Progress
| Team | Status | Tasks | Completion | Last Update |
|------|--------|-------|------------|-------------|
write_permissions:
coordinator:
sections: ["Team Progress", "Integration Points"]
timing: "Phase 0 생성, Phase 2 중 업데이트, Phase 3 최종 확인"
backend_team:
sections: ["API Contract", "Shared Types", "Environment Variables"]
timing: "Phase 1 (Foundation) + Phase 2 (Parallel)"
rules:
- "API 엔드포인트 추가/변경 시 API Contract 업데이트"
- "공유 타입 생성 시 Shared Types에 기록"
- "환경 변수 추가 시 Environment Variables에 기록"
other_teams:
sections: []
access: "읽기 전용"
rules:
- "API Contract을 참조하여 API 호출 구현"
- "Shared Types를 import하여 타입 일관성 유지"
- "Environment Variables를 참조하여 설정 파일 작성"
conflict_prevention:
strategy: "섹션별 소유권"
rules:
- "각 섹션은 하나의 소유자만 수정 가능"
- "API Contract: Backend 팀 소유"
- "Shared Types: Backend 팀 소유"
- "Team Progress: Coordinator 소유"
- "Integration Points: Coordinator 소유"
fallback:
- "충돌 감지 시 Coordinator가 수동 병합"
- "Backend 팀의 API 정의가 우선"
task_naming:
format: "[{TEAM_PREFIX}-{NNN}] {description}"
prefixes:
BACKEND: "BE"
FRONTEND: "FE"
AI_SERVER: "AI"
OPS: "OP"
examples:
- "[BE-001] prisma/schema.prisma - User 모델 추가"
- "[FE-001] src/components/LoginForm.tsx - 로그인 폼"
- "[AI-001] src/ai/transcribe.ts - STT 엔드포인트"
- "[OP-001] Dockerfile - 멀티스테이지 빌드"
metadata_schema:
team: "BACKEND | FRONTEND | AI_SERVER | OPS"
files:
- "file1.ts"
- "file2.ts"
phase: "foundation | parallel | integration | verification"
depends_on: ["BE-001"] # 다른 팀 Task 의존성
dependency_rules:
- description: "Frontend → Backend 스키마 의존"
from: "FE-*"
to: "BE-001 (스키마)"
type: "blockedBy"
resolution: "Phase 1에서 Backend 스키마 선행"
- description: "AI Server → Backend API 계약 참조"
from: "AI-*"
to: "BE-* (API 계약)"
type: "soft_dependency"
resolution: "SHARED_CONTEXT의 API Contract 참조"
- description: "Ops → 모든 팀 완료 후 최종 설정"
from: "OP-* (CI/CD)"
to: "BE-*, FE-*"
type: "soft_dependency"
resolution: "환경 변수 목록만 참조, 코드 독립"
timing:
read: "Phase 0 (빌드 시작)"
write: "Phase 4 검증 통과 후"
skip: "검증 실패 시 업데이트하지 않음"
update_rules:
add_items:
- "새로 확립된 아키텍처 패턴 (예: Repository pattern)"
- "성공한 팀 간 API 계약 구조"
- "기술 스택 결정사항 (새 라이브러리 도입 등)"
- "발견된 프로젝트 컨벤션 (네이밍, 폴더 구조)"
skip_items:
- "세션별 임시 데이터 (진행률, 타임스탬프)"
- "SHARED_CONTEXT의 실시간 상태"
- "빌드 로그, 에러 트레이스"
- "이미 MEMORY.md에 있는 정보"
format:
- "기존 MEMORY.md 구조를 유지"
- "200줄 제한 준수"
- "중복 항목 추가하지 않음"
- "구체적이고 재사용 가능한 정보만 기록"
## 빌드 전 MEMORY.md:
- Project uses Next.js 14 + Prisma
## 빌드 후 추가:
- Auth: JWT + bcrypt, Repository pattern
- API: RESTful, /api/v1/ prefix convention
- Shared types: src/types/shared.ts for cross-module types