Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

test-fixing

/test-fixing

Znajduje i naprawia wszystkie nieprzechodzące testy strategiami grupowania, gdy użytkownik prosi o poprawę testów, zgłasza porażki albo kończy implementację.

Licencja
MIT
Ostatnia zmiana repozytorium
24.10.2026

Ocena i bezpieczeństwo

100/ 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ść35 / 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 24.10.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

Znajduje i naprawia wszystkie nieprzechodzące testy strategiami grupowania, gdy użytkownik prosi o poprawę testów, zgłasza porażki albo kończy implementację.

Wyzwalacze z opisu

fix these testsmake tests passtests are failingtest suite is broken
Oryginalny opis (EN)

Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests ("fix these tests", "make tests pass"), reports test failures ("tests are failing", "test suite is broken"), or completes implementation and wants tests passing.

Jak działa

  1. When to Use
  2. Systematic Approach
  3. Best Practices
  4. Example Workflow
  5. Limitations
Sekcje z nagłówków SKILL.md, w oryginale · 121 linii, 557 słów
Podgląd SKILL.md
---
name: test-fixing
description: Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests ("fix these tests", "make tests pass"), reports test failures ("tests are failing", "test suite is broken"), or completes implementation and wants tests passing.
metadata:
  aas-risk: critical
  aas-source: community
  aas-date-added: '2026-02-27'
---

# Test Fixing

Systematically identify and fix all failing tests using smart grouping strategies.

## When to Use
- Explicitly asks to fix tests ("fix these tests", "make tests pass")
- Reports test failures ("tests are failing", "test suite is broken")
- Completes implementation and wants tests passing
- Mentions CI/CD failures due to tests

## Systematic Approach

### 1. Initial Test Run

Read project instructions, dependency manifests and CI configuration to identify the existing test command. Use `make test` only if that target exists and is the project contract. Inspect fixture/service requirements before running it; do not invoke production operations to obtain a baseline. Preserve pre-existing changes.

Analyze output for:

- Total number of failures
- Error types and patterns
- Affected modules/files

### 2. Smart Error Grouping

Group similar failures by:

- **Error type**: ImportError, AttributeError, AssertionError, etc.
- **Module/file**: Same file causing multiple test failure
- **Root cause**: Missing dependencies, API changes, refactoring impacts

Prioritize groups by:

- Number of affected tests (highest impact first)
- Dependency order (fix infrastructure before functionality)

### 3. Systematic Fixing Process

For each group (starting with highest impact):

1. **Identify root cause**

   - Read relevant code
   - Check recent changes with `git diff`
   - Understand the error pattern

2. **Implement fix**

   - Use the host's available file-editing tool for code changes
   - Follow applicable project instructions and conventions
   - Make minimal, focused changes

3. **Verify fix**

   - Run subset of tests for this group
   - Use pytest markers or file patterns:
     ```bash
     uv run pytest tests/path/to/test_file.py -v
     uv run pytest -k "pattern" -v
     ```
   - Ensure group passes before moving on

4. **Move to next group**

### 4. Fix Order Strategy

**Infrastructure first:**

- Import errors
- Missing dependencies
- Configuration issues

**Then API changes:**

- Function signature changes
- Module reorganization
- Renamed variables/functions

**Finally, logic issues:**

- Assertion failures
- Business logic bugs
- Edge case handling

### 5. Final Verification

After all groups fixed:

- Run the project's verified complete test command
- Verify no regressions
- Check test coverage remains intact

## Best Practices

- Fix one group at a time
- Run focused tests after each fix
- Use `git diff` to understand recent changes
- Look for patterns in failures
- Don't move to next group until current passes
- Keep changes minimal and focused
- Do not delete assertions, skip failing cases, lower coverage thresholds or change expected behavior merely to obtain green tests. A test update requires evidence that the product contract changed. Report unavailable dependencies, flaky failures and unexecuted checks explicitly.

## Example Workflow

User: "The tests are failing after my refactor"

1. In a repository with a verified `make test` target, run it → 15 failures identified
2. Group errors:
   - 8 ImportErrors (module renamed)
   - 5 AttributeErrors (function signature changed)
   - 2 AssertionErrors (logic bugs)
3. Fix ImportErrors first → Run subset → Verify
4. Fix AttributeErrors → Run subset → Verify
5. Fix AssertionErrors → Run subset → Verify
6. Run full suite → All pass ✓

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Wersje

RepozytoriumWynikLicencja
Ta strona · sickn33/agentic-awesome-skills100MIT
FrancoStino/opencode-skills-collection100MIT
rootcastleco/rei-skills100MIT
davila7/claude-code-templates100MIT
poly-gents/syncolab-skills100Apache-2.0
mhattingpete/claude-skills-marketplace100Apache-2.0

Identyczna treść występuje jeszcze w 3 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

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

  • 100test-failure-triage
    Segreguje nieprzechodzące testy: grupuje błędy, naprawia przyczyny według priorytetu i weryfikuje po kolei, gdy CI jest czerwone albo po refaktoryzacji lub merge.
  • 100test-fix
    Rozstrzyga, czy błędny jest test, czy implementacja, gdy validate-chunk zgłasza porażki testów, i naprawia właściwą stronę.
  • 100v1-fix-tests
    Naprawia systematycznie padające zestawy testów i przywraca ich przechodzenie w całym projekcie.
  • 100fix-tests
    Ustala, jak uruchamiane są testy projektu, i naprawia porażki według przyczyny, grupując je po sygnaturze błędu i upewniając się, że żaden test nie został osłabiony.
  • 100debug-e2e-test
    Naprawia nieprzechodzące testy Playwright E2E, analizując wynik testu, zrzuty ekranu i kontekst błędu oraz używając Playwright MCP do ustalenia przyczyny.
  • 100fix-tests
    Ustala i zapisuje, jak uruchamiane są testy projektu, a potem naprawia porażki według przyczyny: grupuje je po sygnaturze błędu, usuwa wspólną przyczynę raz i pilnuje, by żaden test nie został osłabiony.

Uwagi i zgłoszenia

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