mk:scout
Parallel subagent sweep of the repository returning a file map and architecture fingerprint. NOT for mk:research.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 16
- Forks
- 3
01 前言 Front Matter
- name
- mk:scout
- owner
- research
- source
- local
- status
- active
- meowkit
- { "requires": { "commands": [ "Agent", "Grep", "Glob" ], "surfaces": [ "skills" ] }, "providers": { "include": [ "claude-code" ] }, "portability": "provider-only", "context_cost": "medium" }
- runtime
- claude-code
- keywords
- [ "scout", "codebase-search", "parallel-explore", "file-mapping", "architecture-fingerprint", "routing-suggestions" ]
- criticality
- medium
- description
- Parallel subagent sweep of the repository returning a file map and architecture fingerprint. NOT for mk:research.
- when_to_use
- Starting work in unfamiliar directories and need to know where things live.
- context_cost
- medium
- user-invocable
- true
02 资源文件 3
- 参考文档references/report-and-handoff.md3.8 KB
- 参考文档references/scouting-strategy.md7.7 KB
- 参考文档references/search-scope.md2.8 KB
03 SKILL.md 正文
Scout
Fast, parallel codebase exploration using Explore subagents. Divides the project into segments, searches them simultaneously, and returns a consolidated report.
When to Use
- Starting a feature that spans multiple directories
- User asks to "find", "locate", or "search for" files
- Before planning (Phase 1) on complex tasks — understand what exists first
- Debugging session requiring file relationship understanding
- User asks about project structure or where functionality lives
Workflow Integration
Operates in Phase 0 (Orient) and Phase 1 (Plan).
- Orchestrator invokes scout before planner on COMPLEX tasks
- Planner may invoke scout when the technical approach needs codebase understanding
- Developer may invoke scout when implementation touches unfamiliar areas
Quick Start
/mk:scout authentication → find all auth-related files
/mk:scout database migrations → find DB migration files
/mk:scout [any search target] → parallel search across codebase
Scout Process
- Analyze — parse user prompt, identify search targets (keywords, file types)
- Determine scale — calculate SCALE using formula in
references/scouting-strategy.md - Apply search scope — include Tier 1 always, Tier 2 if task-relevant, exclude Tier 3 always (see
references/search-scope.md) - Divide directories — assign each Explore agent a distinct scope (no overlap)
- Spawn agents — all in a single message for parallel execution (see
references/scouting-strategy.md) - Collect results — deduplicate, merge, note gaps/timeouts
- Build report — fill structured template (see
references/report-and-handoff.md) - Execute handoff — route to next agent per handoff protocol
References
Load these only when executing the corresponding step — not upfront.
| Reference | When to load | What it contains |
|---|---|---|
| search-scope.md | Step 3 — applying scope rules | Tier 1/2/3 directory lists, justification, exclusion patterns |
| scouting-strategy.md | Steps 2, 4, 5 — spawning agents | SCALE formula, directory division rules, Explore agent prompt template, parallel execution, file reading patterns |
| report-and-handoff.md | Steps 7, 8 — writing output | Report template with all sections, handoff protocol per phase, memory integration, context budget |
Constraints
- Read-only — scout NEVER modifies files
- Maximum 6 parallel agents — beyond this, aggregation cost exceeds benefit
- 3-minute timeout per agent — skip non-responders, don't retry
- No external tool dependencies — uses only the host runtime's built-in Explore
- Security — never access .env, credentials, or SSH keys during scouting
- Tier 3 always excluded — no exceptions regardless of task
Gotchas
- 6-agent cap vs 3-agent rule —
.claude/skills/cook/references/parallel-execution-rules.mdRule 2 caps parallel agents at 3, but that rule governs write-capable agents (merge-conflict risk). Scout uses read-only Explore subagents which don't produce conflicts, so the 6-agent ceiling here is intentional, not a rule violation. - Subagents returning partial results: Context window exceeded, agent returns truncated output → Set explicit file count limits per subagent; merge results with dedup
- Missing hidden files in directory scan: Default glob patterns skip dotfiles → Include dotfiles explicitly when scanning config directories
04 同仓库更多 Skills
mk-worktree
Manages git worktrees for parallel agent isolation: creates parallel/{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).
mk-workflow-orchestrator
Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).
mk-web-to-markdown
Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.
mk-vulnerability-scanner
Vulnerability analysis: OWASP Top 10, current threat landscape, supply chain security, attack surface mapping, risk prioritization. Use for security audits. NOT for STRIDE/CSO infra audits (mk:cso).
mk-vue
Vue 3 authoring/review: components, composables, reactivity, Pinia, Pinia Colada, file routing, forms. Composition API + script setup. Auto-activates on .vue files. Deep review: mk:vue-best-practices.
mk-vue-testing-best-practices
Vue 3 testing best-practices review: Vitest + Vue Test Utils for components, composables, Pinia, Router, async/Suspense, forms, a11y, plus Playwright E2E strategy. Advisory only.