Conducts deep-dive analysis of existing codebases to verify architectural assumptions and establish factual patterns for implementation planning.
The Investigating a Codebase skill empowers Claude to move beyond guesswork by grounding every design and implementation decision in the actual state of the repository. By systematically exploring entry points, following import traces, and verifying file locations through glob and grep strategies, it prevents hallucinations and ensures that new code integrates seamlessly with existing patterns. It is especially valuable during the planning phase of a feature to confirm that the assumed dependencies and structures actually exist before a single line of code is written.
主要功能
01Design assumption verification to confirm if expected files and functions truly exist
02Evidence-based reporting with exact file paths and line numbers
0345 GitHub stars
04Multi-strategy search using Glob patterns and Grep keywords to locate specific code patterns
05Architectural trace mapping to follow imports and component relationships
06Definitive negative verification to prevent hallucinating non-existent file paths
使用场景
01Locating entry points and dependencies in unfamiliar repositories to map out component relationships
02Finding and extracting existing code patterns to maintain architectural consistency in new modules
03Verifying codebase structure before implementing a feature to ensure design assumptions are correct