dead-code by parcadei/continuous-claude-v3
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill dead-code使用 TLDR 静态分析查找未使用的函数和死代码。
# 扫描整个项目
tldr dead .
# 扫描特定目录
tldr dead src/
# 指定入口点(从分析中排除的函数)
tldr dead . --entry main cli test_
# 指定语言
tldr dead . --lang python
tldr dead . --lang typescript
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)
支持 Windows、Mac 和 Linux(包括 WSL)。
# Windows (PowerShell)
tldr dead .
# Mac/Linux
tldr dead .
匹配入口模式的函数将从死代码分析中排除:
main, cli - 应用程序入口点
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
test_*, *_test - 测试函数
setup, teardown - 测试固件
@app.route, @api.endpoint - 框架处理器
tldr dead src/ --entry main api_handler background_job
此技能将 session-start-dead-code 钩子替换为按需分析。
| 方法 | 优点 | 缺点 |
|---|---|---|
| 钩子(已移除) | 自动执行 | 使启动速度减慢 3 秒 |
| 技能(本项) | 按需、快速 | 需手动调用 |
# 影响分析(谁调用了这个?)
tldr impact func_name .
# 架构层次分析
tldr arch src/
# 完整代码库结构分析
tldr structure . --lang python
每周安装量
246
代码仓库
GitHub 星标数
3.6K
首次出现
2026年1月22日
安全审计
安装于
opencode231
codex231
cursor227
gemini-cli226
github-copilot223
amp215
Find unused functions and dead code using TLDR static analysis.
# 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
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)
Works on Windows, Mac, and Linux (including WSL).
# Windows (PowerShell)
tldr dead .
# Mac/Linux
tldr dead .
Functions matching entry patterns are excluded from dead code analysis:
main, cli - Application entry points
test_*, *_test - Test functions
setup, teardown - Fixtures
@app.route, @api.endpoint - Framework handlers
tldr dead src/ --entry main api_handler background_job
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 |
# Impact analysis (who calls this?)
tldr impact func_name .
# Architecture layers
tldr arch src/
# Full codebase structure
tldr structure . --lang python
Weekly Installs
246
Repository
GitHub Stars
3.6K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode231
codex231
cursor227
gemini-cli226
github-copilot223
amp215
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装