dead-code-cleanup
/dead-code-cleanup
Wyszukuje nieużywany kod, pliki i eksporty w repozytorium, pomagając uprościć stare obszary i zmniejszyć rozmiar paczki.
- Autor
- repowise-dev ↗
- Repozytorium
- repowise ↗
- Licencja
- AGPL-3.0
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
Co robi i kiedy
Wyszukuje nieużywany kod, pliki i eksporty w repozytorium, pomagając uprościć stare obszary i zmniejszyć rozmiar paczki.
Oryginalny opis (EN)
Use when the user asks about unused code, cleanup, deleting files or exports, refactoring old areas, reducing bundle size, code hygiene, technical debt, or maintenance in a Repowise-indexed repository.
Jak działa
- When the user asks about dead/unused code
- How to present findings
- Before deleting anything
- Safe deletion order
Podgląd SKILL.md
--- name: dead-code-cleanup description: Use when the user asks about unused code, cleanup, deleting files or exports, refactoring old areas, reducing bundle size, code hygiene, technical debt, or maintenance in a Repowise-indexed repository. --- # Dead Code Cleanup with Repowise Repowise detects dead code through graph analysis — no LLM needed, works even with a template-rendered wiki. ## When the user asks about dead/unused code Run `repowise dead-code` to get findings sorted by confidence tier. Useful flags: - `--safe-only` — only deletion-ready findings (high confidence, no runtime-load risk factors) - `--kind unreachable_file` — files with no importers - `--kind unused_export` — public symbols nobody uses - `--kind zombie_package` — monorepo packages with no consumers - `--min-confidence 0.7` — raise the floor for a release-ready cleanup - `--format json` — machine output To roll findings up by directory or owner, the `get_dead_code` MCP tool takes `group_by="directory"` or `group_by="owner"`. To list it, add `+get_dead_code` to `mcp.tools` in `.repowise/config.yaml` and restart the MCP server. ## How to present findings - Only suggest deletion for findings with `safe_to_delete: true` - For lower-confidence findings, present them as "candidates to investigate" not "things to delete" - Dynamically-loaded code (plugins, handlers, adapters) may appear as dead code but isn't — Repowise filters common patterns but edge cases exist ## Before deleting anything 1. Confirm with the user. Present the file/symbol name, confidence score, and why Repowise thinks it's dead. 2. Run `repowise risk --target path/to/file` to double-check dependents. 3. Recently-modified "dead" code is more likely a false positive — flag this if the finding has recent git activity. ## Safe deletion order 1. Unreachable files first (whole file removal, cleanest) 2. Unused internal symbols next 3. Unused exports last (highest false-positive risk due to potential dynamic imports)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · repowise-dev/repowise | 90 | AGPL-3.0 |
| repowise-dev/repowise | 90 | AGPL-3.0 |
Migawka bazy z 13.11.2026 · wersja paczki 38174f06d99f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100code-dead-code
Wykrywa martwy kod, nieużywane eksporty, nieosiągalne gałęzie i osierocone pliki, by zmniejszyć koszt utrzymania po refaktoryzacjach. - 100find-dead-code
Znajduje nieużywane funkcje, klasy, importy i nieosiągalne ścieżki kodu, aby zmniejszyć rozmiar bazy kodu. - 84analyze-dead-code
Znajduje w repozytorium nieużywane eksporty, nieosiągalne moduły i martwe pliki, a następnie usuwa je z kodu. - 100dead-code-audit
Wykrywa nieużywany kod: niewywoływane funkcje, zbędne importy, osierocone pliki i nieosiągalne gałęzie, przed sprzątaniem lub wydaniem. - 90removing-dead-code
Szuka i usuwa martwy, nieużywany kod w pakiecie Swift lub aplikacji Xcode, w całym repozytorium albo w jednym module, i ocenia kompletność czyszczenia. - 100dead
Wykrywa nieużywany kod w Go i w aplikacjach webowych i zestawia listę poprawek po zakończeniu funkcji.