🧭 Pathfinder
Map every user journey. See what's tested. Fill the gaps.
An AI-agent skill that discovers user journeys in any codebase, visualizes test coverage with interactive Mermaid diagrams, and generates framework-correct UI tests to close the gaps.

Works with: Claude Code (plugin) · Codex · Gemini CLI · Cursor
Installation · How It Works · Supported Frameworks · Commands
🎯 The Problem
You have tests. But can you answer: "Which user journeys are actually covered?"
Line coverage says 78%. But can a user sign up, upload a file, and view the result end-to-end? Nobody knows. There's no map.
Pathfinder fixes this. It crawls your codebase, discovers every user journey, and produces a living coverage map — so you can see exactly where the gaps are and fill them systematically.
https://github.com/user-attachments/assets/0d42691c-98a1-4f2a-a27c-a4f0e5980ea6
🔍 How It Works
Pathfinder runs in four phases, each named after trail exploration:
🗺️ Map
Discover the terrain
Deep dives into routes, screens, components, and API calls. Groups them into user journeys. Checks which steps already have tests.
|
🔥 Blaze
Mark the trail
Generates Mermaid flowcharts with ✅ tested and ❌ untested markers. Produces a coverage summary table.
|
🔭 Scout
Explore the gaps
Generates framework-correct test skeletons for every ❌ step. Appends to existing files or creates new ones matching your patterns.
|
⛰️ Summit
Reach the peak
Runs all tests, reconciles results, updates the diagrams, and computes a coverage score. ❌ → ✅
|
flowchart LR
MAP["**/map**\nDiscover journeys"]
BLAZE["**/blaze**\nVisualize coverage"]
SCOUT["**/scout**\nWrite tests"]
SUMMIT["**/summit**\nRun & verify"]
J[("journeys.json\n\nSource of truth")]
MAP ==> BLAZE ==> SCOUT ==> SUMMIT
SUMMIT -.->|"Repeat"| MAP
MAP --- J
BLAZE --- J
SCOUT --- J
SUMMIT --- J
style MAP fill:#1f6feb,stroke:#1158c7,color:#fff,stroke-width:2px
style BLAZE fill:#e3b341,stroke:#b8860b,color:#000,stroke-width:2px
style SCOUT fill:#2ea043,stroke:#1a7f37,color:#fff,stroke-width:2px
style SUMMIT fill:#8957e5,stroke:#6e40c9,color:#fff,stroke-width:2px
style J fill:#161b22,stroke:#30363d,color:#c9d1d9,stroke-width:2px
linkStyle 4 stroke:#1f6feb,stroke-width:1px,stroke-dasharray:4
linkStyle 5 stroke:#e3b341,stroke-width:1px,stroke-dasharray:4
linkStyle 6 stroke:#2ea043,stroke-width:1px,stroke-dasharray:4
linkStyle 7 stroke:#8957e5,stroke-width:1px,stroke-dasharray:4
The cycle repeats. New code → /map → new ❌ steps → /scout → /summit. The diagram always reflects reality.
📊 What You Get
Journey Flowcharts
Every user journey becomes a visual flowchart — green = tested, red = gap:
flowchart TD
subgraph /login
AUTH_01(✅ Open login page)
AUTH_02(✅ Enter credentials)
AUTH_03[❌ See error on wrong password]
end
subgraph /dashboard
AUTH_04(✅ See dashboard after login)
AUTH_05[❌ Logout]
end
AUTH_01 --> AUTH_02
AUTH_02 --> AUTH_03
AUTH_03 -.-> AUTH_04
AUTH_04 --> AUTH_05
style AUTH_01 fill:#2ea043,stroke:#1a7f37,color:#fff
style AUTH_02 fill:#2ea043,stroke:#1a7f37,color:#fff
style AUTH_03 fill:#f85149,stroke:#da3633,color:#fff
style AUTH_04 fill:#2ea043,stroke:#1a7f37,color:#fff
style AUTH_05 fill:#f85149,stroke:#da3633,color:#fff
Coverage Table
| Journey | Steps | Tested | Coverage |
|--------------------|-------|--------|-------------|
| 🔐 Authentication | 5 | 3 | 🟡 60.0% |
| 📤 File Upload | 8 | 0 | 🔴 0.0% |
| 📄 Reports | 12 | 7 | 🟡 58.3% |
| 💬 Chat | 6 | 6 | 🟢 100.0% |
| **Total** | **31**| **16** | **51.6%** |
Coverage Score
| Score | Status | Meaning |
|---|
| 🟢 80%+ | Excellent | Ship it |
| 🟡 50–79% | Acceptable | Document the gaps |
| 🔴 <50% | Insufficient | Keep scouting |
🏪 Example
Here's Pathfinder on a food delivery app's checkout module — 5 journeys, 28 steps, taken from 52% to 100% coverage in one session.
📸 Before (52%)