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 从公开仓库中收录这些内容。

举报或申请下架