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에서 보기