본문으로 건너뛰기
cccskills
무료GitHub에 공개

pathfinder

Map a codebase into feature flowcharts, find duplicated logic, and propose a simpler shared architecture. Produce source-linked diagrams, an evidence-based duplication report, and prompts for handing each proposed system to /make-plan.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Map feature flows before a refactor
  • Find duplicated logic within and across features
  • Compare a unified architecture with existing call sites
  • Prepare per-system prompts for /make-plan

포함된 파일(1)

  • SKILL.md6.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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:

  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.

Key Principles

  • Evidence over intuition — every diagram node and duplication claim cites file:line
  • Current state before ideal state — Phases 0–2 describe what IS; Phase 3 describes what SHOULD BE
  • Simplest unification wins — prefer deletion over abstraction; prefer one path over configurable paths
  • Specialization is not duplication — two components serving different trust models or data sources are legitimate even if their code looks similar
  • Handoff, don't implement — Pathfinder ends at plan prompts; /make-plan and /do take it from there

Failure Modes to Prevent

  • Drawing flowcharts from memory instead of source — redeploy subagent with grep evidence requirement
  • Proposing unification of legitimately specialized components — re-examine trust/data-source divergence
  • Handoff prompts that lack concrete call sites — rewrite with Phase 2 evidence
  • Skipping Phase 0 boundary review — fanning out on bad feature boundaries wastes all of Phase 1

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Turn agent activity and transcript token counts into a cost report organized around completed outcomes. Separate estimates from measured spending, examine waste and rework, and export readable HTML with supporting JSON, CSV, and evidence.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing weekly agent spending and completed work
  • Comparing costs per completed outcome
  • Investigating the cost of loops and rework
thedotmack/claude-mem10.2만2026년 10월 20일 업데이트

babysit

무료

Monitor a pull request through reviews and automated checks, verify reported issues against the code, and make focused fixes. Repeat testing and review checks until actionable comments and unresolved threads are cleared and the request is ready to merge.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Monitoring a pull request while automated checks run
  • Verifying and fixing review comments
  • Checking unresolved threads before a merge
thedotmack/claude-mem10.2만2026년 10월 20일 업데이트

Delegate a coding task to a subagent that runs build, merges the ready pull request, and continues from the updated main branch into release, connecting implementation and release work in one automated sequence.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Delegating a coding task through release
  • Connecting a ready PR merge to release work
  • Running build and release in sequence
thedotmack/claude-mem10.2만2026년 10월 20일 업데이트

ccs-align

무료

Check a local claude-mem worker, refresh viewer-specific caches of important observations, and exclude or restore records without deleting history. Inspect rules across shared, project, and agent layers, then append conflicts to a report.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking worker health and refreshing important observations
  • Excluding cached records while preserving source history
  • Restoring previously excluded observations to a cache
thedotmack/claude-mem10.2만2026년 10월 20일 업데이트

childhood

무료

Monitor a shipped release by checking published packages, live services, installed plugins, and late CI results or user reports. Verify regressions, prepare authorized fixes, and report release health with evidence and any remaining verification gaps.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking package contents after publication
  • Verifying changed user flows in production
  • Confirming installed plugins use the shipped version
thedotmack/claude-mem10.2만2026년 10월 20일 업데이트

Set up claude-mem in Cursor with a local or remote worker, the process that runs its work. Follow configuration steps for remote inference through cmem.ai or a local observer using the host's login.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Installing claude-mem with a local worker in Cursor
  • Connecting Cursor to a remote claude-mem worker
  • Configuring host-login or cmem.ai inference
thedotmack/claude-mem10.2만2026년 10월 20일 업데이트

thedotmack의 스킬 모두 보기

이 스킬의 문제 신고