Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

risk-based-validation

/risk-based-validation

Dobiera proporcjonalną weryfikację po poprawce błędu, funkcji lub refaktoryzacji na podstawie rzeczywistego diffu i kosztu testów.

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

Brak sygnałów. Repozytorium zmienione 29.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 sprawdzić przed instalacją
  • 7 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/rbv/__init__.py, scripts/rbv/cli.py, scripts/rbv/config.py, scripts/rbv/planner.py, scripts/rbv/repository.py, scripts/rbv/runner.py, scripts/validate.py

Co robi i kiedy

Dobiera proporcjonalną weryfikację po poprawce błędu, funkcji lub refaktoryzacji na podstawie rzeczywistego diffu i kosztu testów.

Oryginalny opis (EN)

Choose proportionate verification after a bug fix, feature, or refactor using the actual diff, reviewed impact evidence, regression risk, and test cost. Select checks, diagnose failures, reuse valid evidence, and stop when justified. Use for post-change validation; preserve explicit repository and user requirements.

Jak działa

  1. Optional deterministic helper
  2. Report
Sekcje z nagłówków SKILL.md, w oryginale · 31 linii, 577 słów
Podgląd SKILL.md
---
name: risk-based-validation
description: Choose proportionate verification after a bug fix, feature, or refactor using the actual diff, reviewed impact evidence, regression risk, and test cost. Select checks, diagnose failures, reuse valid evidence, and stop when justified. Use for post-change validation; preserve explicit repository and user requirements.
license: MIT
---

# Risk-based validation

Match verification effort to the consequences of being wrong. A small diff can carry high risk. Test count alone is never the success metric.

The optional local helper requires Python 3.10+ and Git, with no third-party Python runtime packages.

1. Read applicable repository instructions and the task acceptance criteria. Identify required checks before optimizing. Inspect the final diff against the intended base, plus staged and untracked files. For a PR, resolve its merge base explicitly; `HEAD` only covers local edits. A missing base or incomplete evidence is unresolved, not low risk.
2. Identify changed behavior, callers, contracts, shared fixtures, generated assets, configuration, and external state. Inspect reverse dependencies and relevant regression tests. Prefer the project's native impact tools (Nx, Bazel, testmon, etc.) when their evidence is adequate. The bundled CLI uses reviewed explicit component maps; it does not infer imports or prove completeness.
3. Choose checks that can actually detect failure modes: regression assertions for fixes; normal and boundary/error paths for features; consumers/contracts for refactors. Permissions, tenant isolation, secrets, payments, persistence and migrations require domain checks, including denial/rollback/recovery paths where applicable. Do not weaken tests or mappings to obtain a cheaper plan.
4. Reuse valid results where possible. Record command, final input identity, environment, outcome, and log evidence. Reuse only successful, deterministic checks with equivalent inputs and context. External services, clocks, ignored dependencies, changed toolchains and random failures invalidate reuse unless explicitly accounted for. Fresh high-risk checks are mandatory in the CLI.
5. Run the cheapest useful checks first. Expand for unknown impact, unreviewed mappings, global inputs, high-risk changes or failures. Inspect failure logs and baseline; distinguish product/test defects from harness or infrastructure failures, then act on new evidence. Never retry an unchanged failure merely hoping for green. Do not hide a flaky failure behind a later pass.
6. Stop when required checks have valid passing evidence, relevant failure modes have been covered, and no unexplained failure or material risk remains. If cost limits prevent required checks, report incomplete validation. Additional full runs need a reason: new changes, new failure evidence, an explicit requirement, or a planned audit of selection quality.

## Optional deterministic helper

Use `<skill-dir>/scripts/validate.py` from the target repository. Read [configuration and CLI](references/configuration.md) before creating or changing `.rbv.json`. Register actual repository commands and review their meaning; a tag is a maintainer assertion, not proof of coverage.

```sh
python <skill-dir>/scripts/validate.py plan --repo . --base HEAD
python <skill-dir>/scripts/validate.py run --repo . --base HEAD --execute
```

Review the plan and command arrays before execution. `--execute` expresses execution intent; it grants no permissions and adds no sandbox. Proceed within already authorized scope; do not insert a new human approval step for normal permitted tests. Commands are repository code and inherit the caller's permissions. Never bypass a denied action or contact production services without authorization.

If no usable configuration exists, use the reasoning workflow and native tools directly, or create a small unreviewed inventory (`impact_reviewed: false`) that conservatively runs registered checks. Mark the map reviewed only after checking paths, reverse dependencies, shared fixtures, dynamic loading and documentation exclusions. Keep uncertainty visible.

## Report

State the changed behavior and risk, checks executed or reused with outcomes, deliberately skipped checks and reasons, unresolved failures, residual risks, and why verification stopped. Separate “no checks required”, “passed”, “failed”, and “incomplete”. A passing selection applies to the final worktree and reviewed scope, not every possible defect or a differing staged version. Use [decision and failure examples](references/decisions.md) when impact or stopping is unclear.
Pliki w paczce (12)
  • LICENSE 1 KB
  • SKILL.md 5 KB
  • agents/openai.yaml 1 KB
  • references/configuration.md 10 KB
  • references/decisions.md 4 KB
  • scripts/validate.py 1 KB
  • scripts/rbv/__init__.py 1 KB
  • scripts/rbv/cli.py 2 KB
  • scripts/rbv/config.py 4 KB
  • scripts/rbv/planner.py 7 KB
  • scripts/rbv/repository.py 5 KB
  • scripts/rbv/runner.py 11 KB

Wersje

W bazie nie ma innych skilli o nazwie risk-based-validation.

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

  • 100tests-first
    Dobiera testy zachowania i proporcjonalną weryfikację dla funkcji, poprawek, refaktoryzacji i przeglądu testów.
  • 90risk-based-test-plan
    Układa lekki plan testów opartych na ryzyku dla funkcji lub wydania: macierz ryzyka, podejście, dane i kryteria wejścia i wyjścia.
  • 90release-readiness
    Ocenia zmianę przed produkcją na podstawie diffu, dowodów z testów, ryzyka migracji i gotowości do wycofania, służąc decyzji o wdrożeniu.
  • 100test-driven-development
    Pisze najpierw test, który pada, potem najmniejszy kod, który go przechodzi, przy każdej funkcji, poprawce lub refaktoryzacji.
  • 100testing-strategy
    Planuje testy dla poprawki błędu, funkcji lub refaktoryzacji: co zasługuje na test, na jakim poziomie i z jakim dowodem, z doborem nakładu do ryzyka i pokryciem przypadków błędów.
  • 100dev-plan
    Tworzy konkretne plany implementacji po poznaniu wymagań: kroki na poziomie plików, kolejność, strategię testów, ryzyka i weryfikację przed kodowaniem funkcji, poprawki, refaktoryzacji lub migracji.

Uwagi i zgłoszenia

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