/deep-work:solid-reviewfrom deep-work
Reviews code against SOLID design principles (SRP, OCP, LSP, ISP, DIP) on files, directories, or glob patterns. Read-only analysis with workflow and standalone modes.
Ships in deep-work. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| 인자 | 의미 |
|---|---|
| (없음) | Auto-detect scope: 활성 세션의 changed files, 없으면 현재 디렉터리 |
<target> | File path / directory / glob pattern |
빈 args / 매칭되지 않는 토큰 → 본문의 default 분기로 진입.
Quality Gate —
/deep-test가 Advisory Gate로 자동 실행합니다. 특정 파일/디렉터리에 대한 독립 SOLID 검증이 필요할 때 직접 사용하세요. Standalone:/solid-review [target]
You are performing a SOLID Design Review — analyzing code against the 5 SOLID design principles to evaluate design quality and suggest improvements.
Read(${CLAUDE_PLUGIN_ROOT}/skills/shared/references/user-language.md) and follow it.
Read(${CLAUDE_PLUGIN_ROOT}/skills/deep-resume/references/session-detection.md) and apply only its Reusable session-state resolution section to resolve $STATE_FILE; retain this skill's own no-session and standalone-mode behavior.
Check if $STATE_FILE exists and has an active session (current_phase is not idle and not empty).
Workflow Mode (active deep-work session):
work_dir from the state fileWORK_DIR to the value of work_dir$WORK_DIR/plan.md to extract the list of files to review (from "Files to Modify" section)$WORK_DIR/research.md for architectural context (Executive Summary section only)Standalone Mode (no active session):
$ARGUMENTS is provided: use as target (file path, directory, or glob pattern)$ARGUMENTS is empty: detect scope automatically:
git diff --name-only HEAD~1 for recently changed filesGather the list of files to review. For each file:
If the total number of files exceeds 20, prioritize:
Display progress:
SOLID 리뷰 대상: [N]개 파일
- src/auth/service.ts (245 lines)
- src/models/user.ts (180 lines)
- ...
For each file (or logical group of related files), evaluate against all 5 SOLID principles.
Read ${CLAUDE_PLUGIN_ROOT}/skills/shared/references/solid-guide.md for the detailed checklist.
Analysis approach:
For each principle, assign one of:
### [filename] ([N] lines)
| 원칙 | 상태 | 요약 |
|------|------|------|
| SRP | [status] | [1-line summary] |
| OCP | [status] | [1-line summary] |
| LSP | [status] | [N/A or finding] |
| ISP | [status] | [1-line summary] |
| DIP | [status] | [1-line summary] |
## 종합 SOLID 스코어카드
| 원칙 | 전체 상태 | 위반 파일 수 | 핵심 발견 |
|------|----------|-------------|----------|
| SRP | [status] | N/M | [most common issue] |
| OCP | [status] | N/M | — |
| LSP | [status] | N/M | — |
| ISP | [status] | N/M | [most common issue] |
| DIP | [status] | N/M | [most common issue] |
**총점**: N/5 원칙 준수
**판정**: 개선 권장 (Advisory — 워크플로우 차단 없음)
For each violation or improvement finding, provide a concrete refactoring suggestion. Limit to top 5 suggestions sorted by impact:
## 리팩토링 제안
### 1. [SRP] PlayerController.cs — 책임 분리
**현재**: 이동, 입력, UI 업데이트가 한 클래스에 혼재
**제안**: PlayerMover, PlayerInput, PlayerUI로 분리
**우선순위**: 높음
### 2. [DIP] AuthService.ts — 추상화 도입
**현재**: `new DatabaseClient()` 직접 생성
**제안**: `IDatabaseClient` 인터페이스 추출, 생성자 주입
**우선순위**: 중간
If running in workflow mode and clear SOLID violations were found, read ${CLAUDE_PLUGIN_ROOT}/skills/shared/references/solid-prompt-guide.md and suggest how plan.md could be improved:
## AI 프롬프트 개선 제안
다음 plan 작성 시 아래 조건을 추가하면 SOLID 위반을 사전에 방지할 수 있습니다:
- "각 클래스는 단일 책임만 담당하도록 분리할 것 (SRP)"
- "새 기능 추가 시 기존 코드 수정 없이 확장 가능한 구조로 설계할 것 (OCP)"
- "구체 클래스 대신 인터페이스에 의존하도록 구현할 것 (DIP)"
Workflow Mode:
$WORK_DIR/solid-review.mdStandalone Mode:
./solid-review.mdIf called as a Quality Gate during Test phase:
quality-gates.md as Advisory entryIf called outside the Test phase:
What SKILL.md sets; muted values are Claude Code's defaults
deep-work@claude-deep-suite is listed by sungmin-cho/deep-suite — review the source before installing
npx claudepluginhub sungmin-cho/deep-suite --plugin deep-work27 skills in this plugin
/deep-assumptionsAssumption health report — per-assumption Wilson Score confidence, verdict (justified / loosen / drop), model-aware split, decay history. Triggers on `/deep-assumptions`, `/deep-status --assumptions`, "assumption health", "rule justification", "loosen enforcement", "어썸션 헬스", "규칙 정당화", "가정 검증". Sub-page of the deep-status hub./deep-brainstormUse when clarifying the goal, boundaries and approach for a deep-work task./deep-cleanupScan and clean up stale deep-work git worktrees (`dw/*` branches) plus fork worktrees, and prune idle fork sessions from the registry. Triggers on `/deep-cleanup`, "clean worktrees", "stale worktree", "worktree 정리", "fork 정리", "deep-work 정리"./deep-debugDebug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation. Triggers on `/deep-debug`, "systematic debug", "root cause investigation", "디버그 모드", "근본 원인 분석", `verification_cmd` 실패 시 자동 진입, or "fix this"./deep-finishUse when finishing an authorized deep-work session with keep, PR, merge or discard and a durable receipt./deep-forkCreate an isolated deep-work branch for a parallel slice, alternative experiment, independent review, recovery, or security isolation. Same-goal context continuation is not a fork reason.Other plugins' skills for the same job