Tldr Router

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Maps questions to the optimal tldr command. Use this to pick the right layer

AI 產生的概覽

將程式碼問題對應到合適的 tldr 分析指令,例如 tree、context、cfg、dfg 或 slice。

功能
這個技能是一份路由指南,會把開發者對程式碼庫的問題對應到合適的 tldr 指令。它提供問題到指令的對應、決策樹,以及意圖關鍵詞表,涵蓋導覽、架構、複雜度、資料流、影響分析與除錯。它也說明 tldr-read-enforcer 與 tldr-context-inject 鉤子可自動偵測意圖並進行路由,並列出手動覆寫指令。
適用情境
當你需要為關於陌生程式碼庫的問題挑選正確的 tldr 分析層時使用。適合初步了解程式碼、呼叫關係探索、複雜度檢查、資料流追蹤、影響分析與除錯調查。
執行需求
需要安裝並可使用 tldr 命令列工具;這個技能本身不含指令碼,只提供說明。文中提到的 tldr-read-enforcer 與 tldr-context-inject 鉤子屬於選用的自動路由方式。

TLDR Smart Router

Maps questions to the optimal tldr command. Use this to pick the right layer.

Question → Command Mapping

"What files/functions exist?"

bash
tldr tree . --ext .py          # File overviewtldr structure src/ --lang python  # Function/class overview

Use: Starting exploration, orientation

"What does X call / who calls X?"

bash
tldr context <function> --project . --depth 2tldr calls src/

Use: Understanding architecture, finding entry points

"How complex is X?"

bash
tldr cfg <file> <function>

Use: Identifying refactoring candidates, understanding difficulty

"Where does variable Y come from?"

bash
tldr dfg <file> <function>

Use: Debugging, understanding data flow

"What affects line Z?"

bash
tldr slice <file> <function> <line>

Use: Impact analysis, safe refactoring

"Search for pattern P"

bash
tldr search "pattern" src/

Use: Finding code, structural search

Decision Tree

START  │  ├─► "What exists?" ──► tree / structure  │  ├─► "How does X connect?" ──► context / calls  │  ├─► "Why is X complex?" ──► cfg  │  ├─► "Where does Y flow?" ──► dfg  │  ├─► "What depends on Z?" ──► slice  │  └─► "Find something" ──► search

Intent Detection Keywords

IntentKeywordsLayer
Navigation"what", "where", "find", "exists"tree, structure, search
Architecture"calls", "uses", "connects", "depends"context, calls
Complexity"complex", "refactor", "branches", "paths"cfg
Data Flow"variable", "value", "assigned", "comes from"dfg
Impact"affects", "changes", "slice", "dependencies"slice/pdg
Debug"bug", "error", "investigate", "broken"cfg + dfg + context

Automatic Hook Integration

The tldr-read-enforcer and tldr-context-inject hooks automatically:

  1. Detect intent from your messages
  2. Route to appropriate layers
  3. Inject context into tool calls

You don't need to manually run these commands - the hooks do it for you.

Manual Override

If you need a specific layer the hooks didn't provide:

bash
# Force specific analysistldr cfg path/to/file.py function_nametldr dfg path/to/file.py function_nametldr slice path/to/file.py function_name 42

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/tldr-router提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架