Tldr Overview

parcadei/continuous-claude-v3/.claude/skills/tldr-overview

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

Get a token-efficient overview of any project using the TLDR stack

AI 產生的概覽

使用 TLDR 工具鏈產生節省 token 的專案概覽,涵蓋檔案樹、程式結構、呼叫圖與複雜度。

功能
此技能引導代理對專案進行四步勘查:列出檔案樹、擷取程式結構(函式、類別、匯入)、建立跨檔案呼叫圖以找出進入點,並量測關鍵函式的循環複雜度。接著把結果整理成固定格式的概覽報告,包含結構、關鍵元件、架構與複雜度熱點等區段,並附上 token 成本比較。文件也提供完成相同步驟的 Python 程式介面。
適用情境
適用於剛開始接觸陌生專案、被要求概述專案或說明程式庫內容時,也可透過 /overview 或 /tldr-overview 觸發。不適用於已經熟悉的專案、單一檔案工作或測試檔案。
執行需求
需要 TLDR 命令列工具(tldr tree、structure、calls、cfg);若使用程式介面,還需要 tldr Python 套件及其 tldr.api 中的 get_file_tree、get_code_structure、build_project_call_graph、get_cfg_context 等函式。此技能不附帶指令碼,僅為指示說明。

TLDR Project Overview

Get a token-efficient overview of any project using the TLDR stack.

Trigger

  • /overview or /tldr-overview
  • "give me an overview of this project"
  • "what's in this codebase"
  • Starting work on an unfamiliar project

Execution

1. File Tree (Navigation Map)

bash
tldr tree . --ext .py    # or .ts, .go, .rs

2. Code Structure (What Exists)

bash
tldr structure src/ --lang python --max 50

Returns: functions, classes, imports per file

3. Call Graph Entry Points (Architecture)

bash
tldr calls src/

Returns: cross-file relationships, main entry points

4. Key Function Complexity (Hot Spots)

For each entry point found:

bash
tldr cfg src/main.py main  # Get complexity

Output Format

## Project Overview: {project_name}
### Structure{tree output - files and directories}
### Key Components{structure output - functions, classes per file}
### Architecture (Call Graph){calls output - how components connect}
### Complexity Hot Spots{cfg output - functions with high cyclomatic complexity}
---Token cost: ~{N} tokens (vs ~{M} raw = {savings}% savings)

When NOT to Use

  • Already familiar with the project
  • Working on a specific file (use targeted tldr commands instead)
  • Test files (need full context)

Programmatic Usage

python
from tldr.api import get_file_tree, get_code_structure, build_project_call_graph
# 1. Treetree = get_file_tree("src/", extensions={".py"})
# 2. Structurestructure = get_code_structure("src/", language="python", max_results=50)
# 3. Call graphcalls = build_project_call_graph("src/", language="python")
# 4. Complexity for hot functionsfor edge in calls.edges[:10]:    cfg = get_cfg_context("src/" + edge[0], edge[1])

來源與署名

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

授權條款: 無授權條款

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

檢舉或申請下架