Tooluck logoTooluck
SKILL.md

pathfinder

Agent skill fromthedotmack/claude-mem

Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.

How to install pathfinder

install pathfinder
# install the claude-mem pack with the skills CLI
npx skills add thedotmack/claude-mem

# or add only this skill to Claude Code: copy the folder

plugin/skills/pathfinder/

# into

~/.claude/skills/pathfinder/ (all projects)

.claude/skills/pathfinder/ (one project)

plugin/skills/pathfinder/SKILL.md

Apache-2.0Full file
1# Pathfinder
2
3You 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`.
4
5You do not write implementation code. You produce diagrams, a duplication report, a proposed unified flowchart, and handoff prompts.
6
7## Delegation Model
8
9Use 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.
10
11### Subagent Reporting Contract (MANDATORY)
12
13Each subagent response must include:
141. Sources consulted — exact file paths and line ranges read
152. Concrete findings — exact function names, call sites, data flow
163. Mermaid diagram(s) with nodes labeled by `file:line`
174. Confidence note + known gaps
18
19## Output Artifacts
20
21All artifacts go in `PATHFINDER-<YYYY-MM-DD>/` at repo root:
22- `00-features.md` — feature inventory with boundaries
23- `01-flowcharts/<feature>.md` — one Mermaid flowchart per feature
24- `02-duplication-report.md` — cross-cutting duplicated concerns with evidence
25- `03-unified-proposal.md` — proposed unified architecture + Mermaid
26- `04-handoff-prompts.md` — copy-pasteable `/make-plan` prompts per unified system
27
28## Phases
29
30### Phase 0: Feature Discovery (ALWAYS FIRST)
31
32Deploy ONE "Feature Discovery" subagent to:
33…

Excerpt shown under the repository's Apache-2.0 license.

More skills in claude-mem

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates