بنقرة واحدة
discover-init
Initialize project discovery — scan repo, gather intent, create initial tickets
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Initialize project discovery — scan repo, gather intent, create initial tickets
التثبيت باستخدام 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
Loop through open discovery tickets until queue is empty
Scan repository for structure and code ownership signals
Intent-driven discovery — recall existing knowledge or create new investigation tickets
Extract learnings from Claude Code session history.
| name | discover-init |
| description | Initialize project discovery — scan repo, gather intent, create initial tickets |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | ["Bash","Read","Write","AskUserQuestion","Agent"] |
| argument-hint | [optional initial intent] |
Initialize the .discovery/ directory and create initial tickets based on repo scan and user intent.
${CLAUDE_PLUGIN_ROOT}/scripts/discover.sh${CLAUDE_PLUGIN_ROOT}/resources/docnav-probe.md${CLAUDE_PLUGIN_ROOT}/resources/scan-output.md${CLAUDE_PLUGIN_ROOT}/resources/ticket-template.mdbash "${CLAUDE_PLUGIN_ROOT}/scripts/has-docnav.sh"
Report to user:
found → "Docnav detected — Tier 2 search available"not found → "Docnav not detected — using Tier 1 search"Spawn the scan agent:
Agent({
description: "Run repository scan",
subagent_type: "discover-scan",
prompt: "Scan this repository and return a summary."
})
The agent returns a 3-5 line summary. Display it to the user.
Use AskUserQuestion to understand the user's goals:
Question 1 — Role: "What's your role with this project?"
Question 2 — Depth: "How deep do you need to go?"
Question 3 — Scope: "Any particular area of focus?"
Question 4 — Motivation: "What's driving this investigation?"
If the user provided an initial intent argument, incorporate it — they may have already answered some questions.
Based on scan results + intent, propose an initial ticket set. Typical pattern:
.)Read TICKET_TEMPLATE for frontmatter and body structure.
Present proposals with:
Ask user to confirm, modify, or reject each.
For each approved ticket:
bash "$DISCOVER" ticket new --title "<title>" --scope "<scope>" --intention "<intention>" --tag <tags>
Report created tickets with their IDs.
Use AskUserQuestion:
"How should .discovery/ be handled in git?"
Act on the choice:
.discovery/ is NOT in .gitignore.discovery/ to .gitignore if not present.discovery/ if absent.discovery/ exists and suggest /discover-init if not