From deep-work
Creates detailed Markdown implementation plans from research, structuring TDD slices with files, tests, risks, dependencies, trade-offs, and rollback strategies for existing or zero-base projects.
npx claudepluginhub sungmin-cho/claude-deep-suite --plugin deep-workThis skill uses the workspace's default tool permissions.
1. Session ID 결정
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Provides process, architecture, review, hiring, and testing guidelines for engineering teams relying on AI code generation.
.claude/deep-work.{SESSION_ID}.mdwork_dir, project_type, team_mode 추출 → $WORK_DIR 설정 (기본: deep-work)current_phase가 "plan"이고 research_complete가 true인지 확인plan_started_at 기록 (ISO timestamp)$WORK_DIR/research.md — 주 참조$WORK_DIR/research-architecture.md$WORK_DIR/research-patterns.md$WORK_DIR/research-dependencies.md$WORK_DIR/기존 plan.md → $WORK_DIR/plan.v{iteration_count}.md로 복사
Read("skills/shared/references/plan-templates.md") → 적합 템플릿 확인 → 사용자에게 제안
기존 plan.md에 > [!NOTE], <!-- HUMAN: -->, inline comment가 있으면 반영
상세 작성 가이드: Read("skills/shared/references/planning-guide.md")
Existing codebase (project_type: existing):
# Implementation Plan: [Task Title]
## Plan Summary
- 접근법 / 변경 범위 / 리스크 수준 / 핵심 결정
## Overview
## Architecture Decision
- Research 근거: [RF-NNN], [RA-NNN] 태그 연결
## Files to Modify
- 각 파일: Action, Changes, Code sketch (S/M/L 티어링), Line references, Reason, Risk
## Boundary: Files NOT to Modify (table)
## Execution Order
## Dependency Analysis
## Trade-offs (table)
## Rollback Strategy
## Slice Checklist
## Open Questions
Zero-base (project_type: zero-base):
# Implementation Plan: [Task Title] (Zero-Base)
## Plan Summary
## Overview / Architecture Decision
## Project Structure (디렉토리 트리)
## Files to Create
## Boundary: Files NOT to Modify
## Setup Instructions
## Slice Checklist
## Open Questions
각 slice는 자기 완결적 TDD 단위:
- [ ] SLICE-NNN: [Goal]
- files: [file1, file2]
- failing_test: [test file — description]
- verification_cmd: [command]
- expected_output: [success output]
- spec_checklist: [req1, req2]
- contract: [testable criterion 1, criterion 2]
- acceptance_threshold: all
- size: S/M/L
- steps: (M/L 필수, S 선택)
Size별 상세도:
금지 패턴 — 최종 plan.md에 아래가 남으면 plan 실패:
TBD, TODO, FIXME, PLACEHOLDER, implement later,
Add appropriate error handling (구체적 케이스 없이),
Similar to SLICE-N (세부 반복 필수), ..., [etc.],
빈 섹션, 정의되지 않은 타입/함수 참조
해결 불가 시 → Open Questions로 이동.
M/L/XL slice에 contract 필드 필수. Agent(contract-validator)로 검증:
이전 버전과 구조적 비교 → $WORK_DIR/plan-diff.md 작성:
추가/수정/삭제 태스크, 파일 영향 변경, 아키텍처 결정 변경, 리스크 수준 변경
Read("skills/shared/references/phase-review-gate.md") — 프로토콜 실행:
$WORK_DIR/plan.md사용자 확인 결과:
수정 규모별 re-review: 3+ 섹션 → full, 1-2 섹션 → structural only, <50줄 → skip. 최대 2회.
review_state: completedphase_review.plan + review_results.plan 업데이트plan_completed_at: ISO timestampNOTE: current_phase를 변경하지 않는다. Orchestrator가 리뷰+승인 후 변경.
구현 계획이 작성되었습니다!
계획서: $WORK_DIR/plan.md
변경 파일: N개 / 신규: N개 / 태스크: N개 / 위험도: Low/Medium/High
계획이 준비되었습니다. 리뷰해주세요.
bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/notify.sh "$STATE_FILE" "plan" "completed" "Plan 작성 완료" 2>/dev/null || true