원클릭으로
discover-scan
Scan repository for structure and code ownership signals
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scan repository for structure and code ownership signals
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
This skill should be used when the user asks to "implement X", "add X feature", "create X", "refactor X", "fix X bug", "develop this story", "work on story", or needs guidance on development work - both ad-hoc tasks and story-based workflows with style guide compliance.
Expand a ticket by linking or creating children for subsystems found in findings
Initialize project discovery — scan repo, gather intent, create initial tickets
Loop through open discovery tickets until queue is empty
Intent-driven discovery — recall existing knowledge or create new investigation tickets
Extract learnings from Claude Code session history.
| name | discover-scan |
| description | Scan repository for structure and code ownership signals |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | ["Bash","Read"] |
Scan the current repository and write .discovery/scan.json with raw signals about structure and code ownership.
${CLAUDE_PLUGIN_ROOT}/resources/scan-output.mdbash "${CLAUDE_PLUGIN_ROOT}/scripts/discover.sh" scan repo
This writes structural signals: extension counts, top-level directory inventory, marker files present.
Check if this is a git repository with history:
git rev-parse --is-shallow-repository 2>/dev/null
true): skip churn scan, note "Churn analysis skipped: shallow clone lacks history"bash "${CLAUDE_PLUGIN_ROOT}/scripts/discover.sh" scan churn
This adds code ownership signals: per-file churn, per-author lines changed, per-directory ownership shares, recency splits.
Read .discovery/scan.json and examine the artifacts array. For each artifact found:
Documentation (docs, readme):
Helm/K8s:
Playbooks/Runbooks:
Scripts/Tools:
List top-level directories:
ls -d */ | head -20
For each directory not already categorized by scan.json artifacts:
Add findings to the summary — the CLI catches common patterns, you catch project-specific ones.
Read SCAN_OUTPUT for structure reference. Synthesize a summary covering:
Report which files were written.
scan.json.bash "${CLAUDE_PLUGIN_ROOT}/scripts/discover.sh" scan schema to see the annotated JSON structure with jq examples.