dead-code
π―Skillfrom parcadei/continuous-claude-v3
Identifies and reports unused functions and dead code across multiple programming languages for efficient codebase cleanup and refactoring.
Installation
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill dead-codeSkill Details
Find unused functions and dead code in the codebase
Overview
# Dead Code Detection
Find unused functions and dead code using TLDR static analysis.
Quick Start
```bash
# Scan entire project
tldr dead .
# Scan specific directory
tldr dead src/
# Specify entry points (functions to exclude from analysis)
tldr dead . --entry main cli test_
# Specify language
tldr dead . --lang python
tldr dead . --lang typescript
```
Output Format
```
Dead code analysis:
Total functions: 150
Dead functions: 12
Unused functions:
- old_helper (src/utils.py:42)
- deprecated_func (src/legacy.py:15)
- _unused_method (src/api.py:230)
```
Cross-Platform
Works on Windows, Mac, and Linux (including WSL).
```bash
# Windows (PowerShell)
tldr dead .
# Mac/Linux
tldr dead .
```
Entry Points
Functions matching entry patterns are excluded from dead code analysis:
main,cli- Application entry pointstest_,_test- Test functionssetup,teardown- Fixtures@app.route,@api.endpoint- Framework handlers
```bash
# Custom entry points
tldr dead src/ --entry main api_handler background_job
```
Integration
This skill replaces the session-start-dead-code hook with on-demand analysis.
| Approach | Pros | Cons |
|----------|------|------|
| Hook (removed) | Automatic | Slowed startup by 3s |
| Skill (this) | On-demand, fast | Manual invocation |
Related Commands
```bash
# Impact analysis (who calls this?)
tldr impact func_name .
# Architecture layers
tldr arch src/
# Full codebase structure
tldr structure . --lang python
```
More from this repository10
Enables seamless integration between Agentica agents and Claude Code CLI by managing proxy configurations, tool permissions, and response formatting.
Manages git commits by removing Claude attribution, generating reasoning documentation, and ensuring clean commit workflows.
Systematically diagnose and resolve hook registration, execution, and output issues in Claude Code projects by checking cache, settings, files, and manual testing.
Systematically researches, analyzes, plans, implements, and reviews migrations across frameworks, languages, and infrastructure with minimal risk.
Enables background agent execution with system-triggered progress notifications, avoiding manual polling and context flooding.
Provides comprehensive reference and infrastructure for building sophisticated multi-agent coordination patterns and workflows with precise API specifications and tracking mechanisms.
Generates a comprehensive summary of the current system's configuration, components, and key metrics across skills, agents, hooks, and other core systems.
Provides comprehensive CLI commands and flags for interacting with Claude Code, enabling headless mode, automation, and session management.
Traces and correlates Claude Code session events across parent and sub-agent interactions using comprehensive Braintrust instrumentation.
Rapidly edits files using AI-powered Morph Apply API with high accuracy and speed, without requiring full file context.