/fde-core:trace-the-flowfrom fde-core
Traces a single business operation end-to-end through every layer and process boundary, producing a cited sequence narrative. Use before changing a request path, debugging cross-component behavior, or answering 'what happens when a customer does X'.
Ships in fde-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Walking one operation from end to end.
repo-recon tells you where things are. It does not tell you what actually happens, and in a layered enterprise system those are very different questions. The call path for "customer places an order" typically crosses eight files, two process boundaries, a transaction, a message queue, and three error handlers — none of which is visible from any single file.
The specific danger this skill addresses is plausible reconstruction. Reading a controller and a service, it's easy to assemble a mental model that is coherent, confident, and wrong — because the actual dispatch goes through a framework-configured interceptor, or an event listener registered in XML, or a strategy selected by a config value. That model then becomes the basis for a change, and the change breaks something invisible.
A trace with a citation at every hop is the antidote. Where you can't establish a hop, the trace says so rather than bridging the gap with a reasonable guess.
repo-recondata-archaeology (fde-data); if unavailable, record the data-model gap rather than claiming a complete analysis.git-archaeologyResolve <workspace> before reading or writing artifacts: read ../_shared/workspace-conventions.md and follow its location and header rules. All artifact paths below use that resolved workspace. Preserve existing sections when appending.
<workspace>/02-system-map.md — you need to know the entry points before following one<workspace>/01-environment.md — being able to run the flow turns [inferred] hops into [confirmed] ones cheaplyNot "the OrderController" — "a customer places an order with a saved card."
Two reasons. A business-named trace is findable later by someone who doesn't know the class names, and it forces you to pick a concrete path rather than a general one. "Order placement" branches; "order placement with a saved card, in EUR, for an existing customer" does not.
Where variants matter, trace the main one and note the branch points. Tracing every variant at once produces a document nobody can follow.
From the system map. Be careful here: the apparent entry point is often not the first thing that runs. Filters, middleware, interceptors, and authentication layers execute before the handler, and they frequently do things that matter — tenant resolution, transaction demarcation, request mutation.
Check what's configured to run before the handler, not just the handler.
At every step record: what is called, where it's defined, what it does, and what it passes on.
The discipline that makes this useful is refusing to skip. When you can't find where control goes next, you have hit indirection — read references/following-indirection.md, which covers dependency injection, dynamic dispatch, event buses, reflection, config-driven wiring, aspect-oriented interception, and code generation. Those mechanisms are why a call path disappears, and each has a way of being resolved.
If after that you still can't establish the next hop, write the gap into the trace:
OrderService:88publishesOrderPlaced. Consumers not established[unverified]— no subscription found in this repo; likely in another service. Resolve by searching the org's repos for the event name, or asking the platform team.
A trace with a labelled gap is useful. A trace that bridges the gap with a plausible guess is dangerous, because it reads identically to the parts you verified.
Boundaries are where behavior gets surprising and where changes break things. Flag each one explicitly:
| Boundary | Why it matters |
|---|---|
| Process / network | Can fail, time out, retry, or partially succeed |
| Transaction | Where it starts, commits, rolls back — and what's outside it |
| Thread / async | Ordering is no longer guaranteed; context may not propagate |
| Message queue | Delivery may be at-least-once; consumers may be idempotent, or may not be |
| Team ownership | Changes here need coordination, not just code |
The transaction boundary deserves particular attention. Work that happens outside the transaction — an email, an event publish, a cache write — will not roll back, and that asymmetry is the source of a large share of production data inconsistencies.
Most traces only follow the success case, which is the least interesting one. For each hop ask: what happens if this fails?
Retry against a non-idempotent operation is a bug waiting for a slow downstream. It is common, it is invisible in the success path, and finding one is often the most valuable output of a trace.
If you can execute the flow, do. Add logging or a breakpoint and confirm the path you reconstructed is the path taken. This is the cheapest possible upgrade from [inferred] to [confirmed], and reconstructions are wrong more often than they feel.
Where you can't run it, say so in the Confidence line.
A trace can expand forever — every downstream call is another trace. Stop when you've covered the operation you named, and record downstream systems as endpoints rather than following into them.
If a downstream turns out to be where the interesting behavior is, that's a second trace with its own document.
Write to <workspace>/traces/<business-operation>.md:
# Trace — <operation in business terms>
**Engagement:** <name>
**Author:** FDE
**Date:** <YYYY-MM-DD>
**Status:** draft
**Source revision:** <repo>@<short SHA>
**Confidence:** <how much is confirmed by running it vs. read>
**Verified by running:** yes / no — <how>
## Operation
<The concrete scenario, in business terms. State the variant traced and the ones not traced.>
## Sequence
| # | Where | What happens | Boundary | Confidence |
|---|---|---|---|---|
| 1 | `AuthFilter:34` | Resolves tenant from JWT, sets thread-local | — | confirmed |
| 2 | `OrderController:44` | Validates payload, maps to command | — | confirmed |
| 3 | `OrderService:88` | **Opens transaction** | transaction start | confirmed |
| 4 | `InventoryClient:22` | HTTP POST to inventory-service, 2s timeout | **network** | confirmed |
| 5 | `OrderRepository:140` | Inserts order + lines | — | confirmed |
| 6 | `OrderService:132` | **Commits** | transaction end | confirmed |
| 7 | `EventPublisher:19` | Publishes `OrderPlaced` — **outside the transaction** | queue | confirmed |
| 8 | ? | Consumers unknown | — | **unverified** |
## Boundaries
| Boundary | Where | Implication |
|---|---|---|
| Transaction | opens `OrderService:88`, commits `:132` | Event publish at `:19` is outside it — will not roll back |
## Error and retry behavior
| Hop | On failure | Retry | Idempotent? | Caller sees |
|---|---|---|---|---|
| 4 | `InventoryException` | 3×, 100ms fixed | **No** `[confirmed: no idempotency key sent]` | 503 |
## Findings
<Things worth someone's attention. This section is often the real output.>
- Retry at hop 4 is not idempotent — a slow downstream could double-reserve inventory `[confirmed]`
- Event publish at hop 7 is outside the transaction — a crash between commit and publish loses the event `[confirmed]`
## Gaps
| # | What's unknown | Why it matters | To resolve |
|---|---|---|---|
| 1 | Consumers of `OrderPlaced` | Can't assess blast radius of a schema change | Search org repos, or ask platform team |
## Not traced
<Variants and downstream systems deliberately excluded, so a reader knows the limits.>
Bridging a gap with a plausible guess. The failure this skill exists to prevent. An unverified hop must be labelled, because it reads identically to a verified one.
Missing what runs before the handler. Filters, middleware, and interceptors do real work and are invisible in the handler.
Only tracing the success path. The error paths are where the surprises and the findings are.
Not marking the transaction boundary. Work outside the transaction doesn't roll back, and that asymmetry causes a large share of data inconsistencies.
Ignoring timeouts and idempotency. An unset timeout and a non-idempotent retry are both common and both serious.
Tracing "order placement" instead of a concrete scenario. The general case branches; the document becomes unreadable.
Following every downstream. Each is its own trace. Record it as an endpoint and stop.
Naming the trace after a class. traces/OrderController.md is unfindable by the person who needs it. Name the business operation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-core34 skills in this plugin
/access-and-onboardingTurn getting access into a tracked critical path instead of a passive wait. Enumerate every credential, permission, environment, and account the engagement needs, identify who approves each and its lead time, request long-lead items first, find workarounds for what is blocked, and keep a queue of useful work that does not depend on the blocker. Use in the first days at a new organization, whenever you are blocked on permissions, VPN, repository access, database grants, pipeline rights, or environment credentials, or when someone says "I'm still waiting for access". Use for access and permissions, not a failing login in application code and not a CAB that will not approve a deploy./adoption-planPlan and assess how intended end users move to a new business workflow, including barriers, process ownership, a bounded pilot, support, fallback, and successful-use measures. Use when a live solution is underused, users keep an old workaround, or rollout needs changes to daily work. Training the receiving technical team to operate the system is enablement-handoff; deploying code is deploy-runbook./blast-radiusMap everything a proposed change could break before making it - direct callers, cross-repository consumers, published contracts, event subscribers, feature flags, shared database objects, and config coupling - ending with a risk rating and the specific things to verify. Use before any non-trivial change, when asked "what breaks if we touch this", before modifying anything shared or published, or before a schema change. Do not use for a release go/no-go - that is release-readiness; this skill supplies the consumer list./change-control-navigationFind and work with the organization's change process before it blocks you - which gates apply, what evidence each requires, submission deadlines, freeze periods, release calendars, and segregation of duties - then work backwards from the release window. Use early in any engagement that will reach production, when a CAB or stage gate exists, when a release calendar or freeze period constrains the plan, or when work is technically complete and cannot ship. Discovering the process at go-live is a self-inflicted slip./characterization-testsPin the current behavior of untested legacy code before changing it - including behavior that looks like a bug, because something downstream may depend on it - using golden master and approval test patterns so a refactor or fix can be verified as behavior-preserving. Use before modifying code with thin or no test coverage, before any refactor of legacy code, when a change site has no tests and you need a safety net, or when someone says "we can't change that, nobody knows what it does". This is what makes legacy change safe rather than brave./context-strategyWork effectively in a codebase far larger than any context window, across an engagement that spans many sessions. Decide what to read versus search versus script versus delegate, maintain a durable working guide so each session does not re-derive the same map, define a working set, and hand off cleanly when context runs low. Use when a repository is too large to explore file-by-file, when context is filling up mid-task, when starting a multi-session engagement, when you catch yourself re-discovering something you already worked out, or when someone says "this repo is huge". Run before repo-recon when the tree is large; this sets the budget, it does not replace the system map.Other plugins' skills for the same job