tldr-code

Solid

Token-efficient code analysis via 5-layer stack (AST, Call Graph, CFG, DFG, PDG). 95% token savings.

AI & Automation 3,809 stars 297 forks Updated 4 months ago MIT

Install

View on GitHub

Quality Score: 86/100

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

Skill Content

# TLDR-Code: Complete Reference Token-efficient code analysis. **95% savings** vs raw file reads. ## Quick Reference | Task | Command | |------|---------| | File tree | `tldr tree src/` | | Code structure | `tldr structure . --lang python` | | Search code | `tldr search "pattern" .` | | Call graph | `tldr calls src/` | | Who calls X? | `tldr impact func_name .` | | Control flow | `tldr cfg file.py func` | | Data flow | `tldr dfg file.py func` | | Program slice | `tldr slice file.py func 42` | | Dead code | `tldr dead src/` | | Architecture | `tldr arch src/` | | Imports | `tldr imports file.py` | | Who imports X? | `tldr importers module_name .` | | Affected tests | `tldr change-impact --git` | | Type check | `tldr diagnostics file.py` | | Semantic search | `tldr semantic search "auth flow"` | --- ## The 5-Layer Stack ``` Layer 1: AST ~500 tokens Function signatures, imports Layer 2: Call Graph +440 tokens What calls what (cross-file) Layer 3: CFG +110 tokens Complexity, branches, loops Layer 4: DFG +130 tokens Variable definitions/uses Layer 5: PDG +150 tokens Dependencies, slicing ─────────────────────────────────────────────────────────────── Total: ~1,200 tokens vs 23,000 raw = 95% savings ``` --- ## CLI Commands ### Navigation ```bash # File tree tldr tree [path] tldr tree src/ --ext .py .ts # Filter extensions tldr tree . --show-hidden # Include hidden files # Code structure (codemaps) ...

Details

Author
parcadei
Repository
parcadei/Continuous-Claude-v3
Created
5 months ago
Last Updated
4 months ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category