codeflow — Visualize Codebase Architecture in Seconds
CodeFlow (braedonsaunders, MIT)
turns any GitHub repository, local folder, PR, or markdown/Obsidian vault into
an interactive architecture map — entirely in the browser. It is a single
index.html app that loads pinned React 18 + D3.js 7 + Babel from CDNs:
no build process, no npm install, no backend, and no data collection —
your code is fetched directly from GitHub to your browser (or read from local
files) and never leaves your machine. This skill is the routing-first wrapper:
pick an input, choose a visualization mode, read the analysis, and export the
result (or wire the self-updating CodeFlow Card onto a README).
When to use this skill
- The user opened an unfamiliar codebase and wants a fast architecture
overview — an interactive dependency graph they can drag, zoom, and explore
- The user asks "if I change this file, what breaks?" → blast-radius
analysis over the dependency graph
- The user wants code ownership (top contributors per file from git
history) for a review or "who do I ask?" decision
- The user wants an A–F codebase health score (dead code, circular
dependencies, coupling, security issues) or an activity heatmap
- The user wants a heuristic security / pattern scan — hardcoded secrets,
SQL injection, eval(), debug statements; singleton/factory/observer/React
hooks, and anti-patterns (God Objects, high coupling)
- The user wants PR impact analysis — paste a PR URL to see affected files
and the change's blast radius
- The user wants to visualize an Obsidian vault / markdown directory as a
note graph ([[wiki-links]] and [text](./relative.md) become edges)
- The user wants to export the analysis (JSON / Markdown / text / SVG /
PDF) or drop a self-updating CodeFlow Card SVG on a README
When not to use this skill
- The user wants editable, hand-authored diagrams (architecture, ERD, UML,
sequence, flowchart) → use drawio or mermaid
- The user wants token-efficient code search for an agent over a repo
(find a symbol, semantic find-related) → use semble
- The user wants a routing-first repo-navigation packet for
definitions/references/impact before refactoring → use codebase-search
- The user wants a durable, regenerable knowledge graph committed to the
repo (.graphify/) rather than a throwaway browser view → use graphify
- The user wants a deep, language-accurate static-analysis / call graph —
CodeFlow's dependency analysis is heuristic (name-matched functions, scoped
by file + explicit imports) and may miss dynamic imports or renamed runtime
references; it is a quick overview, not 100% accuracy
Prerequisites
| Requirement | Notes |
|-------------|-------|
| A modern browser | The whole app runs client-side; nothing is installed |
| git (optional) | Only to self-host: git clone the one-file repo |
| A GitHub token (optional) | For private repos and higher rate limits — kept in browser memory only, never stored |
| Node.js (optional) | Only the npx skills@1.9.0 installer or the parser unit tests (node --test tests/) need it |
Instructions
Step 1 — Choose how to run CodeFlow
| Mode | When | Entry point |
|------|------|-------------|
| Online (recommended) | Quickest — public or private repos | <https://codeflow-five.vercel.app/> |
| Self-host | Offline / air-gapped / audit the source | git clone + open index.html |
| CodeFlow Card | Self-updating health SVG on a README | GitHub Action in card/ |
Self-host is a single command — there is no build step:
git clone https://github.com/braedonsaunders/codeflow.git
open codeflow/index.html # or: xdg-open / start, depending on OS