본문으로 건너뛰기
cccskills
무료GitHub에 공개

prune-dead-code

Audit a codebase for dead and otherwise safe-to-remove code, and report each finding for approval. Use when asked to find dead or unused code, deduplicate repeated constants, replace magic literals that duplicate a named constant, or remove arbitrary caps, thresholds, or timeouts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

LukeberryPi/skills스타 25(GitHub 25 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Prune Dead Code

Treat every declaration as live until you have proven it safe to remove. Find candidates in four categories, verify each one across the whole repository, and report them all for approval before editing.

Categories

  1. Confirmed dead: symbols, constants, tokens, or barrel re-exports with zero references.
  2. Dedupe: the same constant, string, or type literal declared verbatim in two or more places.
  3. Drift: a magic literal that duplicates an existing named constant.
  4. Arbitrary limits: caps, thresholds, or timeouts guarding against situations users cannot reach. Quantify the real limit before recommending removal.

Workflow

  1. Search each category across the whole repository, code and tests alike.
  2. Verify every candidate's usage before judging it; one missed reference makes the verdict wrong.
  3. Classify each candidate as safe to remove or arbitrary but intentional.
  4. Report the table below.
  5. Ask which findings to apply before editing.
  6. Apply approved changes and update affected tests.
  7. Run typecheck, lint, and tests; fix anything the changes broke.

Required Output

Use exactly these columns:

| Item | Location | Notes |
|------|----------|-------|
| `<symbol>` | `path:line` | Zero references repo-wide (verified). Confirmed dead. |
| `<constant>` | `pathA:line`, `pathB:line` | Identical declaration in 2 files. Dedupe into one shared constant. |
| literal `<value>` | `path:line` | Duplicates `<NAMED_CONSTANT>`; reference the constant to avoid drift. |
| `<CAP>` | `path:line` | Threshold unreachable in practice (state the real limit). Safe to remove. |
  • Item: Exact declaration in backticks, or a short phrase for inline literals.
  • Location: path:line; include every dedupe and drift location.
  • Notes: In one sentence, identify the item, confirm usage, and give the verdict.

Rules

When in doubt, it stays live — remove only what you have proven dead.

  • A symbol used only in its own file may be unexported, not deleted; cross-file consumers require it to stay exported.
  • Check tests before removing exports. Keep exports that cover non-trivial logic, or flag the trade-off.
  • Keep intentional tuning values — animation timings, debounce intervals, sizes, minimums — and report them as arbitrary but intentional.
  • Keep validation and guards that prevent crashes on corrupt or missing data.
  • Treat uncertain dynamic access, reflection, constructed imports, public APIs, and framework entry points as live.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Audit or remediate web accessibility barriers, optimizing accessible task completion against a WCAG 2.2 AA floor.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

LukeberryPi/skills252026년 10월 2일 업데이트

Dissect a codebase and run a 10-question mock technical interview on it, rating each answer 1-10 and closing with a PASS or FAIL verdict.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

LukeberryPi/skills252026년 10월 2일 업데이트

gostaria que você agora usasse a força total do mega brain com.... o cop thief. que está acionado no sistema. ele precisa investigar mais… termos inteligentes e o que está acontecendo agora, na atualidade do mercado para que esse vídeo tenha tantos acessos e visualizações quanto o primeiro vídeo. o antigo. ele precisa ser uma versão reformulada e eu gostaria que você ajustasse somente aquilo que achar necessário para… se conectar ao contexto inicial que eu colei no começo da conversa. precisamos de um vídeo inteligente. didático, profundo na voz do tiago finch, porém voltado para empresários.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

LukeberryPi/skills252026년 10월 2일 업데이트

Flag comments that merely restate the code instead of explaining why, and remove only those the user approves. Use when asked to remove dumb, redundant, or obvious comments, clean up comments, or invoke `/remove-dumb-comments [<number>|all]`.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

LukeberryPi/skills252026년 10월 2일 업데이트

LukeberryPi의 스킬 모두 보기

이 스킬의 문제 신고