install
Use this when setting up claude-mem on Cursor: local or remote worker, local host-login observer or remote cmem.ai inference.
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
$ npx -y skills add thedotmack/claude-mem --skill pathfinder --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pathfinderContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: pathfinder description: 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.
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.
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.
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
All artifacts go in `PATHFINDER-<YYYY-MM-DD>/` at repo root:
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.
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.
Deploy TWO subagents in parallel:
**"Within-Feature Duplication"** subagent:
**"Cross-Feature Duplication"** subagent:
Orchestrator synthesizes both into `02-duplication-report.md`. Every duplication claim must cite ≥2 `file:line` locations.
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:**
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`.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Repo: thedotmack/claude-mem
Use this when setting up claude-mem on Cursor: local or remote worker, local host-login observer or remote cmem.ai inference.
Use this when the user asks to search memory, "did we already solve this?", "how did we do X last time?", or wants work from previous sessions.
Use this when fulfilling claude-mem observer jobs on Grok Bot: reply only skip_summary or one full observation XML, never prose.
This skill should be used when the user asks to "set up claude-mem", "pair claude-mem", "connect cmem", "add my cmem key", "set up cloud sync in Cowork", or…