mk:scout
Read-only parallel codebase sweep that finds where things live and returns a structured file map.
| Source | .claude/skills/scout/SKILL.md |
| Owner | research |
| Runtime | claude-code |
| Risk | medium |
What it does
mk:scout splits the project into segments, searches them in parallel with read-only Explore subagents and returns one consolidated report. Use it before planning a feature that spans several directories, when you need to locate files, or before a review of a diff that touches three or more files. It runs in Phase 0 (Orient) and Phase 1 (Plan), and the orchestrator invokes it before the planner on complex tasks.
When not to use it
Scout searches the local repository only. For library and API documentation use mk:docs-finder.
Usage
/mk:scout authentication
/mk:scout database migrationsThe argument is the search target. There are no flags.
Steps
- Parse the prompt into search targets.
- Search inline with Glob and Grep, skipping generated and vendored directories.
- Only for a large repo or a question that spans several top-level directories, give each read-only search subagent a distinct slice (
references/subagent-brief.md) and start them in one message. - Merge results, remove duplicates and note gaps.
- Return a lean report: files with a one-line purpose, entry points and gaps.
Limits
| Limit | Value |
|---|---|
| Writes | None. Scout never modifies files. |
| Parallel agents | 6 at most, and only above the size threshold |
| Secrets | .env, credentials and SSH keys are never read. |
The 6-agent cap differs from the 3-agent cap in cook's parallel execution rules because that cap covers agents that write files. Scout agents only read, so they cannot conflict.
Gotchas
- A subagent can return truncated output when its context fills. Set file count limits per subagent and merge with deduplication.
- Default globs skip dotfiles. Include them explicitly when scanning config directories.