/pathfinder:mapfrom Pathfinder
Crawls a codebase to discover all user journeys and creates a journey map (journeys.json) with test coverage status. Use when starting UI test coverage work or exploring a new codebase's user flows.
Ships in Pathfinder. 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.
None: SKILL.md is the whole skill.
Crawl the codebase to discover every user journey. This is the foundation — nothing gets tested until it's mapped.
Detect UI framework: Run python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/detect-ui-framework.py" . to identify the test stack. If <testDir>/pathfinder/config.json exists, read the framework from there.
Detect project type and read entry points:
| Stack | Read these |
|---|---|
| Next.js / React | app/ or pages/ routes, layout files, navigation |
| React Native / Expo | app/ (Expo Router) or navigation config, tab layouts |
| Vue / Nuxt | pages/, router/index.ts |
| Flutter | lib/routes/, MaterialApp router, GoRouter config |
| SwiftUI (iOS/macOS) | NavigationStack, TabView, @Observable ViewModels, .sheet/.fullScreenCover modifiers |
| UIKit (iOS) | Storyboards, UINavigationController, segues |
| Android (Compose) | NavHost, NavController, @Composable screens |
| Android (XML) | AndroidManifest.xml, Navigation graph XML |
For each screen/route, identify:
Group into journeys. A journey is an end-to-end user goal:
id containing "ERROR")Check existing test coverage. For each journey step, search for existing tests:
python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/scan-test-coverage.py" .
<testDir>/pathfinder/journeys.json):Key: Reuse step IDs at branching points so the decision tree shows diamond decision nodes. In the example below,
ITEMS-01appears in both "Create Item" and "Delete Item" journeys — this creates a🔀 User action?branch in the combined diagram.
{
"version": "1.0.0",
"project": "<name>",
"framework": "<detected>",
"journeys": [
{
"id": "AUTH",
"name": "Authentication",
"steps": [
{ "id": "AUTH-01", "action": "User opens login page", "screen": "LoginView", "tested": false },
{ "id": "AUTH-02", "action": "User enters credentials", "screen": "LoginView", "tested": true, "testFile": "e2e/auth.spec.ts" },
{ "id": "AUTH-03", "action": "User sees dashboard after login", "screen": "DashboardView", "tested": false }
]
},
{
"id": "ITEMS-CREATE",
"name": "Create Item",
"steps": [
{ "id": "ITEMS-01", "action": "User sees items list", "screen": "ItemsListView", "tested": true, "testFile": "e2e/items.spec.ts" },
{ "id": "ICREATE-01", "action": "User taps add button", "screen": "ItemsListView", "tested": false },
{ "id": "ICREATE-02", "action": "User fills form and saves", "screen": "ItemFormView", "tested": false }
]
},
{
"id": "ITEMS-DELETE",
"name": "Delete Item",
"steps": [
{ "id": "ITEMS-01", "action": "User sees items list", "screen": "ItemsListView", "tested": true, "testFile": "e2e/items.spec.ts" },
{ "id": "IDEL-01", "action": "User swipes to delete", "screen": "ItemsListView", "tested": false },
{ "id": "IDEL-02", "action": "User confirms deletion", "screen": "ItemsListView", "tested": false }
]
},
{
"id": "ERROR",
"name": "Error Handling",
"steps": [
{ "id": "ERROR-01", "action": "API call fails during login", "screen": "LoginView", "tested": false },
{ "id": "ERROR-02", "action": "Error alert shown with Try Again option", "screen": "LoginView", "tested": false }
]
}
]
}
python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/validate-journeys.py" <testDir>/pathfinder/journeys.json
git add <testDir>/pathfinder/journeys.json && git commit -m "Map: Discover N journeys, M steps (X tested, Y pending)"| Value | Meaning |
|---|---|
"tested": true | Step has a passing UI test |
"tested": false | Step has no test coverage |
"tested": "partial" | Test written but disabled, or implicitly covered |
When marking "partial", add a "note" field explaining why (e.g., "note": "test disabled — needs mock API failure").
ITEMS-01 step ID. The diagram generator merges nodes with identical IDs — a node with multiple outgoing edges becomes a 🔀 User action? decision diamond.ERROR journey for failure paths. The decision tree generator attaches error branches to loading/API steps automatically by matching screen names.TransactionConfirmationView) so the decision tree can group steps by screen.tested: false.<testDir>/pathfinder/journeys.json — machine-readable journey map with coverage statusWhat SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/blazeGenerates Mermaid flowcharts and decision trees from journeys.json showing test coverage with before/after comparison. Use when visualizing coverage, generating diagrams, or showing progress since last sprint./pathfinderMaps user journeys in any web or mobile codebase, visualizes UI/E2E test coverage as color-coded Mermaid diagrams, and writes framework-correct end-to-end tests to fill the gaps. Use whenever the user wants to find untested user flows, audit or visualize UI/E2E test coverage, see which screens or journeys are tested, track coverage over time, or generate E2E/UI tests — for web (Playwright, Cypress), iOS (XCUITest), Android (Espresso), React Native (Detox, Maestro), or Flutter — even when they don't say the words 'coverage map'. Not for unit tests, API/backend tests, or debugging a single existing test./scoutWrites UI tests for untested steps in the journey map using framework-correct selectors, waits, and patterns. Use when writing tests to fill coverage gaps or generating E2E tests for untested journey steps./summitRuns all tests, updates the journey map, regenerates diagrams with before/after comparison, and reports coverage score. Use when finalizing a coverage sprint, verifying test results, or preparing coverage reports for a PR.npx claudepluginhub srpadrono/pathfinder --plugin pathfinderOther plugins' skills for the same job