Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

agent-refactoring-workflow

/agent-refactoring-workflow

Prowadzi agenta przez refaktoryzację w weryfikowalnych krokach z testami jako siatką bezpieczeństwa, zamiast jednego dużego przepisywania.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Prowadzi agenta przez refaktoryzację w weryfikowalnych krokach z testami jako siatką bezpieczeństwa, zamiast jednego dużego przepisywania.

Oryginalny opis (EN)

Direct an agent through a refactor in verifiable steps with tests as the safety net, rather than one large rewrite. Use when restructuring code with agent assistance.

Jak działa

  1. Method
  2. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 234 słów
Podgląd SKILL.md
---
name: agent-refactoring-workflow
description: Direct an agent through a refactor in verifiable steps with tests as the safety net, rather than one large rewrite. Use when restructuring code with agent assistance.
---

# Agent refactoring workflow

Agents are effective at mechanical restructuring and prone to changing
behaviour while doing it. Working in verified steps is what keeps a
refactor a refactor rather than an unreviewable rewrite.

## Method

1. **Establish test coverage first.** Refactoring without tests is
   rewriting and hoping, and the agent should add characterisation tests
   before changing anything (see refactoring).
2. **State the target structure.** What the code should look like
   afterwards, since an agent asked to improve it will change things you
   did not want changed.
3. **Work in small verified steps.** One transformation, run the tests,
   commit. Large refactors in one turn are unreviewable and hard to
   bisect (see pull-request-size).
4. **Forbid behaviour changes explicitly.** Say that the refactor must
   preserve behaviour exactly, and treat any behaviour change as a
   separate commit (see negative-instructions).
5. **Review the diff yourself.** Agent refactors touch many files, and
   an unreviewed large diff is where unintended changes hide.
6. **Keep tests untouched during the refactor.** Changing tests and
   implementation together removes the safety net entirely.
7. **Commit at every green point.** Frequent commits make it trivial to
   discard a bad step rather than unpicking it (see git-workflow).

## Boundaries

Refactoring preserves behaviour and does not fix design problems that
need a rethink. Agents can miss subtle behavioural differences that
tests do not cover. Large-scale restructuring may need a migration plan
rather than a refactor (see integration-migration).

Wersje

W bazie nie ma innych skilli o nazwie agent-refactoring-workflow.

Migawka bazy z 13.11.2026 · wersja paczki 09681ec69ba5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 86refactoring
    Pomaga refaktoryzować kod, gdy użytkownik wyraźnie prosi o refaktoryzację.
  • 95refactor
    Prowadzi refaktoryzację kodu Pythona najpierw przez testy: ocena pokrycia, testy charakteryzujące, zmiany z siatką bezpieczeństwa, narzędzia jakości i pętla przeglądu.
  • 100refactoring-specialist
    Prowadzi refaktoryzację bez zmiany zachowania w małych krokach chronionych testami, od testów charakteryzujących dla kodu bez pokrycia.
  • 100refactoring-specialist
    Planuje i wykonuje refaktoryzację bez zmiany zachowania w małych krokach chronionych testami, zaczynając od testów charakteryzujących.
  • 91dry-refactoring
    Prowadzi systematyczną refaktoryzację według zasady DRY: wskazuje powtórzenia, magic numbers i copy-paste i weryfikuje refaktoryzację w czterech krokach.
  • 90z-refactor
    Prowadzi refaktoryzację bez regresji i podział dużych klas, z bramką wartości inżynierskiej NEV.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.