search-fastpath
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
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.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Prefer exact paths, file names, symbols, routes, config keys, and copied error strings over regex.
- Distinctive: line 17
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 …
- Distinctive: line 18
When using regex, record why literal lookup was insufficient and keep the search scoped to the smallest likely directory.
- Distinctive: line 19
Do not use regex for exact class names, method names, route strings, property keys, command names, filenames, or quoted log/error text.
- Distinctive: line 35
When a task needs web or repository evidence, use a source-aware ladder inspired by fetch-skill:
- Distinctive: line 37
Prefer primary source URLs provided by the user.
- Distinctive: line 38
Prefer raw Markdown / raw source over rendered HTML when available.
- Very specific: line 40
Keep source_url, fetch_mode, and fallback_used in the result.
- Distinctive: line 41
Treat social posts, mirrors, marketplaces, and blog summaries as secondary hints unless the user explicitly asked for them.
- Distinctive: line 42
If output is summarized or truncated, keep a recovery URL or command.
- Distinctive: line 46
Stop after enough evidence supports the next action.
- Distinctive: line 47
Stop after two searches with no new signal.
- Distinctive: line 48
Stop before repo-wide regex unless the task remains genuinely ambiguous after exact path, index, filename, and fixed-string attempts.
- Distinctive: line 49
Do not search directories excluded by PM or user.
- Distinctive: line 50
Do not inject long outputs.
- Very specific: line 54
When this search output feeds context-packet-fastpath or a PM dispatch packet:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

