Programowanie · Budowanie i kod
implement-patch
/implement-patch
Wdraża poprawkę potwierdzonego lokalnie błędu na poziomie niezmiennika, z przeszukaniem wariantów, testami i jednym commitem.
Dla kogo
- Autor
- trailofbits ↗
- Repozytorium
- skills ↗
- Licencja
- CC-BY-SA-4.0
- Ostatnia zmiana repozytorium
- 12.11.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 12.11.2026, bez odwołań do wycofanych modeli i API.
Licencja
CC-BY-SA-4.0, otwarta.
Co robi i kiedy
Wdraża poprawkę potwierdzonego lokalnie błędu na poziomie niezmiennika, z przeszukaniem wariantów, testami i jednym commitem.
Oryginalny opis (EN)
Use when a confirmed local bug needs an invariant-level fix, variant search, tests, and one local commit.
Jak działa
- When to Use
- When NOT to Use
- Procedure
- Rationalizations to Reject
Sekcje z nagłówków SKILL.md, w oryginale · 64 linii, 400 słów
Podgląd SKILL.md
---
name: implement-patch
description: Use when a confirmed local bug needs an invariant-level fix, variant search, tests, and one local commit.
---
# Implement Patch
## When to Use
Use after independent validation confirms one claim. Read the
[record contract](../../references/records.md).
Before target commands, follow its [project guidance](../../references/records.md#project-guidance).
## When NOT to Use
Do not use for speculative bug hunting, proof of a completed patch, or a change that
cannot be exercised by the local compiler or runtime.
## Procedure
1. Before editing, run `uv run --no-project <script> check --before-repair <run-dir>`
with the [record validator](../../scripts/records.py). If this check fails,
stop and return its errors for an INCONCLUSIVE report. The gate requires
`finding.repair_scope` with a usable case plan and a consistent attempt count.
Use the declared scope as the repair brief. Identify the broken
invariant and search within its boundary for every instance of the
same violation. Read the threat model only to preserve intended behavior; it is
not a gate.
2. Run the project's existing suite and record its results. Write a regression test
that fails on the baseline for the named bug and any fixed variant. Observe the
failure. Fix the invariant within the repair brief with the smallest reviewable change.
3. Run the regression test and full existing suite again. Compare before and after
failures. Fix new failures or explain a pre-existing one from receipts.
4. Record every variant as `fixed` or `not_fixed` with a reason. Produce exactly one
local commit. Never push or open a PR. From the baseline, write `fix.patch` for
production changes and `tests.patch` for test changes in `patch/attempt-N/`.
5. Write `patch.json` with the two commit SHAs, changed-file and line counts,
variants, suite results, and your agent identity. If the attempt produced no commit,
record `patch_commit: null` and return it as failed. Manifest the entire attempt
directory, including both patch files and the record, using
`uv run --no-project <script> manifest <patch-attempt-dir>`. Check it with the
[record validator](../../scripts/records.py).
[Patch record schema](../../schemas/patch.schema.json):
```json
{
"schema_version": 1,
"attempt": 1,
"baseline_commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"patch_commit": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"files_changed": 2,
"lines_added": 3,
"lines_removed": 1,
"variants": [],
"suite_before": {"command": "pytest", "passed": 9, "failed": 1, "skipped": 0},
"suite_after": {"command": "pytest", "passed": 10, "failed": 0, "skipped": 0},
"agent": "patcher-1"
}
```
## Rationalizations to Reject
| Shortcut | Required action |
| --- | --- |
| Only the reported line matters. | Search for the same invariant violation. |
| Minimal means the fewest lines. | Make the smallest reviewable invariant-level fix. |
| Tests pass after the patch. | Show the regression test failed before it. |
Wersje
W bazie nie ma innych skilli o nazwie implement-patch.
Migawka bazy z 13.11.2026 · wersja paczki cd6da8690c1a (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
- 100bug-fix
Znajduje przyczynę błędu w kodzie C php-src i wdraża poprawkę tak, by padający test .phpt przechodził, a test i poprawkę zapisuje jednym commitem na bieżącej gałęzi. - 100om-fix
Wprowadza minimalną poprawkę potwierdzonego błędu według gotowego briefu, dodaje testy regresji i uruchamia skonfigurowaną walidację. - 100patching-bugs
Przygotowuje poprawkę znanego błędu w lokalnym repozytorium: commit z łatką i raport dowodowy do przeglądu. - 90bug-analysis
Lokalizuje przyczynę potwierdzonego błędu, ocenia jego wpływ i proponuje poprawkę oraz testy regresji. - 100implement
Wdraża funkcję, poprawkę błędu lub zmianę kodu w MegaLinter, z poprzedzającą fazą projektowania lub bez niej. - 100change-implementation
Implementuje zgłoszenie, funkcję lub nietrywialną poprawkę błędu w istniejącej bazie kodu jako jedną kompletną zmianę, od żądania po kod, testy i dokumentację, także zmiany łamiące.