yoanbernabeu avatar

Grepai Trace Graph

When you need to understand how deep a function call goes, this builds recursive dependency trees showing what calls what, up to whatever depth you specify. The default two-level depth usually gives you enough context without drowning in noise, but you can crank it up to five if you're debugging something gnarly. It handles circular dependencies gracefully by marking cycles instead of hanging, and the JSON output pairs well with visualization tools if you need to generate architecture diagrams. The compact TOON format is a nice touch for cutting token usage. Honestly most useful during refactoring when you need to see the blast radius of changing a function, or when onboarding to a codebase where the call chains aren't obvious from reading files linearly.

skills.sh installs
831
GitHub stars
20
last updated
Aug 21, 2026

Install

$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-trace-graph --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/yoanbernabeu/grepai-skills
Category
DevOps & CI/CD
First seen
May 16, 2026

More from yoanbernabeu/grepai-skills

All 27
1nvidia avatarnemoclaw-user-manage-sandboxesnvidia/skillsExplains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential r830skills.sh installs
2nvidia avatarnemoclaw-user-manage-policynvidia/skillsAdds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint 828skills.sh installs
3postplusai avatarreference-contract-builderpostplusai/postplus-skillsBuild explicit learn/do-not-copy contracts for image and video generation references. Use this when a prompt uses benchmark videos, contact sheets, frames, or p824skills.sh installs
4codexstar69 avatarbug-huntercodexstar69/bug-hunterAdversarial bug hunting with a sequential-first pipeline (Recon, Hunter, Skeptic, Referee) that can optionally use safe read-only parallel triage. Scans without823skills.sh installs
5nvidia avatarnemoclaw-user-overviewnvidia/skillsExplains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when t821skills.sh installs
6nvidia avatarnemoclaw-user-referencenvidia/skillsDescribes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent813skills.sh installs