
Pathfinder
- 3.7k installs
- 89.6k repo stars
- Updated August 4, 2026
- thedotmack/claude-mem
pathfinder is an orchestrator agent skill that maps feature flowcharts, documents duplication with file:line evidence, proposes unified architecture, and generates /make-plan handoff prompts.
About
pathfinder is an orchestrator skill that maps a codebase into feature-grouped flowcharts, hunts duplicated concerns across features, proposes a unified architecture, and emits per-system /make-plan handoff prompts without writing implementation code. Phase 0 deploys one Feature Discovery subagent to propose boundaries from the source tree, README, and import graph, writing 00-features.md before any fan-out. Phase 1 runs one Flowchart subagent per feature in parallel, producing Mermaid flowchart TD diagrams with every node labeled by file:line plus side effects and external dependencies. Phase 2 runs within-feature and cross-feature duplication subagents, requiring every claim to cite at least two file:line locations in 02-duplication-report.md. Phase 3 has the orchestrator write 03-unified-proposal.md, rejecting unnecessary abstraction layers, dual-path feature flags, and registry factories when a switch suffices. Phase 4 outputs copy-pasteable /make-plan prompts in 04-handoff-prompts.md listing consolidated entry points and exact call sites to rewrite. Subagents must report sources consulted, concrete findings, diagrams, and confidence notes; the orchestrator redeploys reports la.
- Orchestrator-only synthesis; subagents handle discovery, tracing, and diagram extraction.
- Phase 0 feature boundary approval gates all later fan-out work.
- Mermaid flowcharts require file:line labels on every node plus side-effect notes.
- Duplication reports must cite at least two file:line locations per cross-cutting claim.
- Ends with per-system /make-plan handoff prompts instead of implementation code.
Pathfinder by the numbers
- 3,707 all-time installs (skills.sh)
- +205 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #53 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
pathfinder capabilities & compatibility
- Capabilities
- feature boundary discovery from source tree · per feature mermaid flowchart generation · within feature and cross feature duplication ana · unified architecture proposal with anti pattern · per system /make plan handoff prompt authoring
- Use cases
- code review · planning
What pathfinder says it does
You do not write implementation code. You produce diagrams, a duplication report, a proposed unified flowchart, and handoff prompts.
npx skills add https://github.com/thedotmack/claude-mem --skill pathfinderAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 3.7k |
|---|---|
| repo stars | ★ 89.6k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 4, 2026 |
| Repository | thedotmack/claude-mem ↗ |
How do I understand duplicated systems across features and define the simplest unified architecture before refactoring?
Map a codebase into feature-grouped flowcharts, document duplicated concerns with file:line evidence, and propose unified architecture handoffs.
Who is it for?
Teams auditing architecture before a refactor who need evidence-backed flowcharts and unification plans.
Skip if: Skip when you want direct code changes; pathfinder hands off to /make-plan and /do instead of implementing.
When should I use this skill?
User asks to find the ideal path, unify duplicated systems, or audit architecture before a refactor.
What you get
A PATHFINDER dated folder with feature inventory, per-feature flowcharts, duplication report, unified proposal diagram, and handoff prompts.
- Feature inventory
- Duplication report
- Unified proposal flowchart
By the numbers
- Produces 4 artifact types: flowcharts, duplication report, unified flowchart, and make-plan prompts
Files
Pathfinder
You are an ORCHESTRATOR. Map the codebase into feature-grouped flowcharts, identify duplicated concerns, propose the simplest unified architecture, and hand off per-system plans to /make-plan.
You do not write implementation code. You produce diagrams, a duplication report, a proposed unified flowchart, and handoff prompts.
Delegation Model
Use subagents for discovery and extraction (file reading, flow tracing, grep, diagramming). Keep synthesis (deciding feature boundaries, picking unification strategies, final flowchart) with the orchestrator. Reject subagent reports that lack source citations and redeploy.
Subagent Reporting Contract (MANDATORY)
Each subagent response must include: 1. Sources consulted — exact file paths and line ranges read 2. Concrete findings — exact function names, call sites, data flow 3. Mermaid diagram(s) with nodes labeled by file:line 4. Confidence note + known gaps
Output Artifacts
All artifacts go in PATHFINDER-<YYYY-MM-DD>/ at repo root:
00-features.md— feature inventory with boundaries01-flowcharts/<feature>.md— one Mermaid flowchart per feature02-duplication-report.md— cross-cutting duplicated concerns with evidence03-unified-proposal.md— proposed unified architecture + Mermaid04-handoff-prompts.md— copy-pasteable/make-planprompts per unified system
Phases
Phase 0: Feature Discovery (ALWAYS FIRST)
Deploy ONE "Feature Discovery" subagent to: 1. Walk the source tree (not built artifacts) and read top-level README / CLAUDE.md 2. Propose feature boundaries based on directory structure, import graph, and naming 3. Return a flat list of features with: name, entry points (file:line), core files, brief purpose
Orchestrator reviews the proposal, adjusts boundaries if needed, writes 00-features.md. Do NOT fan out until feature boundaries are approved.
Phase 1: Per-Feature Flowcharts (FAN OUT)
Deploy ONE "Flowchart" subagent per feature in parallel. Each receives only its feature's scope. Each must: 1. Trace the feature's primary happy path from entry point to terminal state 2. Identify side effects (DB writes, HTTP calls, file I/O, process spawns) 3. Note error and fallback branches but do not let them dominate the diagram 4. Produce a Mermaid flowchart TD with every node labeled Name<br/>file:line 5. List external dependencies (other features it calls into) at the bottom
Orchestrator writes each flowchart to 01-flowcharts/<feature>.md. Reject any diagram missing file:line labels.
Phase 2: Duplication Hunt
Deploy TWO subagents in parallel:
"Within-Feature Duplication" subagent:
- For each feature, find repeated code/logic patterns inside the feature only
- Report only duplications worth consolidating (ignore trivial repetition)
"Cross-Feature Duplication" subagent:
- Compare flowcharts across features for concerns that appear in multiple places
- Examples of what to look for: multiple capture paths, parallel queue implementations, duplicated storage/migration code, repeated agent scaffolding, parallel parsing layers
- For each duplication, report: (a) the concern, (b) every location with
file:line, (c) why they diverged, (d) whether the divergence is legitimate specialization or accidental
Orchestrator synthesizes both into 02-duplication-report.md. Every duplication claim must cite ≥2 file:line locations.
Phase 3: Unified Proposal (ORCHESTRATOR)
The orchestrator writes 03-unified-proposal.md itself — do not delegate synthesis.
For each duplicated concern from Phase 2 that is NOT legitimate specialization: 1. Propose the simplest unified design (one path, one store, one handler — whatever applies) 2. Name the consolidated component and its single entry point 3. Show what each old call site becomes 4. Call out any loss of capability and whether it's acceptable
End the document with ONE combined Mermaid flowchart showing the proposed unified system. Nodes still labeled with target file:line (new or existing) where knowable.
Anti-patterns to reject in your own proposal:
- Adding a new abstraction layer "for flexibility"
- Keeping both old paths behind a feature flag
- Introducing a registry/factory when a switch statement suffices
- Preserving divergent behavior "just in case"
Phase 4: Per-System Handoff Prompts
For each unified system in the proposal, write a ready-to-run /make-plan prompt to 04-handoff-prompts.md. Each prompt must: 1. State the target unified component and its single entry point 2. List the exact call sites to rewrite (from Phase 2 evidence) 3. Cite the relevant flowchart file from 01-flowcharts/ 4. Include anti-pattern guards specific to this system
Format each as a fenced code block the user can copy directly into /make-plan.
Key Principles
- Evidence over intuition — every diagram node and duplication claim cites
file:line - Current state before ideal state — Phases 0–2 describe what IS; Phase 3 describes what SHOULD BE
- Simplest unification wins — prefer deletion over abstraction; prefer one path over configurable paths
- Specialization is not duplication — two components serving different trust models or data sources are legitimate even if their code looks similar
- Handoff, don't implement — Pathfinder ends at plan prompts;
/make-planand/dotake it from there
Failure Modes to Prevent
- Drawing flowcharts from memory instead of source — redeploy subagent with grep evidence requirement
- Proposing unification of legitimately specialized components — re-examine trust/data-source divergence
- Handoff prompts that lack concrete call sites — rewrite with Phase 2 evidence
- Skipping Phase 0 boundary review — fanning out on bad feature boundaries wastes all of Phase 1
Related skills
How it compares
Pre-refactor architecture orchestrator with cited flowcharts, not an inline coding refactor skill.
FAQ
What artifacts does pathfinder produce?
00-features.md, per-feature flowcharts, 02-duplication-report.md, 03-unified-proposal.md, and 04-handoff-prompts.md under PATHFINDER-<date>/.
Does pathfinder write implementation code?
No. It produces diagrams, duplication evidence, a unified proposal, and /make-plan prompts for downstream implementation.
Is Pathfinder safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.