grepai-trace-graph

Generate recursive call graphs from GrepAI trace outputs with depth control.

18|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-trace-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grepai-trace-graph
Source: https://github.com/yoanbernabeu/grepai-skills/tree/main/skills/trace/grepai-trace-graph
Command: npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-trace-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers understand code architecture by building complete call graphs from GrepAI trace outputs, revealing how functions depend on one another.

Core Features & Use Cases

  • Recursive dependency mapping: Generate full call graphs that show all callee relationships in a codebase.
  • Depth control and multiple outputs: Customize analysis depth with --depth and export results as JSON, TOON, or DOT formats for visualization.
  • Use Case: When refactoring a module, map all call relationships to assess impact and ensure no hidden dependencies are left behind.

Quick Start

Use the grepai trace graph command to generate a graph for a given function name, e.g. grepai trace graph "main".

Frequently Asked Questions about grepai-trace-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a call graph to understand code architecture?

To generate a call graph, use the grepai trace graph command with a function name to map recursive dependencies and visualize how functions depend on one another. This reveals the complete architectural structure of your codebase.

Can I control the depth of recursive dependency mapping?

Yes, you can control dependency mapping depth using the --depth flag. This limits the recursive call graph construction, allowing you to focus on specific levels of callee relationships instead of analyzing the entire codebase.

What export formats are supported for visualizing code dependencies?

Code dependency visualizations support JSON, TOON, and DOT export formats. These multiple output formats ensure you can integrate the generated call graphs into various visualization and architectural analysis tools.

How do I assess the impact of refactoring a module?

Assess refactoring impact by mapping all call relationships for the target module. This generates a complete dependency graph showing hidden dependencies, ensuring no downstream callee relationships are left behind.

What is a call graph used for in software engineering?

A call graph is used to map full dependency relationships and reveal how functions interact within a codebase. It provides architectural understanding and enables developers to perform accurate impact analysis of code changes.

Does trace graph generation work without external dependencies?

Yes, call graph generation works without external dependencies. The skill processes GrepAI trace outputs internally to construct recursive graphs, requiring no additional environment setup beyond the core command execution.