
Grepai Trace Graph
Recursive call-graph builder for GrepAI that maps every dependency of a function to a chosen depth.
- skills.sh installs
- 837
- GitHub stars
- 20
- last updated
- Aug 21, 2026
What it does
- Covers
grepai trace graph "FunctionName"for tracing complete call trees, with cycle detection marking circular dependencies as[CYCLE] - Controls recursion with
--depth(default 2) and outputs as a tree,--json,--json --compact, or--toon(about 50% fewer tokens than JSON) - Uses fast regex-based extraction, reports
"mode": "fast", and deprecates the--modeflag since grepai 1.0.0 - Designed for impact analysis, architecture mapping, and refactoring planning, with DOT and Mermaid export examples
Install
$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-trace-graph -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
GrepAI Trace Graph
This skill covers using grepai trace graph to build complete call graphs showing all dependencies recursively.
When to Use This Skill
- Mapping complete function dependencies
- Understanding complex code flows
- Impact analysis for major refactoring
- Visualizing application architecture
What is Trace Graph?
grepai trace graph builds a recursive dependency tree:
main
├── initialize
│ ├── loadConfig
│ │ └── parseYAML
│ └── connectDB
│ ├── createPool
│ └── ping
├── startServer
│ ├── registerRoutes
│ │ ├── authMiddleware
│ │ └── loggingMiddleware
│ └── listen
└── gracefulShutdown
└── closeDB
Basic Usage
grepai trace graph "FunctionName"
Example
grepai trace graph "main"
Output:
🔍 Call Graph for "main"
main
├── initialize
│ ├── loadConfig
│ └── connectDB
├── startServer
│ ├── registerRoutes
│ └── listen
└── gracefulShutdown
└── closeDB
Nodes: 9
Max depth: 3
Depth Control
Limit recursion depth with --depth:
# Default depth (2 levels)
grepai trace graph "main"
# Deeper analysis (3 levels)
grepai trace graph "main" --depth 3
Details
- Repository
- github.com/yoanbernabeu/grepai-skills
- Categories
- Code Review & Quality, Debugging, CLI & Terminal
- First seen
- May 16, 2026
More from yoanbernabeu/grepai-skills
All 27- Grepai Trace Callers818
- Grepai Search Tips813
- Grepai Ollama Setup811
- Grepai Trace Callees796
- Grepai Search Boosting784
- Grepai Embeddings Ollama777
- Grepai Mcp Tools750
- Grepai Languages738
- Grepai Chunking735
- Grepai Init730
- Grepai Watch Daemon729
- Grepai Config Reference723
- Grepai Troubleshooting723
- Grepai Workspaces717
- Grepai Ignore Patterns709
- Grepai Storage Gob698
- Grepai Mcp Claude618
- Grepai Mcp Cursor601
- Grepai Quickstart600
- Grepai Installation598
- Grepai Storage Qdrant570
- Grepai Embeddings Lmstudio568
- Grepai Embeddings Openai560
- Grepai Storage Postgres560
Similar to Grepai Trace Graph
More Code Review & Quality
grepai-trace-callersSkillyoanbernabeu/grepai-skills818 installsFind every caller of a function with GrepAI's regex-based call tracing, with JSON and TOON output.
ArborMCP serveranandb71161 starsCode graph and call tracing for symbol impact, callers, and paths across a codebase.
grepai-trace-calleesSkillyoanbernabeu/grepai-skills796 installsFocused command for listing the functions a given function calls, with file, line, and call-site context.
rust-call-graphSkillactionbook/rust-skills3.5K installsVisualizes Rust function call graphs in both directions using LSP call hierarchy for impact analysis.
Repo GraphMCP serverjames-chahwan46 starsStructural graph map of a codebase for LLMs, with orient, find, impact, trace, read, and refresh tools.
tldr-deepSkillparcadei/continuous-claude-v3484 installsLayered analysis that runs five tldr views (AST, call graph, CFG, DFG, slice) on one function.