cleanup-code
/cleanup-code
Porządkuje świeżo napisany kod Pythona: styl, martwy kod, docstringi, adnotacje typów i sprawdzenia.
- Autor
- rowansci ↗
- Repozytorium
- rowan-python ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 24.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 24.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
Porządkuje świeżo napisany kod Pythona: styl, martwy kod, docstringi, adnotacje typów i sprawdzenia.
Oryginalny opis (EN)
Polishes recently written or modified Python code for style, dead code, docstrings, type annotations, and checks. Use when coding task is completed.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 27 linii, 178 słów
Podgląd SKILL.md
--- name: cleanup-code description: Polishes recently written or modified Python code for style, dead code, docstrings, type annotations, and checks. Use when coding task is completed. allowed-tools: - Read - Glob - Grep - Edit - Bash --- # Clean Up Code Polish only the code changed for the current task, within $ARGUMENTS when specified. Do not expand a tooling migration into a package-wide style, docstring, or test rewrite. Follow the staged migration in [AGENTS.md](../../../AGENTS.md); deferred checks are not requirements for this cleanup. Use the `write-code` skill to understand code conventions. 1. Re-read every file that was created or modified. 2. Check for Pythonic style: - Use comprehensions instead of loops where clearer - Use f-strings instead of `.format()` or `%` - Use `pathlib` instead of `os.path` - Use dataclasses or named tuples for structured data 3. Remove dead code, unused imports, and obsolete commented-out code; preserve the intentionally deferred migration settings 4. Remove temporary tests introduced during the current task that provide no lasting value. 5. Verify docstrings on changed public APIs (follow `write-docstrings` skill conventions). 6. Verify complete type annotations on changed public functions and methods. 7. Run the full check suite: - `ruff format .` - `ruff check .` - `uv run ty check` - `pytest` 8. All checks must pass before finishing.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · rowansci/rowan-python | 86 | MIT |
| jeremylongshore/tons-of-skills-marketplace | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 332330746aa4 (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
- 95python-style
Stosuje konwencje kodu Pythona przy pisaniu i przeglądzie: docstringi, adnotacje, nazewnictwo i importy. - 100run-ts-cleanup
Porządkuje bazę kodu TypeScript: usuwa martwy kod, nieużywane zależności, bezwartościowy kod z generatorów AI i słabe typy. - 100python-code-style
Ustala styl kodu Python: linting, formatowanie, nazewnictwo i docstringi, przy pisaniu nowego kodu, przeglądzie stylu i konfiguracji linterów. - 90td-python-coding-guidelines
Pomaga w przeglądzie i poprawkach kodu Python: lintery, docstringi, importy, nazewnictwo, wyjątki i adnotacje typów, w stylu Google. - 90simplifying-code
Upraszcza, wygładza i porządkuje kod bez zmiany działania, usuwa martwy kod i zbędne elementy generowane przez AI. - 100awesome-code-cleanup
Czyści kod ze śladów AI bez zmiany jego działania: komentarze narracyjne, martwy kod, niejasne nazwy i nadmierna abstrakcja.