Поиск мёртвого кода статическим анализатором

engineering

dead-code is a Claude Code skill that detects unused functions and dead code across a codebase using TLDR static analysis. It runs via `tldr dead` pointed at any directory, supports Python and TypeScript, and works on Windows, Mac, and Linux including WSL. Entry points such as `main`, `cli`, test functions, and framework decorators like `@app.route` are excluded from analysis using the `--entry` flag to prevent false positives. Output lists the total function count, the number of dead functions, and their exact file locations with line numbers. The skill is invoked on demand rather than at session start, keeping startup fast, and pairs naturally with related TLDR commands like `tldr impact` for call-graph analysis and `tldr arch` for architectural layer inspection.