finding-files · git:20260904.5a122b3 · 2026-09-04 · sha256 8680670cee38e183
finding-files git:20260904.5a122b3A
Immutable. This exact content is served forever at /api/v1/blob/8680670cee38e183.
--- name: finding-files description: 'Locates files by naming, structure, and imports. Load for read-only discovery when exact paths are unknown.' user-invocable: false --- # Finding Files Given `2-questions.md` codebase scope and vocabulary, find every relevant file. In multi-repo mode from `4-repos.md`, repeat each strategy in every listed repo and namespace results by slug. ## Search Strategy Use these in order, broad to narrow: 1. **Glob by naming convention.** Search vocabulary terms such as `**/*auth*` and `**/*billing*`; try singular/plural. Run against each repo's absolute path. 2. **Content search.** Grep vocabulary, functions, classes, errors, synonyms, and related concepts. 3. **Import/dependency tracing.** Follow imports and reverse dependencies from every relevant file. Record cross-repo imports in `## Notes`. 4. **Directory exploration.** Inspect siblings for tests, configuration, and related modules. 5. **Config and manifests.** Inspect package manifests, build configuration, and entry points referencing the area. ## Search rules - Prefer a confirmed extra file over a missed relevant file. - Try at least three search terms per concept before stopping that direction. - Never guess paths; report only confirmed files. - Use one factual, non-speculative line per file. - In large codebases, prioritize the `2-questions.md` scope and report unsearched areas.