Agent skill
scout
(ePost) Use when you need to "find files", "search the codebase", "locate a pattern", "explore the repo", or "what exists for X" — searches across platforms using RAG and grep
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/scout-klara-copilot-epost-agent-kit
Metadata
Additional technical details for this skill
- keywords
-
explore search find locate trace pattern architecture codebase where-is which-file implementation
- triggers
-
[ "where is", "find the", "search for", "which file", "how is X implemented", "trace", "explore", "show me the code", "what does this file do" ] - platforms
-
[ "web", "ios", "android", "backend" ] - connections
-
{ "uses": [ "knowledge-retrieval", "web-rag", "ios-rag" ], "enhances": [ "plan", "debug", "implementation" ], "complementary": [ "repomix" ] } - argument hint
- [--fast | --deep] [search query or platform-prefix: query]
- agent affinity
-
[ "Explore", "epost-planner", "epost-researcher", "epost-debugger" ]
SKILL.md
Scout — Smart Codebase Explorer
Explore the codebase for files, patterns, architecture insights, and implementations. Auto-detects platform and intelligently routes between RAG (semantic search) and Grep (exact matches) with graceful fallback.
Flags
| Flag | Behavior |
|---|---|
| (none) | Auto mode — smart routing: RAG for semantic queries, Grep for exact matches |
--fast |
Grep only — no RAG, no external service. Fast, offline-friendly, exact matches |
--deep |
Exhaustive — RAG + Grep merged, all results returned and ranked |
Query
$ARGUMENTS
Step 1: Parse Flags & Query
- Strip
--fastor--deepfrom$ARGUMENTSbefore processing - Default mode if no flag: auto
Step 2: Classify Query Intent
- File location — "where is X", "find the Y", "which file has Z"
- Pattern/Implementation — "how is X implemented", "show me the code for Y", "trace X"
- Architecture/Structure — "what does X do", "how does the Y work", "architecture of Z"
- Dependencies/Relationships — "what calls X", "where is X used", "dependencies of Y"
Step 3: Detect Platform(s)
- Explicit prefix —
web:,ios:,android:,backend:at query start - Query keywords — "React", "SwiftUI", "Compose", "JAX-RS" → platform inference
- Default — if ambiguous, search all platforms (deduplicate by relevance)
Step 4: Search Routing
--fast mode (Grep only)
| Query Type | Tool | Strategy |
|---|---|---|
| Filename | Glob | **/{filename}* |
| String/symbol | Grep | Literal string match |
| Regex pattern | Grep | Full regex support |
| Platform-specific | Grep + Glob | Filter by extension (.tsx, .swift, .kt, .java) |
auto mode (Smart routing)
| Intent | Platform | Strategy |
|---|---|---|
| Exact file name | any | Glob/Grep filename |
| Implementation / pattern | web | web-rag → fallback Grep |
| Implementation / pattern | ios | ios-rag → fallback Grep |
| Implementation / pattern | android/backend | Grep only |
| Architecture / design | any | docs/ first → Grep → RAG |
| Dependencies | any | Grep for imports |
--deep mode (RAG + Grep merged)
Run both RAG semantic search AND Grep, merge and deduplicate results ranked by relevance.
Step 5: RAG Integration (auto and --deep modes)
- Lazy health check — attempt query, catch errors gracefully
- Query construction — "Find [component/token/pattern] matching [intent]"
- Filter extraction — extract filters from query. Use canonical component names:
web-rag/references/component-mappings.mdorios-rag/references/component-mappings.md - Result limit — top 10–15 (auto), all available (--deep)
- Fallback — if RAG fails or returns empty, use Grep silently
Offline fallback: RAG unavailable → use Grep. Do NOT report RAG failure.
Step 6: Result Categorization & Synthesis
Group by category:
| Category | Signals |
|---|---|
| Components | .tsx/.jsx (web), .swift (iOS), .kt (Android), .java (backend) |
| Logic/Utils | hooks, helpers, services, utils, managers |
| Tokens/Config | design tokens, theme, config, constants |
| Tests | .test.ts, .test.swift, Test.kt, *Test.java |
| Docs | .md, .mdx files |
Per result: file path (relative) · one-line summary · platform tag · relevance badge
Step 7: Rank & Report
Rank by: exact filename > same platform > RAG score > match frequency
- auto/--fast: top 10 results. If >15, hint: "Run
/scout --deep [query]for all results" - --deep: all results in sections (Semantic Matches / Exact Matches / By Category)
Examples
/scout auth flow→ auto search all platforms/scout web: Button component→ web-rag semantic for Button/scout ios: navigation→ ios-rag semantic for navigation/scout --fast useAuth→ grep-only, no RAG/scout --fast web: route.ts→ grep for route.ts in web/scout --deep Button→ all Button-related code, RAG + grep merged/scout --deep web: authentication→ exhaustive auth search in web
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?