Skip to main content

kill-dead-code

Find and remove unreachable/unused code safely. Use during cleanup or before a refactor.

소스 정보

저장소
Archive228/loopkit
최근 소스 활동
2026년 6월 29일 21:52
감지된 SKILL.md 언어
영어
스타
757
포크
124

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
kill-dead-code
description
Find and remove unreachable/unused code safely. Use during cleanup or before a refactor.
when_to_use
cleanup, "remove unused", before refactoring, dead branches
# Kill Dead Code 1. **Prove it's dead** — no references (grep the symbol across the repo, including dynamic/string usage and tests). Unused export ≠ dead if it's a public API. 2. Check it's not feature-flagged off (dead today, alive when the flag flips). 3. Delete it AND its now-orphaned tests, imports, and config. 4. Run the full suite + a build. Dead code removal should change behavior in exactly zero ways. Bias to delete: every line someone has to read is a cost. But never delete what you can't prove is unreachable — say "I think X is unused, confirm?" instead of guessing.
GitHub에서 보기