tldr-deep

Featured

Full 5-layer analysis of a specific function. Use when debugging or deeply understanding code.

AI & Automation 3,951 stars 303 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# TLDR Deep Analysis Full 5-layer analysis of a specific function. Use when debugging or deeply understanding code. ## Trigger - `/tldr-deep <function_name>` - "analyze function X in detail" - "I need to deeply understand how Y works" - Debugging complex functions ## Layers | Layer | Purpose | Command | |-------|---------|---------| | L1: AST | Structure | `tldr extract <file>` | | L2: Call Graph | Navigation | `tldr context <func> --depth 2` | | L3: CFG | Complexity | `tldr cfg <file> <func>` | | L4: DFG | Data flow | `tldr dfg <file> <func>` | | L5: Slice | Dependencies | `tldr slice <file> <func> <line>` | ## Execution Given a function name, run all layers: ```bash # First find the file tldr search "def <function_name>" . # Then run each layer tldr extract <found_file> # L1: Full file structure tldr context <function_name> --project . --depth 2 # L2: Call graph tldr cfg <found_file> <function_name> # L3: Control flow tldr dfg <found_file> <function_name> # L4: Data flow tldr slice <found_file> <function_name> <target_line> # L5: Slice ``` ## Output Format ``` ## Deep Analysis: {function_name} ### L1: Structure (AST) File: {file_path} Signature: {signature} Docstring: {docstring} ### L2: Call Graph Calls: {list of functions this calls} Called by: {list of functions that call this} ### L3: Control Flow (CFG) Blocks: {N} Cyclomatic Complexity: {M} [Hot if M > 10] Branches: - if: line X - for: line Y - ... ### L4: Data Flow (DFG) Variables ...

Details

Author
parcadei
Repository
parcadei/Continuous-Claude-v3
Created
11 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category