Skip to main content

find-dead-code

Find unused functions, classes, imports, and unreachable code paths. Use when the user asks for dead code or cleanup candidates.

ソース情報

リポジトリ
openshift/lightspeed-agentic-sandbox
ソースの最終更新活動
2026年5月19日 11:24
検出された SKILL.md の言語
英語
スター
5
フォーク
23

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
find-dead-code
description
Find unused functions, classes, imports, and unreachable code paths. Use when the user asks for dead code or cleanup candidates.
disable-model-invocation
true
# Find Dead Code Detect unused code that can be safely removed. ## Rules - Report findings, do not delete unless the user asks. - Focus on `src/lightspeed_agentic/`. Skip tests unless asked. - Vulture has false positives — validate each finding. - Code used via dynamic dispatch (FastAPI, Pydantic, provider plugins) may look unused. ## Step 1: Determine Scope - **Branch mode**: changed files vs `main`. - **Full mode**: all of `src/lightspeed_agentic/`. Branch mode: ```bash git diff --name-only origin/main -- 'src/lightspeed_agentic/' | grep '\.py$' ``` ## Step 2: Run Vulture ```bash uvx vulture <target> --min-confidence 80 ``` ## Step 3: Classify For each hit: confirm with `rg` / imports; mark as true dead code, false positive, or optional cleanup. ## Step 4: Report Table: symbol, file:line, confidence, recommendation.
GitHubで見る