/pathfinder:blazefrom Pathfinder
Generates Mermaid flowcharts and decision trees from journeys.json to visualize test coverage with before/after comparison. Useful for spotting coverage gaps and tracking progress.
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.
Transform the journey map into visual Mermaid diagrams that show exactly what's tested and what's not.
<testDir>/pathfinder/journeys.jsonpython3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/generate-diagrams.py" <testDir>/pathfinder/journeys.jsonThis creates <testDir>/pathfinder/blazes.md with multiple diagram types:
A table at the top explains all symbols, colours, and arrow types used:
| Symbol | Meaning |
|---|---|
| 🟢 ✅ | Tested — step has a passing UI test |
| 🟡 ⚠️ | Partial — test written but disabled or implicitly covered |
| 🔴 ❌ | Untested — no UI test coverage |
| 🔵 🔀 | Decision point — user chooses between paths |
| ⚡ | Error path — API failure branch |
──▶ | Same-screen transition |
╌╌▶ | Cross-screen navigation |
All journeys merged into one flowchart showing every branching path:
{{"🔀"}} nodes at decision points where the user chooses⚡ API Error arrowsOne Mermaid flowchart TD per journey with colour-coded nodes.
Node shapes by status:
| Status | Shape | Colour |
|---|---|---|
| Tested | ("label") rounded | 🟢 #2ea043 green |
| Partial | [/"label"/] parallelogram | 🟡 #d29922 amber |
| Untested | ["label"] rectangle | 🔴 #f85149 red |
| Decision | {{"label"}} diamond | 🔵 #1f6feb blue |
Arrow types:
| Type | When used |
|---|---|
--> solid | Steps on the same screen |
-.-> dashed | Navigation across screens |
| `-.-> | "⚡ API Error" |
On first run, a baseline is auto-saved to <testDir>/pathfinder/journeys-baseline.json.
On subsequent runs, if coverage has changed, the output includes:
| Command | What it does |
|---|---|
python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/generate-diagrams.py" journeys.json | Normal run; auto-creates baseline on first run |
python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/generate-diagrams.py" journeys.json --save-baseline | Reset baseline to current coverage |
python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/generate-diagrams.py" journeys.json --clear-baseline | Remove baseline; next run creates a fresh one |
Use --save-baseline after completing a coverage sprint to reset the "before" snapshot for the next round.
git add <testDir>/pathfinder/blazes.md && git commit -m "Diagram: N journeys mapped (X% coverage)"After writing tests in the scout phase, re-run:
python3 "${CLAUDE_SKILL_DIR}/../pathfinder/scripts/generate-diagrams.py" <testDir>/pathfinder/journeys.json
The diagram updates for newly tested steps, and the before/after comparison shows progress.
() in labels are auto-escaped to [] to avoid Mermaid shape conflictsjourneys.json is missing, invoke /map first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub srpadrono/pathfinder --plugin pathfinder5 skills in this plugin
/mapCrawls 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, auditing existing coverage, or exploring a new codebase's user flows./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.Other plugins' skills for the same job