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

refactor

/refactor

Upraszcza i przebudowuje istniejący kod, zachowując obserwowalne działanie i uzgodniony zakres zmian.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.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
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.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

Upraszcza i przebudowuje istniejący kod, zachowując obserwowalne działanie i uzgodniony zakres zmian.

Oryginalny opis (EN)

Use when simplifying or restructuring existing code while preserving observable behavior and staying within an agreed scope.

Jak działa

  1. Understand and bound the work
  2. Establish evidence and improve
  3. Verify the result
Sekcje z nagłówków SKILL.md, w oryginale · 24 linii, 441 słów
Podgląd SKILL.md
---
name: refactor
description: "Use when simplifying or restructuring existing code while preserving observable behavior and staying within an agreed scope."
---

# Refactor

Improve the target code with the smallest complete, evidence-backed change. Preserve its intended behavior and the project's conventions; clarity and correctness matter more than minimizing lines.

## Understand and bound the work

1. Use [adapt](../adapt/SKILL.md) to understand the target, its purpose, connected behavior, project patterns and the human's constraints. Reuse a current orientation when it covers the same scope. Inspect callers, inputs, outputs, side effects, errors, ordering, validation and existing checks relevant to the change. Preserve the human's existing work.
2. Define the requested scope, structural improvement and observable behavior to preserve. Route consequential system boundary decisions to [Architect](../architect/SKILL.md) and performance targets to the [measured improvement method](../../references/MeasuredImprovement.md). Obtain the human's direction if the change requires a product rule or public behavior to change.
3. When the required development or verification environment is unknown or blocked, use [Preflight](../preflight/SKILL.md) to assess it. Reuse existing readiness evidence when current. Follow its confirmation requirements for installations, environment changes and inferior fallbacks.

## Establish evidence and improve

4. Choose the most efficient reliable way to establish the relevant behavior before changing it. Use an existing focused check or reproduction when sufficient; add a meaningful targeted characterization check when important behavior is untested and at risk. Do not add tests solely because a refactor occurred. Include relevant edge cases and project-required checks. Record any baseline failure or unavailable verification rather than treating it as a pass.
5. Choose a simple approach that addresses the actual problem. Reuse existing facilities, remove unnecessary complexity and duplication where doing so improves clarity, and make coherent, reviewable changes. Avoid unrelated cleanup, speculative abstractions or new dependencies. Preserve necessary validation, error handling, security, accessibility and externally observable behavior.
6. If orientation or verification reveals a defect or unexpected failure, use [debug](../debug/SKILL.md) to investigate the evidence and cause. Repair it only when the human's request or existing authorization covers the fix; report unrelated defects and keep the refactor within scope. Do not stack guesses onto a failing change.

## Verify the result

7. Use [Test](../test/SKILL.md) for focused behavior and required project checks. Compare with the baseline, including public inputs, outputs, errors and side effects. Use [Critique](../critique/SKILL.md) when an artifact's qualitative result needs assessment; a cleaner structure alone does not establish a speedup.
8. Inspect the full affected diff and relevant surrounding code. Confirm the change stays within the requested scope and has not shifted complexity or changed behavior unintentionally. Recheck after material corrections; report actual checks and results, baseline failures, remaining risks and anything that could not be verified.

**Done:** The requested code is improved within scope, the intended behavior is supported by appropriate evidence, and any verification gaps are explicit.
Pliki w paczce (2)
  • SKILL.md 3 KB
  • agents/openai.yaml 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · nazmirket/skills90MIT
froglet-studio/cosmic-shore100MIT
mgiovani/cc-arsenal100MIT
jongio/skills100MIT
boshu2/agentops100Apache-2.0
y-miyazaki/terraform-aws-base100Apache-2.0
mickeyyaya/evolve-loop100Apache-2.0
j0hanz/j0hanz-marketplace100MIT
kriscard/kriscard-claude-plugins100MIT

Migawka bazy z 13.11.2026 · wersja paczki f662a460b634 (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

  • 90safe-refactor-pass
    Upraszcza kod bez zmiany zachowania, usuwa typowe dla AI nadmiary albo pisze plan refaktoryzacji.
  • 95oma-refactor
    Przebudowuje istniejący kod bez zmiany zachowania, z testami charakteryzującymi przy pracy nad długiem technicznym.
  • 100oma-refactor
    Przebudowuje istniejący kod bez zmiany zachowania, przy celowanym długu technicznym i testach charakteryzujących.
  • 90simplifier
    Upraszcza kod pod kątem czytelności i spójności, zachowując działanie, na prośbę o uporządkowanie pliku lub refaktoryzację.
  • 100test-preserving-refactor
    Prowadzi refaktoryzację kodu bez zmiany obserwowalnego zachowania, utrzymując istniejące testy zielone na każdym kroku.
  • 100debloat
    Upraszcza kod, testy, prozę i bramki repozytorium, zachowując działanie publiczne, typowanie, wydajność i konwencje projektu.

Uwagi i zgłoszenia

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