# Trace the flow

> Trace the flow is an open-source agent skill for developer tools. Traces one business operation end to end across layers, citing each hop and its failure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rpraharaj/forward-deployed-engineer/tree/main/fde-core/skills/trace-the-flow
- **Repository:** https://github.com/rpraharaj/forward-deployed-engineer
- **GitHub stars:** 19
- **License:** MIT
- **Skill name:** trace-the-flow
- **Collection:** https://github.com/rpraharaj/forward-deployed-engineer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Trace the flow walks a single concrete business operation through an codebase, from its real entry point through filters, orchestration, persistence, messaging and downstream calls. Each hop is recorded with a file and line citation, and the agent is pushed to label any step it cannot verify rather than fill the gap with a guess. Boundaries such as transactions, network calls, async handoffs and queues are flagged explicitly, since those are where behavior surprises people.

The workflow emphasises the unhappy paths: where exceptions are caught, whether retries happen and whether the retried operation is idempotent, whether timeouts are set, and what the caller ends up seeing. The output is a structured trace document with a sequence table, boundary and error tables, findings, a gap list and an explicit note of what was excluded. It can also be asked to run the flow to confirm the reconstructed path.

The skill expects an existing system map from a prior reconnaissance step and optionally an environment notes file. It is written for a repository workspace and works through reading and searching code, with running the flow as an optional verification step.

## When your agent uses it

> Follow one concrete business operation end to end through every layer and process boundary - entry point, orchestration, persistence, messaging, downstream calls, and the error and retry paths - producing a sequence narrative with a citation at every hop. Use when you need to know how something actually works before changing it, when asked "what happens when a customer does X", when debugging behavior you cannot explain from reading one file, or when a change lands on a request path you have not walked. Traces one operation deeply rather than mapping the whole system - run repo-recon first for breadth.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-core/skills/trace-the-flow)
- [License: MIT](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-core/skills/trace-the-flow)

## Features

- **Single-operation tracing:** Follows one business scenario rather than mapping the whole system, keeping the trace readable.
- **Citation at every hop:** Records the file, location, action and what is passed on at each step of the call path.
- **Explicit gap labelling:** Marks hops that cannot be established as unverified instead of bridging them with assumptions.
- **Boundary identification:** Flags network, transaction, async and message queue crossings where changes tend to break.
- **Failure path analysis:** Checks exception handling, retries, idempotency, timeouts and caller-visible errors.
- **Structured trace document:** Produces a markdown report with sequence, boundaries, findings, gaps and exclusions.

## Good for

- Explain what happens when a customer places an order with a saved card
- Trace a request path before changing it
- Debug behavior that cannot be understood from reading a single file
- Check whether retries on an integration are safe to run twice
- Identify where an event is published relative to a database transaction

## Install

### Claude Code

This skill ships in the `fde-core` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-core@fde-skills
```

Or copy only this skill to `~/.claude/skills/trace-the-flow`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trace-the-flow &&
cp -R "$tmp/fde-core/skills/trace-the-flow" ~/.claude/skills/trace-the-flow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/trace-the-flow` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/trace-the-flow` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/trace-the-flow &&
cp -R "$tmp/fde-core/skills/trace-the-flow" ~/.agents/skills/trace-the-flow &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/trace-the-flow` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/trace-the-flow` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/trace-the-flow &&
cp -R "$tmp/fde-core/skills/trace-the-flow" ~/.cursor/skills/trace-the-flow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/trace-the-flow` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/rpraharaj/forward-deployed-engineer.git --path fde-core/skills/trace-the-flow
```

Or copy the folder to `~/.gemini/skills/trace-the-flow` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/trace-the-flow`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trace-the-flow &&
cp -R "$tmp/fde-core/skills/trace-the-flow" ~/.copilot/skills/trace-the-flow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/trace-the-flow` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git
```

Then copy `forward-deployed-engineer/fde-core/skills/trace-the-flow` into your agent's skills folder as `trace-the-flow`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Trace the flow need before it runs?

It expects a system map of entry points from a prior repo-recon step, and optionally an environment notes file that allows running the flow.

### Does Trace the flow trace the whole system?

No. It traces one named operation deeply and records downstream systems as endpoints. Breadth is left to repo-recon.

### What is produced?

A markdown trace document with a sequence table, boundary and error tables, findings, gaps and a list of what was not traced.

### When should Trace the flow be used?

Before changing a request path you have not walked, when asked how a customer action works, or when debugging a symptom whose cause sits in another component.

### How do I install Trace the flow in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/trace-the-flow to use it in all your projects, or to .claude/skills/trace-the-flow in one project. Or install the fde-core plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-core@fde-skills.

### Does Trace the flow run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Trace the flow?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Trace the flow?

The closest alternatives to Trace the flow are Ask matt, Trace architecture, Trace debugging, Flowstudio power automate debug and Openhop.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ask matt](https://ai-powered.com/skills/ask-matt): Ask matt is an open-source agent skill for developer tools.
- [Trace architecture](https://ai-powered.com/skills/trace-architecture): Trace architecture is an open-source agent skill for developer tools.
- [Trace debugging](https://ai-powered.com/skills/trace-debugging): Trace debugging is an open-source agent skill for developer tools.
- [Flowstudio power automate debug](https://ai-powered.com/skills/flowstudio-power-automate-debug): Flowstudio power automate debug is an open-source agent skill for developer tools.
- [Openhop](https://ai-powered.com/skills/openhop): Openhop is an open-source agent skill for developer tools.
- [Click path audit](https://ai-powered.com/skills/click-path-audit): Click path audit is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-jasgujral): Debug is an open-source agent skill for developer tools.
- [Salesforce flow design](https://ai-powered.com/skills/salesforce-flow-design): Salesforce flow design is an open-source agent skill for sales and crm.

---
Source: https://ai-powered.com/skills/trace-the-flow
