New advertisers: 50% off your first month with code FIRSTMONTHSee slots
yoanbernabeu avatar

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
View on GitHub

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 --mode flag 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 -y

Installs 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

Similar to Grepai Trace Graph

More Code Review & Quality