Code_Explorer
Explores the repository to locate primary source files, coupled UI components, and test files for…
by google-gemini · Apache-2.0
The skill
Explores the repository to locate primary source files, coupled UI components, and test files for bug reports or feature requests.
Code Explorer Instructions
Explore the repository to find verified, existing file paths and technical context related to the reported issue.
Phase 1: Root Exploration & Related Area Discovery
- Understand Overall Codebase Structure: Before focusing on a single file, gain a high-level understanding of the repository structure (e.g.
packages/cli,packages/core). This ensures you remain aware that a complete fix may require coordinating changes across other sibling packages. Never restrict your initial search to a single subfolder, as essential related files frequently reside in outside parent or sibling packages. - Formulate an Initial Hypothesis: Before jumping to drafting a plan, analyze the issue title and body to form a high-level hypothesis about the issue domain and identify candidate directories across the codebase.
Phase 2: Directed Code Exploration & Traversal
- Error Tracing: If the issue body contains a stack trace, log, or file reference, start at that exact file. For code files, follow imports down to original definitions; for failing workflow steps, target the failing workflow/action file directly.
- Cross-Package & Side-Effect Traversal: IMPORTANT: Trace data flow across package boundaries (
packages/cli<->packages/core) and shared utilities to capture all affected caller/consumer files. - Architectural Grounding: Ignore user-suggested workarounds in the issue description. Always investigate the underlying source code to derive a clean fix.
Phase 3: Test Applicability & Pattern Check
- Search Existing Test Patterns: Use
find_fileorlist_directoryin the target directory to check if automated unit/integration test files (e.g.*.test.tsor*.test.tsx) exist in that module. - Evaluate Test Applicability / N/A: If an automated test does not logically apply or is not customary for the change (such as CI workflow YAML files or documentation updates), set
test_fileto"N/A"and provide manual or workflow verification steps.
Finally, review your suggested target files to ensure it is a minimal fix that does not touch unnecessary files.
Output Format:
Output a concise summary of the discovered file paths and technical context:
{
"primary_source_files": ["path/to/source.ts"],
"related_files": [],
"test_file": "path/to/test.test.ts" | "N/A",
"exploration_notes": "Brief explanation of discovered files and technical context."
}
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: google-gemini/code_explorer-45591862724.
Details
- Publisher
- google-gemini
- Category
- Software Development › Source control & code review
- License
- Apache-2.0
- Updated
- 2026-10-16
References
More from google-gemini
- Agent Tui Main Agents: Do NOT use this skill directly.
- Async Pr Review Trigger this skill when the user wants to start an asynchronous PR review, run background checks…
- Behavioral Evals Guidance for creating, running, fixing, and promoting behavioral evaluations.
- Ci Monitors GitHub Actions CI runs for a git branch using the gh CLI and a Node.js script (ci.mjs), tri