Pathfinder (Architecture Mapper & Unifier)
Maps your codebase into per-feature Mermaid flowcharts, proves where logic is duplicated, and proposes the simplest unified architecture.
Dev & CodingAdvanced★ 90,139⑂ 7,846AI score 7/10Last updated: Aug 9, 2026
What it does
Pathfinder runs as an orchestrator skill — it never writes implementation code. Instead it fans out subagents for discovery and keeps synthesis for itself:
- Phase 0 – Feature discovery: proposes feature boundaries from directory structure, import graph and naming; writes
00-features.md - Phase 1 – Per-feature flowcharts: traces each feature's happy path from entry point to terminal state and emits a Mermaid
flowchart TDwhere every node is labeledfile:line - Phase 2 – Duplication hunt: two parallel subagents find within-feature and cross-feature duplication; every claim must cite at least two
file:linelocations - Phase 3–4 – Unified proposal & handoff: the orchestrator writes the consolidation design (explicitly rejecting flags, registries and "flexibility" layers) and emits copy-pasteable
/make-planprompts
All artifacts land in PATHFINDER-<YYYY-MM-DD>/ at the repo root.
Who it's for
- Engineers about to attempt a large refactor who need an evidence-backed map of the current state
- New joiners who must understand an unfamiliar codebase through diagrams fast
- Tech leads who need a duplication report with citations rather than gut feeling
Examples
- Pre-refactor audit: "Audit this architecture before we refactor" → feature inventory, per-feature flowcharts, and a cited duplication report.
- Collapsing duplicate systems: In a repo with two queue implementations and three capture paths, ask it to "find the ideal path" and get a single-entry-point design plus what each old call site becomes.
- Plan handoff: Approve the proposal, then paste a block from
04-handoff-prompts.mdinto/make-planto move from analysis into an executable plan.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugin/skills/pathfinder folder from the GitHub repo thedotmack/claude-mem into my ~/.claude/skills/pathfinder/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/thedotmack/claude-mem.git /tmp/claude-mem && mkdir -p ~/.claude/skills && cp -r /tmp/claude-mem/plugin/skills/pathfinder ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open your terminal.
- Create the skills directory if needed:
mkdir -p ~/.claude/skills - Clone the repo:
git clone https://github.com/thedotmack/claude-mem.git /tmp/claude-mem - Copy just this skill:
cp -r /tmp/claude-mem/plugin/skills/pathfinder ~/.claude/skills/ - Verify it landed:
ls ~/.claude/skills/pathfinder/SKILL.md - Restart Claude Code, open the project you want analyzed, and ask: "Use pathfinder to map this codebase and find duplicated systems."
- (Optional) Install the full claude-mem plugin if you also want the
/make-planand/docommands referenced in the handoff phase.
View source on GitHub ↗License: Apache-2.0