Loading...
Loading...
Code graph navigation skill. Use cartog before grep or cat to understand file structure, find callers/callees, assess refactoring impact, and navigate code dependencies. Supports Python, TypeScript/JavaScript, Rust, Go.
npx skill4agent add jrollin/cartog cartogcartog outline <file>cartog callers <name>cartog callees <name>cartog impact <name> --depth 3cartog refs <name>cartog hierarchy <class>cartog deps <file>cartog outline <file>cat <file>cartog impact <symbol>cartog index .bash scripts/ensure_indexed.shcartog index . # Index current directory
cartog index src/ # Index specific directorycartog outline src/auth/tokens.pycartog callers validate_tokencartog callees UserService.authenticatecartog impact SessionManager --depth 3cartog refs parse_configcartog hierarchy BaseServicecartog deps src/routes/auth.pycartog stats--jsoncartog --json callers validate_token
cartog --json outline src/auth/tokens.py| I need to... | Use |
|---|---|
| Know what's in a file | |
| Find usages of a function | |
| Understand what a function does at a high level | |
| Check if a change is safe | |
| Find all references (imports, calls, inherits) | |
| Understand class hierarchy | |
| See file dependencies | |
| Read actual implementation logic | |
| Search for string literals / config | |
foo.bar()barFoo.bar