pathfinder
하는 일
Pathfinder는 컴퓨터 프로그램이 어떻게 구성되어 있는지 이해하도록 돕습니다. 프로그램의 여러 부분이 어떻게 함께 작동하는지 보여 주는 다이어그램(순서도)을 만들고, 같은 일을 여러 곳에서 하는 부분을 찾아내며, 더 단순한 구성 방법을 제안합니다.
사용하는 경우
- ✓복잡한 코드를 빠르게 이해하고 싶을 때.
- ✓코드의 일부가 중복되어 있어 하나로 합치고 싶을 때.
- ✓프로그램에 큰 변경(리팩터링)을 하기 전.
스킬 링크
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/pathfinder/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 코드의 구조를 이해하고 중복된 부분을 찾도록 도와주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
먼저 프로그램을 '기능'으로 나눕니다. 그다음 각 기능이 따르는 경로를 그리고, 기능 사이의 중복 코드를 찾습니다. 마지막으로 하나의 더 단순한 구성을 제안하고, 다른 도구가 실행 계획을 만들 수 있도록 지침을 작성합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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:
- Sources consulted — exact file paths and line ranges read
- Concrete findings — exact function names, call sites, data flow
- Mermaid diagram(s) with nodes labeled by
file:line - 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:
- Walk the source tree (not built artifacts) and read top-level README / CLAUDE.md
- Propose feature boundaries based on directory structure, import graph, and naming
- 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:
- Trace the feature's primary happy path from entry point to terminal state
- Identify side effects (DB writes, HTTP calls, file I/O, process spawns)
- Note error and fallback branches but do not let them dominate the diagram
- Produce a Mermaid
flowchart TDwith every node labeledName<br/>file:line - 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:
- Propose the simplest unified design (one path, one store, one handler — whatever applies)
- Name the consolidated component and its single entry point
- Show what each old call site becomes
- 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:
…
자주 묻는 질문
'순서도(flowcharts)'는 무엇인가요?
과정이나 프로그램에서 작업의 흐름이나 단계의 순서를 보여 주는 다이어그램입니다.
'아키텍처 통합'은 무엇을 뜻하나요?
여러 부분에서 반복적이거나 복잡하게 처리되는 작업을 더 단순하고 체계적으로 다루는 방법을 찾는다는 뜻입니다.
Pathfinder가 프로그램을 고치는 코드를 작성하나요?
아닙니다. 기존 코드를 분석하고 문제를 찾아내며, 다른 도구가 수정할 수 있도록 계획(지침)만 만듭니다.
상세 정보
작성자의 원본 설명
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.
repo: thedotmack/claude-mem
인기도
- GitHub 스타
- 101k
- 순위
- #1277
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
Agent Cost Report
101k에이전트가 활동에 대한 자세한 비용 보고서를 만듭니다. 토큰과 서비스에 얼마를 썼는지 보여 줍니다.
claude-mem-install
101k여러 환경에서 Claude-Mem을 설정하도록 에이전트를 돕습니다. 로컬 또는 원격 워커를 고르고 관찰을 설정할 수 있습니다.
mem-search
101k에이전트가 과거의 기억을 검색하도록 합니다. 이전 해결책이나 오래된 세션의 작업을 떠올리는 데 유용합니다.
host-observer
101kClaude-Mem 관찰자 작업에 에이전트가 응답하도록 돕습니다. 'skip_summary' 또는 전체 XML 관찰 내용으로만 응답합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.