parcadei/Continuous-Claude-v3 / .claude/skills/tldr-code
tldr-code
VerifiedToken-efficient code analysis via 5-layer stack (AST, Call Graph, CFG, DFG, PDG). 95% token savings.
rules.md
View on GitHub# TLDR-Code Usage Rules
## When Working with Code
For code-related queries, prefer TLDR over Grep/Read:
| Task | OLD way | NEW way |
|------|---------|---------|
| Debug function | Grep → Read file | TLDR call_graph + cfg |
| Understand function | Read file | TLDR call_graph |
| Check complexity | Read + count | TLDR cfg |
| Track variable | Grep through files | TLDR dfg |
| Find dependencies | Grep imports | TLDR pdg |
| Refactor safely | Read all files | TLDR call_graph (who calls this?) |
## Decision Tree
```
Is this a code structure question?
├── YES → Use TLDR
│ ├── "What calls X?" → call_graph
│ ├── "How complex?" → cfg
│ ├── "Where does Y come from?" → dfg
│ └── "What depends on Z?" → pdg
│
└── NO → Use Grep/Read
├── String literal search
├── Config values
└── Non-code files
```
## Integration with Hook
The PreToolUse:Task hook automatically injects TLDR context when spawning agents with code-related prompts. The main session should invoke `/tldr-code` skill when needed.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |