Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

pr-risk

/pr-risk

Ocenia ryzyko pull requestu lub bieżącej gałęzi jako krytyczne, istotne lub rutynowe, według jawnych reguł.

Repozytorium
agent-toolkit ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.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
14
Skrypty
11
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Skrypty: scripts/action.js, scripts/cli.js, scripts/config.js, scripts/diff.js, scripts/format.js, scripts/git.js, scripts/github.js, scripts/glob.js, scripts/score.js, scripts/secrets.js, scripts/types.js

Co robi i kiedy

Ocenia ryzyko pull requestu lub bieżącej gałęzi jako krytyczne, istotne lub rutynowe, według jawnych reguł.

Oryginalny opis (EN)

Score how risky a pull request or the current branch is (critical, significant or routine) using transparent rules, not guesses. Use when the user asks how risky a change is, whether a PR needs extra review, what to look at first, or wants a PR labelled by risk. Also used by pr-describe and pr-review.

Jak działa

  1. Run the scorer
  2. Report back
Sekcje z nagłówków SKILL.md, w oryginale · 40 linii, 350 słów
Podgląd SKILL.md
---
name: pr-risk
description: Score how risky a pull request or the current branch is (critical, significant or routine) using transparent rules, not guesses. Use when the user asks how risky a change is, whether a PR needs extra review, what to look at first, or wants a PR labelled by risk. Also used by pr-describe and pr-review.
---

# pr-risk

Score a change with the bundled rule-based scorer, then explain the result. The scorer is the
same code the `pr-risk` GitHub Action runs, so the answer here matches the label the PR will get.

## Run the scorer

The scorer lives in `scripts/` next to this file. Use this skill's base directory for `<skill-dir>`.

Pick the input:

| Situation | Command |
|---|---|
| Current branch (committed, uncommitted and untracked work) | `node <skill-dir>/scripts/cli.js` |
| Different base branch | `node <skill-dir>/scripts/cli.js --base origin/develop` |
| An open PR by number | `gh pr diff <n> \| node <skill-dir>/scripts/cli.js --diff-file -` |
| A diff the user pasted | Write it to a temp file, then `node <skill-dir>/scripts/cli.js --diff-file <file>` |

Add `--json` when you need the numbers for something else, or `--markdown` for a PR comment.
If the repo has `.github/pr-risk.json`, the scorer picks it up automatically.

If the command fails because no base branch exists, ask which branch the PR targets. Do not guess.

## Report back

1. First line: the level, the score, and the review time, exactly as the scorer printed them.
2. Then each signal, in the scorer's order, with the files it lists.
3. Then **one** line on what to check first, taken from the highest-scoring signal. Examples:
   - migrations → "Check the migration runs without locking a large table and can be rolled back."
   - secret → "Remove the secret from the diff and rotate it; it is already in git history if committed."
   - tests removed → "Confirm the deleted tests are replaced or no longer needed."

Rules:
- Never change the level or score. If you think the rules got it wrong, say so on a separate line
  and suggest the `.github/pr-risk.json` change that would fix it (see `reference/config.md`).
- Do not label or comment on a GitHub PR unless the user asks. If they do, prefer the GitHub
  Action; for a one-off use `gh pr edit <n> --add-label "risk: <level>"`.
- If the i-have-adhd skill is on in this session, put the "check first" line at the top.
Pliki w paczce (14)
  • SKILL.md 2 KB
  • reference/config.md 2 KB
  • scripts/action.js 4 KB
  • scripts/cli.js 2 KB
  • scripts/config.js 5 KB
  • scripts/diff.js 2 KB
  • scripts/format.js 3 KB
  • scripts/git.js 2 KB
  • scripts/github.js 4 KB
  • scripts/glob.js 2 KB
  • scripts/package.json 1 KB
  • scripts/score.js 6 KB
  • scripts/secrets.js 1 KB
  • scripts/types.js 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · gourav-banerjee7/agent-toolkit100MIT
dimagi/dimagi-claude-workflows100MIT
aisoul-dev/skills100MIT

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

  • 100risk-score
    Ocenia ryzyko pull requesta lub gałęzi według stałych reguł i zwraca wynik w formacie JSON, na przykład do bramki w CI.
  • 96code-review
    Przeprowadza przegląd kodu zmiany, gałęzi lub pull requestu na prośbę użytkownika.
  • 100pr-risk-score
    Liczy ryzyko pull requestu w skali od 0 do 100 i decyduje, czy potrzebny jest przegląd człowieka czy wystarczy AI.
  • 90commit-push-current
    Commituje i wypycha zmiany do bieżącej gałęzi na prośbę człowieka, bez tworzenia gałęzi i pull requestu.
  • 86pr
    Tworzy pull request dla bieżącej gałęzi z tytułem i opisem, względem gałęzi bazowej repozytorium.
  • 100risk
    Ocenia ryzyko zmiany w skali od 1 do 10 i wydaje kartę ryzyka, wskazując, ile ludzkiej weryfikacji się należy.

Uwagi i zgłoszenia

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