codebase-indexing
Installation
SKILL.md
Codebase Indexing (CodeGraph + Repomix)
Maintain a dual indexing setup and use these indexed artifacts as your primary context to understand the project's full structure, architecture, and engineering before scanning individual files or running brute-force searches:
- CodeGraph (
.codegraph/) as the primary source for structural symbol lookup, call paths, and dependency graphs. - Repomix (
repomix-output.md) as the primary single-file Markdown snapshot of the repository's layout and implementation.
Always check whether each index already exists before running commands: initialize when missing, and sync/update when present.
1. CodeGraph
Pre-flight Check
Before running any CodeGraph command, verify that the codegraph executable is available in the environment (command -v codegraph).