بنقرة واحدة
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.