safe-code-change
/safe-code-change
Po zmianie w kodzie znajduje dotknięte testy, aktualizuje je do nowego zachowania i raz uruchamia pełny potok walidacji.
- Autor
- openshift ↗
- Repozytorium
- lightspeed-service ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 26.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 26.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Po zmianie w kodzie znajduje dotknięte testy, aktualizuje je do nowego zachowania i raz uruchamia pełny potok walidacji.
Oryginalny opis (EN)
After a code change, find affected tests, update them to match new behavior, then run the full validation pipeline once. Use when the user has made or asked for a code change and wants to make sure nothing is broken.
Jak działa
- Rules
- Step 1: Identify What Changed
- Step 2: Find Affected Tests
- Step 3: Analyze Impact on Tests
- Step 4: Update Tests
- Step 5: Done
Podgląd SKILL.md
--- name: safe-code-change description: After a code change, find affected tests, update them to match new behavior, then run the full validation pipeline once. Use when the user has made or asked for a code change and wants to make sure nothing is broken. disable-model-invocation: true --- # Safe Code Change After a code change is made, find and fix affected tests before running validation. ## Rules - The code change is already done. Do not modify production code. - Only update tests to match the new behavior, not the other way around. - Do not reformat or lint-fix during test updates. Save that for validation. - If a test change is ambiguous (unclear what the new expected behavior is), ask the user. ## Step 1: Identify What Changed ```bash git diff --name-only git diff --stat ``` List the modified production files (ignore test files, configs, docs). ## Step 2: Find Affected Tests Search for imports of changed functions/classes across all test files: ```bash rg "from ols\.<changed_module> import" tests/ ``` ## Step 3: Analyze Impact on Tests For each affected test file, check whether the change breaks existing tests: 1. **Signature changes** — function renamed, parameters added/removed/reordered. 2. **Behavior changes** — return value, side effects, exceptions differ. 3. **Removed code** — tests for deleted functions/classes need removal. 4. **New code** — consider whether new tests are needed (ask user if unclear). ## Step 4: Update Tests Apply minimal fixes to each affected test: - Update function names, parameters, expected values. - Add `async`/`await` and `@pytest.mark.asyncio` if sync changed to async. - Remove tests for deleted functionality. - Do not add new tests unless the user asks. ## Step 5: Done Report what was updated. The user can invoke validate-and-fix when ready.
Wersje
W bazie nie ma innych skilli o nazwie safe-code-change.
Migawka bazy z 13.11.2026 · wersja paczki 134a88ac557a (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
- 95docs-update
Ocenia wpływ zmiany kodu, API lub konfiguracji na dokumentację i aktualizuje dotknięte opisy. - 90run
Uruchamia testy projektu bezpiecznie i raportuje wyniki, a przy niezatwierdzonych zmianach odpala tylko dotknięte testy. - 90test-running
Znajduje i uruchamia testy, które potwierdzają zmianę w kodzie, przed przekazaniem lub commitem. - 95python-test-updater
Aktualizuje testy Pythona do nowej wersji testowanego kodu: poprawia testy po zmianie sygnatur, dopasowuje asercje, dodaje przypadki dla nowych funkcji i naprawia błędy po uruchomieniu. - 100orch-change-feature
Prowadzi zmianę działającej funkcji na nowe zachowanie: aktualizuje testy do nowej specyfikacji, zmienia implementację, robi review i zatwierdzony commit. - 95docs-update
Sprawdza, które opisy w dokumentacji zmieniły się po zmianie kodu, konfiguracji lub procesu, i je poprawia.