refactoring
/refactoring
Szuka w kodzie JavaScript, TypeScript, Go, Rust i C++ duplikatów, zbyt złożonych funkcji i martwego kodu, przy użyciu polyscan.
- Autor
- ludo-technologies ↗
- Repozytorium
- polyscan ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 19.10.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 19.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Szuka w kodzie JavaScript, TypeScript, Go, Rust i C++ duplikatów, zbyt złożonych funkcji i martwego kodu, przy użyciu polyscan.
Oryginalny opis (EN)
Find refactoring targets in JavaScript/TypeScript, Go, Rust, or C++ code using polyscan - duplicate code (clones), overly complex functions, and dead code. Use when user asks about refactoring, code duplication, complexity hotspots, unreachable code, or cleaning up a codebase.
Jak działa
- Commands
- Interpreting Results
- Prioritizing Findings
Podgląd SKILL.md
--- name: refactoring description: Find refactoring targets in JavaScript/TypeScript, Go, Rust, or C++ code using polyscan - duplicate code (clones), overly complex functions, and dead code. Use when user asks about refactoring, code duplication, complexity hotspots, unreachable code, or cleaning up a codebase. --- # Refactoring Analysis with polyscan Run the polyscan CLI to locate concrete refactoring targets in JavaScript, TypeScript, Go, Rust and C++ code. No install needed: `npx polyscan@latest analyze <path>`. ## Commands | User Request | Command | |-------------|---------| | "Find complex functions" | `npx polyscan@latest analyze --format text --select complexity <path>` | | "Find duplicate code" | `npx polyscan@latest analyze --format text --select clone <path>` | | "Find dead code" (JS/TS only) | `npx polyscan@latest analyze --format text --select deadcode <path>` | | "What should I refactor first?" | `npx polyscan@latest analyze --format text --select complexity,deadcode,clone <path>` | Use `--format json` instead of `--format text` for line-level findings in machine-readable form (written to stdout). Without either, polyscan writes an HTML report and opens a browser. Complexity and clone detection cover every supported language; dead code detection exists for JavaScript/TypeScript only. ## Interpreting Results - Complexity risk levels (defaults, configurable in `.polyscan.toml`): Low (≤9), Medium (10-19), High (20+). For JavaScript/TypeScript, complexity counts branches plus logical operators (`&&`, `||`, `??`) and ternaries. - Dead code severity (JS/TS): critical means code after return/break/continue/throw that can never execute; warning covers unreachable branches, unused imports, and orphan files; info covers unused exports. - Clone types: Type-1 (identical), Type-2 (renamed identifiers/literals), Type-3 (modified, disabled by default), Type-4 (functionally similar), each with a similarity score. ## Prioritizing Findings 1. Critical dead code: safe deletions, do these first. 2. High-complexity functions (20+): extract functions, flatten conditionals. 3. Clone groups spanning multiple files: extract shared helpers; clones within one file are usually quicker wins. When suggesting a refactor, cite the specific function names, files, and line ranges from the results, and re-run the same command afterward to confirm the improvement.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · ludo-technologies/polyscan | 90 | MIT |
| gabrieldulolmarques/refactoring-skill | 100 | CC-BY-4.0 |
| 4typen/skills | 100 | MIT |
| t8jwscc7qy-sketch/foma-skills | 100 | Apache-2.0 |
| mtwuser/zero-cloud-gravity | 100 | MIT |
| krzysztofsurdy/code-virtuoso | 100 | MIT |
| sagargupta16/claude-skills | 100 | MIT |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| DariuszDusza/agentic-workflow-foundry | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki bc5212132b83 (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
- 100cli-analysis
Uruchamia narzędzie polyscan do analizy jakości kodu JavaScript, TypeScript, Go, Rust i C++: bramki jakości w CI, raporty HTML, JSON i tekstowe oraz konfigurację projektu. - 100health-check
Podaje ogólną ocenę zdrowia jakości kodu JavaScript, TypeScript, Go, Rust i C++ narzędziem polyscan: przegląd jakości, ocena, podsumowanie długu technicznego i porównanie przed i po. - 95dog-food
Mierzy i zmniejsza złożoność funkcji oraz zduplikowany kod w C#, TypeScript, JavaScript i Rust przez CLI dgf. - 90refactor
Szuka martwego kodu, zbyt głębokiego zagnieżdżenia i złych wzorców, a potem zaleca uproszczenia i poprawę jakości. - 90bb-code-audit
Szuka martwego kodu, antywzorców, ekspozycji bezpieczeństwa i gorących punktów złożoności w zindeksowanym repozytorium. - 100find-complexity
Wyszukuje funkcje i metody o wysokiej złożoności cyklomatycznej, nadmiernej długości lub zbyt wielu parametrach jako kandydatów do refaktoryzacji.