deep-insight
Code-metrics, complexity and dependency report for a file/directory/glob — analysis only, never modifies code.
Skill by Sungmin-Cho
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sungmin-cho-deep-insight
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/deep-insight
What's inside
- Skill name
deep-insight- Description
- Code-metrics, complexity and dependency report for a file/directory/glob — analysis only, never modifies code. Triggers on `/deep-insight`, "code insight", "complexity report", "code metrics", "메트릭 분석", "복잡도 리포트", "의존성 분석", or `/deep-test` running it as the Insight Tier (never blocks).
- License
- MIT
- Instructions
- 281 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
## Inputs (skill args)
| 인자 | 의미 |
|---|---|
| (없음) | Auto-detect scope: 활성 세션의 changed files, 없으면 현재 디렉터리 |
| `<target>` | File path / directory / glob pattern |
빈 args / 매칭되지 않는 토큰 → 본문의 default 분기로 진입.
## Prerequisites
> **Quality Gate** — `/deep-test`가 Insight Tier로 자동 실행합니다 (차단 없음). 특정 대상의 메트릭/복잡도/의존성 분석이 필요할 때 직접 사용하세요.
> Standalone: `/deep-insight [target]`
# Code Insight Analysis
You are performing a **Code Insight Analysis** — measuring code metrics, complexity indicators, and dependency patterns to provide informational reports. This is the **Insight tier** of the 3-tier Quality Gate system.
## Critical Constraints
- **DO NOT modify any code files.** This is an analysis-only operation.
- **Read, analyze, and report findings.**
- **Insight results NEVER block the workflow.** They are purely informational.
- **Save analysis results to file when in workflow mode.**
## Instructions
### 1. Determine operating mode
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):
- Read `work_dir` from the state file
- Set `WORK_DIR` to the value of `work_dir`
- Read `$WORK_DIR/plan.md` to extract the list of files (from "Files to Modify" section)
- Cross-reference with actual changes: `git diff --name-only` from baseline
- If `$WORK_DIR/file-changes.log` exists, use it for additional file tracking data
- Analysis scope: files listed in plan.md that were actually modified
**Standalone Mode** (no active session):
- If `$ARGUMENTS` is provided: use as target (file path, directory, or glob pattern)
- If `$ARGUMENTS` is empty: detect scope automatically:
1. Check `git diff --name-only HEAD~1` for recently changed files
2. If not a git repo or no changes, use current directory
- Analysis scope: all code files in detected scope (exclude node_modules, .git, __pycache__, build, dist, .next, vendor, etc.)
### 2. Collect analysis targets
Gather the list of files to analyze. For each file:
- Skip files that are clearly not code (README.md, .json config, .env, .lock, etc.)
- Skip files smaller than 3 lines (trivial)
- Skip auto-generated files (migrations, lock files, bundled output, .min.js)
If the total number of files exceeds 50, prioritize:
1. Files with the most lines of code
2. Files modified most recently
3. Files explicitly listed in plan.md (workflow mode)
Display progress:
```
ℹ️ Insight 분석 대상: [N]개 파일
- src/auth/service.ts (245 lines)
- src/models/user.ts (180 lines)
- ...
```
If exceeding 50 files:
```
⚠️ 분석 대상이 50개를 초과합니다. 상위 50개 파일만 분석합니다.
```
### 3. Run built-in analyses
Execute 4 categories of analysis. Each analysis should be resilient — if one fails, continue with the rest.
#### 3A. File Metrics
For each target file, measure:
- **Lines of code** (excluding blank lines and comment-only lines)
- **Function/method count**: Use `grep -c` patterns appropriate for the language:
- JS/TS: `function `, `=> {`, method definitions in classes
- Python: `def `
- Go: `func `
- Rust: `fn `
- Java/Kotlin: method patterns
- Other: best-effort grep
- **Export count** (JS/TS: `export `, Python: `__all__`, Go: uppercase functions)
Generate summary table:
```markdown
## A. 파일 메트릭
| 파일 | 코드 줄 수 | 함수 수 | Export 수 |
|------|-----------|---------|----------|
| src/auth.ts | 245 | 12 | 5 |
| src/db.ts | 180 | 8 | 3 |
**합계**: 코드 425줄, 함수 20개, Export 8개
```
#### 3B. Complexity Indicators
For each target file, check:
- **Long files**: files exceeding 300 lines → flag with line count
- **Long functions**: functions exceeding 50 lines → identify function name and line range
- Use heuristic: find function declarations, then count lines until matching closing brace/dedent
- **Deep nesting**: maximum indentation depth (count leading spaces/tabs)
- Threshold: > 4 levels of nesting
Generate findings:
```markdown
## B. 복잡도 지표
### 대형 파일 (300줄 초과)From Sungmin-Cho/deep-work, MIT.
More from Sungmin-Cho/deep-work
- 0.630score
deep-assumptions
Sungmin-Cho
Assumption health report — per-assumption Wilson Score confidence, verdict (justified / loosen / drop), model-aware split, decay history.
SkillAFreshness: A★ 10Claude Code +9 - 0.595score
deep-status
Sungmin-Cho
Current deep-work session status — dashboard, badge, tree, or routing to the receipts / history / report / assumptions sub-pages.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-finish
Sungmin-Cho
Use when finishing an authorized deep-work session with keep, PR, merge or discard and a durable receipt.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-resume
Sungmin-Cho
Use when resuming an interrupted or parked deep-work session from its current phase.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-debug
Sungmin-Cho
Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-mutation-test
Sungmin-Cho
Mutation testing on changed files to verify AI-generated test quality, with an auto-fix loop that returns to Implement for survived mutants.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
drift-check
Sungmin-Cho
Plan-alignment verification — approved plan vs actual implementation, reporting unimplemented items, out-of-scope changes and design drift.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-sensor-scan
Sungmin-Cho
Run computational sensors (linter, type checker, coverage) inside or outside a deep-work session.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-receipt
Sungmin-Cho
View, dashboard, or export deep-work slice receipts (`receipts/SLICE-*.json`).
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-history
Sungmin-Cho
Cross-session deep-work history — completed sessions, TDD compliance rates, model usage, aggregate trend indicators.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-work-workflow
Sungmin-Cho
High-level overview of the deep-work workflow (Brainstorm → Research → Spec → Plan → Implement → Test → Integrate).
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
solid-review
Sungmin-Cho
SOLID design-principles review (SRP / OCP / LSP / ISP / DIP) on a file/directory/glob.
SkillBFreshness: B★ 10Claude Code +9
Signals
- Stars
- 10
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- Aug 13, 2026 (2 months ago)
- Last release
- Sep 20, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Sungmin-Cho/deep-work
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Sungmin-Cho
- 0.630score
deep-assumptions
Sungmin-Cho
Assumption health report — per-assumption Wilson Score confidence, verdict (justified / loosen / drop), model-aware split, decay history.
SkillAFreshness: A★ 10Claude Code +9 - 0.595score
deep-status
Sungmin-Cho
Current deep-work session status — dashboard, badge, tree, or routing to the receipts / history / report / assumptions sub-pages.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-resume
Sungmin-Cho
Use when resuming an interrupted or parked deep-work session from its current phase.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-finish
Sungmin-Cho
Use when finishing an authorized deep-work session with keep, PR, merge or discard and a durable receipt.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-debug
Sungmin-Cho
Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-mutation-test
Sungmin-Cho
Mutation testing on changed files to verify AI-generated test quality, with an auto-fix loop that returns to Implement for survived mutants.
SkillBFreshness: B★ 10Claude Code +9
Cite this page
deep-insight skill. Agent Mart. https://agentmart.dev/skills/sungmin-cho-deep-insight (last updated 2026-10-24)