pathfinder
यह क्या करती है
Pathfinder आपको समझने में मदद करता है कि कोई computer program कैसे व्यवस्थित है। यह flowcharts (diagrams) बनाता है जो दिखाते हैं कि program के अलग-अलग हिस्से एक साथ कैसे काम करते हैं, उन हिस्सों को पहचानता है जो अलग-अलग जगह एक ही काम करते हैं, और पूरी चीज़ को व्यवस्थित करने का एक सरल तरीका सुझाता है।
कब इस्तेमाल करें
- ✓जब आप complex code को जल्दी से समझना चाहते हों।
- ✓जब आपको code के कुछ हिस्से दोहराए गए दिखें और आप उन्हें एक करना चाहते हों।
- ✓किसी program में बड़े बदलाव (refactoring) करने से पहले।
Skill का लिंक
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/pathfinder/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस code का structure समझाओ और दोहराए गए हिस्से ढूंढो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह पहले program को 'features' में बांटता है। फिर हर feature जिस रास्ते पर चलता है उसका चित्र बनाता है और उनके बीच दोहराया गया code ढूंढता है। आखिर में यह एक सरल और एक जैसी व्यवस्था सुझाता है और दूसरे tools के लिए action plan बनाने के निर्देश तैयार करता है।
तकनीकी सामग्री (मूल 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' क्या होते हैं?
ये ऐसे diagrams होते हैं जो किसी प्रक्रिया या program में काम के क्रम या steps को दिखाते हैं।
'unify architecture' का क्या मतलब है?
इसका मतलब है program के अलग-अलग हिस्सों में जिन कामों को बार-बार या जटिल तरीके से किया जा रहा है, उनके लिए कोई सरल और व्यवस्थित तरीका ढूंढना।
क्या Pathfinder program को ठीक करने वाला code लिखता है?
नहीं, यह सिर्फ मौजूदा code का विश्लेषण करता है, समस्याएं पहचानता है और दूसरे tools के लिए ठीक करने की योजना (निर्देश) बनाता है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
Agent Cost Report
101kआपके एजेंट की गतिविधियों की विस्तृत लागत रिपोर्ट बनाता है। दिखाता है कि टोकन और सेवाओं पर कितना खर्च हुआ।
claude-mem-install
101kयह आपके एजेंट को अलग-अलग वातावरण में Claude-Mem सेट अप करने में मदद करता है। इसमें लोकल या रिमोट वर्कर में से चुनने और observation कॉन्फ़िगर करने की सुविधा है।
mem-search
101kयह आपके एजेंट को पुरानी memories में खोजने देता है। पिछले सेशन के पुराने समाधान या काम याद करने में यह उपयोगी है।
host-observer
101kयह आपके एजेंट को Claude-Mem observer के काम का जवाब देने में मदद करता है। यह सिर्फ 'skip_summary' या पूरा XML observation ही लौटाता है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।