flow-trace-genesis

🇬🇧 English | 🇻🇳 Tiếng Việt
Turn any codebase into flow handbooks the whole team can read — from engineers to product people.
Your codebase already contains the truest description of how your business runs — every rule, every approval step, every edge case. flow-trace-genesis turns that hidden knowledge into flow handbooks anyone can read: what really happens when a customer submits an application, which rules the system enforces, what can go wrong and what it costs — every claim backed by evidence from the code itself, so the handbook never drifts from reality the way hand-written docs do.
One handbook serves the whole team: a plain-language process summary and reverse-engineered business spec for BA/PO/PM, validation rules and failure checklists for QA, and the file:line step table with interactive diagrams for engineers. Under the hood it's a plugin for AI coding agents (Claude Code is the primary path; installers included for Codex, OpenCode, Cursor, Antigravity): on first contact with a project it surveys the codebase, interviews it with file:line evidence, then generates a local flow-trace skill — a dedicated analyst for that project, fluent in its conventions, that cooks technical flows into end-to-end process analysis from tech to business. Skeptical? Jump to real output from grpc-go.
Why does this exist?
The business problem: documentation drifts, but code doesn't lie. In most teams the code is the only up-to-date description of how a process really works — yet only developers can read it. When a BA asks "what actually happens when a customer resubmits an application?", the honest answer usually lives in code nobody has time to walk them through.
The technical problem: generic code-intelligence tools (LSP, indexes, graphs) see syntax but are blind to each codebase's conventions — home-grown messaging decorators, constants hand-copied between repos, init() registries instead of a DI container, custom frontend call chains. Tracing a flow correctly requires learning the conventions first.
Genesis automates both: it learns the conventions once per project, then turns the code — the real source of truth — into handbooks everyone can read.
Who is it for?
| Role | What you get from a flow handbook |
|---|
| Engineer | Step table with file:line for every hop, interactive knowledge graph, sequence diagram — onboarding and impact analysis without spelunking. |
| BA / PO / PM | Plain-language flow summary, reverse-engineered business spec, validation rules expressed as business rules — the "what does the system actually do" answer, from code, not from memory. |
| QA | Validation rules and failure-mode checklists to design test cases against — including edge cases only the code knows about. |
| Ops / Security | Security & ops notes per flow: external touchpoints, queues, retries, failure behavior. |
Inference is always labeled: anything the AI derived rather than read is explicitly marked, so non-technical readers know which statements are evidence and which are interpretation.
See it in action
Real, unedited output from running the plugin on grpc/grpc-go — full sample (generated skill + md-source + interactive HTML) in examples/grpc-go/:
Interactive knowledge graph — 200 symbols around the flow, extracted from the code index by script (near-zero token cost). The bright solid path is the verified trace (every hop read, with file:line); the dim dashed rest are machine-suggested candidates. Filter by kind, fuzzy-search, verified-only toggle:

Sequence diagram — rendered natively from Mermaid, every message annotated with the exact file:line, including the failure branches (note the alt block where a unary write error returns nil and defers to RecvMsg):

Step table — the evidence backbone: 24 hops, each one a file actually read: