search-fastpath
Optimizes repository searching by prioritizing specific paths and indexes over broad scans.
Install
mkdir -p .claude/skills/search-fastpath && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16036" && unzip -o skill.zip -d .claude/skills/search-fastpath && rm skill.zipInstalls to .claude/skills/search-fastpath
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when target files are unknown, repeated search is becoming expensive, an agent is about to do broad repo-wide scanning, or a regex search is being considered. DO NOT USE FOR: explicit user paths or already frozen files_involved.Key capabilities
- →Prioritize exact paths, file names, and symbols over regex.
- →Use `rg --files` or `find` for exact file-name discovery.
- →Perform literal content lookup with fixed strings using `rg -F -n`.
- →Conduct scoped semantic search with 2-3 literal terms.
- →Utilize external sources when repository evidence is insufficient.
- →Summarize long outputs and provide recovery commands.
How it works
The skill follows a prioritized search order, starting with exact lookups and progressively moving to more general methods like scoped semantic search and regex, to quickly identify relevant files.
Inputs & outputs
When to use search-fastpath
- →Finding files quickly
- →Searching symbols
- →Avoiding expensive scans
- →Targeting directory searches
About this skill
Search Fastpath
Goal
Find the right files quickly without turning every task into an unbounded repository scan.
This skill is the retrieval lane. It should produce a compact evidence map that a coding or review lane can consume without repeating broad search.
Precision First
- Prefer exact paths, file names, symbols, routes, config keys, and copied error strings over regex.
- Use regex only when the user's description is vague, the exact symbol/path is unknown, or literal searches have failed and the pattern is genuinely structural.
- When using regex, record why literal lookup was insufficient and keep the search scoped to the smallest likely directory.
- Do not use regex for exact class names, method names, route strings, property keys, command names, filenames, or quoted log/error text; use fixed-string search instead.
Search Order
- User-provided paths, current files, attachments, changed files.
- Repo indexes:
README*,.github/instructions/project.instructions.md, and target-localspec/INDEX.md/memories/repo/INDEX.mdwhen present. - Exact file-name discovery:
rg --files -g 'ExactName.ext',rg --files <likely-dir>, orfind <dir> -name 'ExactName.ext'. - Literal content lookup with fixed strings:
rg -F -n 'ExactSymbolOrError' <likely-dir>; add-wonly when word-boundary matching is needed. - Scoped semantic search with 2-3 literal terms in the smallest likely directory when exact names are unknown.
- Regex search only after the earlier steps fail or the task needs a structural pattern.
- External sources only when repo evidence cannot answer the question and current instructions allow web use.
For code-generation tasks, stop search when you have: the target files, the local pattern to follow, the relevant test/check surface, and any public contract or frontend state affected by the change.
External Fetch Ladder
When a task needs web or repository evidence, use a source-aware ladder inspired by fetch-skill:
- Prefer primary source URLs provided by the user.
- Prefer raw Markdown / raw source over rendered HTML when available.
- Extract the smallest relevant section, not the whole page.
- Keep
source_url,fetch_mode, andfallback_usedin the result. - Treat social posts, mirrors, marketplaces, and blog summaries as secondary hints unless the user explicitly asked for them.
- If output is summarized or truncated, keep a recovery URL or command.
Stop Rules
- Stop after enough evidence supports the next action.
- Stop after two searches with no new signal.
- Stop before repo-wide regex unless the task remains genuinely ambiguous after exact path, index, filename, and fixed-string attempts.
- Do not search directories excluded by PM or user.
- Do not inject long outputs; summarize and keep recovery commands.
Search Result To Packet Mapping
When this search output feeds context-packet-fastpath or a PM dispatch packet:
selected_files->files_involvedorpriority_filescandidate_files->search_hintscommands,literal_attempts,regex_used, andretrieval_provenance-> packetretrieval_provenancegaps-> packetknown_gaps,uncovered_items, orNEEDS_CONTEXT- generated evidence map ->
artifact_refswithkind: search_result - budget overrun ->
NEEDS_CONTEXT context_budget_exceededwith searched paths and the next smallest recommended shard
Record token-cost signals when practical: files_read, broad_searches, context_budget_used, artifact_reuse_count, and escalation_reason.
Output
## Search Result
- mode:
- commands:
- candidate_files:
- selected_files:
- literal_attempts:
- regex_used: yes|no, reason
- retrieval_provenance:
- artifact_refs:
- token_cost_metrics: files_read=, broad_searches=, context_budget_used=, artifact_reuse_count=, escalation_reason=
- gaps:
When not to use it
- →When target files are explicitly known by the user.
Limitations
- →It does not perform repo-wide regex searches unless genuinely ambiguous.
- →It does not search directories excluded by PM or user.
- →It does not inject long outputs, only summaries.
How it compares
This skill provides a structured, prioritized retrieval lane to find files efficiently, avoiding expensive, unbounded repository scans or immediate regex searches that a manual approach might default to.
Compared to similar skills
search-fastpath side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| search-fastpath (this skill) | 0 | 1mo | No flags | Beginner |
| ai-scripts | 0 | 1mo | Review | Intermediate |
| run-nx-generator | 5 | 3mo | Review | Intermediate |
| git-commit | 11 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
ai-scripts
UtmostCreator
Use registered scripts with risk-based approvals and evidence.
run-nx-generator
nrwl
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
git-commit
github
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
morph-search
parcadei
Fast codebase search via WarpGrep (20x faster than grep)
upgrading-expo
sickn33
Upgrade Expo SDK versions
continue-implementation
LibPDF-js
Continue implementing a spec from a previous session