본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)101k · #1277

pathfinder

하는 일

Pathfinder는 컴퓨터 프로그램이 어떻게 구성되어 있는지 이해하도록 돕습니다. 프로그램의 여러 부분이 어떻게 함께 작동하는지 보여 주는 다이어그램(순서도)을 만들고, 같은 일을 여러 곳에서 하는 부분을 찾아내며, 더 단순한 구성 방법을 제안합니다.

사용하는 경우

  • ✓복잡한 코드를 빠르게 이해하고 싶을 때.
  • ✓코드의 일부가 중복되어 있어 하나로 합치고 싶을 때.
  • ✓프로그램에 큰 변경(리팩터링)을 하기 전.

스킬 링크

https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/pathfinder/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/pathfinder/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  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

Output Artifacts

All artifacts go in PATHFINDER-<YYYY-MM-DD>/ at repo root:

  • 00-features.md — feature inventory with boundaries
  • 01-flowcharts/<feature>.md — one Mermaid flowchart per feature
  • 02-duplication-report.md — cross-cutting duplicated concerns with evidence
  • 03-unified-proposal.md — proposed unified architecture + Mermaid
  • 04-handoff-prompts.md — copy-pasteable /make-plan prompts per unified system

Phases

Phase 0: Feature Discovery (ALWAYS FIRST)

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.

Phase 1: Per-Feature Flowcharts (FAN OUT)

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.

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:

  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:

  • 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬