Skip to content

parcadei/Continuous-Claude-v3 / .claude/skills/tldr-code

tldr-code

Verified

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

FileKindSize
SKILL.mdskill md10.6 KB
rules.mdmarkdown1.1 KB
# 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.
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 implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall