Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

Pathfinder (Architecture Mapper & Unifier)

Maps your codebase into per-feature Mermaid flowcharts, proves where logic is duplicated, and proposes the simplest unified architecture.

Dev & CodingAdvanced90,1397,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 TD where every node is labeled file:line
  • Phase 2 – Duplication hunt: two parallel subagents find within-feature and cross-feature duplication; every claim must cite at least two file:line locations
  • Phase 3–4 – Unified proposal & handoff: the orchestrator writes the consolidation design (explicitly rejecting flags, registries and "flexibility" layers) and emits copy-pasteable /make-plan prompts

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

  1. Pre-refactor audit: "Audit this architecture before we refactor" → feature inventory, per-feature flowcharts, and a cited duplication report.
  2. 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.
  3. Plan handoff: Approve the proposal, then paste a block from 04-handoff-prompts.md into /make-plan to move from analysis into an executable plan.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open your terminal.
  2. Create the skills directory if needed: mkdir -p ~/.claude/skills
  3. Clone the repo: git clone https://github.com/thedotmack/claude-mem.git /tmp/claude-mem
  4. Copy just this skill: cp -r /tmp/claude-mem/plugin/skills/pathfinder ~/.claude/skills/
  5. Verify it landed: ls ~/.claude/skills/pathfinder/SKILL.md
  6. Restart Claude Code, open the project you want analyzed, and ask: "Use pathfinder to map this codebase and find duplicated systems."
  7. (Optional) Install the full claude-mem plugin if you also want the /make-plan and /do commands referenced in the handoff phase.
View source on GitHubLicense: Apache-2.0