Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

review-code

/review-code

Ocenia zmianę w kodzie pod jednym wybranym kątem, na przykład błędów, testowalności, typów lub dokumentacji, i zwraca raport PASS albo FAIL.

Repozytorium
manifest-dev ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.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
15
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.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

Ocenia zmianę w kodzie pod jednym wybranym kątem, na przykład błędów, testowalności, typów lub dokumentacji, i zwraca raport PASS albo FAIL.

Oryginalny opis (EN)

Review a change along one specific quality dimension — bugs, design, simplicity, maintainability, testability, test quality, type safety, contracts, operational readiness, docs, prose value, change intent, defect-class completeness after a fix, or context-file adherence. Loads exactly one dimension reference and audits the diff against it, returning a structured PASS/FAIL report with severities. Use when verifying a change before merge, auditing a diff for a named concern, or running a manifest acceptance gate.

Jak działa

  1. Input
  2. Dimensions and thresholds
  3. Determining scope (shared across dimensions)
  4. Severity ladder (shared)
  5. Report format (shared)
  6. Verifier contract (PASS / FAIL / BLOCKED)
  7. Gotchas
Sekcje z nagłówków SKILL.md, w oryginale · 109 linii, 1 531 słów
Podgląd SKILL.md
---
name: review-code
description: 'Review a change along one specific quality dimension — bugs, design, simplicity, maintainability, testability, test quality, type safety, contracts, operational readiness, docs, prose value, change intent, defect-class completeness after a fix, or context-file adherence. Loads exactly one dimension reference and audits the diff against it, returning a structured PASS/FAIL report with severities. Use when verifying a change before merge, auditing a diff for a named concern, or running a manifest acceptance gate.'
user-invocable: true
---

# review-code — one dimension per invocation

Audit a change along **one** review dimension and report findings. Load only that dimension's reference.

## Input

`$ARGUMENTS` carries the **dimension** plus optional scope, e.g. `dimension=code-bugs` or `code-bugs src/foo.ts`. A manifest gate's body activates this skill with the dimension under `/do`'s selected evaluator; the gate names the dimension and this skill owns the threshold. If no dimension is given, list the available dimensions and ask which one — one invocation, one dimension.

## Dimensions and thresholds

Load `references/<dimension>.md` for the requested dimension and follow it. Its standards are opinionated defaults: where a rule the user stated, in the session or a context file, or a convention the project states or documents (not a pattern its code merely repeats) differs, that rule governs, a change following it raises no finding, and the report names the rule applied — except a Critical finding on the ladder below, which is still reported, naming the rule that produced it. The threshold is the bar a change must clear to PASS on that dimension:

| Dimension | Reference | Role | Threshold (PASS requires) |
|-----------|-----------|------|---------------------------|
| `change-intent` | `references/change-intent.md` | defect-finder | no LOW-or-higher findings |
| `code-bugs` | `references/code-bugs.md` | defect-finder | no LOW-or-higher findings |
| `contracts` | `references/contracts.md` | defect-finder | no LOW-or-higher findings |
| `type-safety` | `references/type-safety.md` | defect-finder | no LOW-or-higher findings |
| `defect-class` | `references/defect-class.md` | defect-finder | no LOW-or-higher findings |
| `operational-readiness` | `references/operational-readiness.md` | advisory | no MEDIUM-or-higher findings |
| `code-design` | `references/code-design.md` | advisory | no MEDIUM-or-higher findings |
| `code-maintainability` | `references/code-maintainability.md` | advisory | no MEDIUM-or-higher findings |
| `code-simplicity` | `references/code-simplicity.md` | advisory | no MEDIUM-or-higher findings |
| `code-testability` | `references/code-testability.md` | advisory | no MEDIUM-or-higher findings |
| `test-quality` | `references/test-quality.md` | advisory | no MEDIUM-or-higher findings |
| `docs` | `references/docs.md` | advisory | no MEDIUM-or-higher findings |
| `prose-value` | `references/prose-value.md` | advisory | no MEDIUM-or-higher findings |
| `context-file-adherence` | `references/context-file-adherence.md` | advisory | no MEDIUM-or-higher findings |

The split is structural: **defect-finders** report only divergences/defects/contract-mismatches/type-holes that name their trigger — every LOW there is real signal. **Advisory** dimensions surface taste-level improvements where LOW is usually could-be-better, not is-broken.

**Some dimensions are conditional**, and the caller decides whether they apply before requesting them: `contracts` where the change touches API surfaces or durable data contracts, `type-safety` on typed code, and `defect-class` where the change **fixes a defect**. `defect-class` is the one dimension that takes a defect as input rather than producing one as output — it judges the repair's protection against the demonstrated mechanism and accounts for affected sites, so on a change that fixes nothing it has no input and nothing to judge. Requesting it anyway is not an error; it reports PASS and says no fix was found in scope.

## Determining scope (shared across dimensions)

For a requested follow-up, the caller supplies the prior assessed state and criteria, findings,
verified repairs, and changes since that evaluation; use what applies. Report outstanding findings
and failures introduced or exposed by the intervening changes, with evidence for which prior
findings are repaired. Read context as widely as needed; an old issue on a touched line is not
new merely because the line changed. If the needed prior state is missing, recover it or report
BLOCKED with what is missing, rather than silently reviewing the complete change again.

For a fresh review — including a new standalone review when an earlier report exists — resolve its scope as follows:

1. **Caller specifies files/paths** → review exactly those.
2. **Otherwise** → review the complete change. Resolve the comparison base from the PR target or the repository's remote default branch; ask only if neither can be established. Inspect committed changes with `git diff <base>...HEAD`, staged changes with `git diff --cached`, unstaged changes with `git diff`, and relevant new files from `git ls-files --others --exclude-standard`. Read each new file's contents; a path listing alone is not its diff.
3. **Empty / non-reviewable diff** → ask the caller to clarify scope.

Stay within scope — never audit the whole project unless explicitly asked. Skip generated files (`*.generated.*`, `generated/`, `dist/`, `build/`), lock files, vendored deps (`vendor/`, `node_modules/`, `third_party/`), and binaries.

**Reading scope ≠ reporting scope.** The diff bounds what you *report* (defaults: only issues introduced or exposed by the change). It does not bound what you *read* — trace mechanisms wherever they lead (existing callers, shared state, upstream writers) so boundary issues between changed and unchanged code stay visible. Read widely; report narrowly. Within the resolved scope, examine every file against every category the loaded reference lists — do not cut corners or skip areas — and report only the findings that clear its bar for reporting (its actionability filter, or for defect-class its acceptance rules).

This skill is **read-only**: never modify repository files; write only to `/tmp/` for analysis artifacts. The author implements fixes from your report.

## Severity ladder (shared)

- **Critical** — blocks release: data loss, corruption, security breach, or complete failure for all users; no workaround.
- **High** — blocks merge: core/happy-path functionality broken for common inputs.
- **Medium** — edge cases, degraded behavior, or failures needing multiple preconditions.
- **Low** — rare scenarios with workarounds, or (for advisory dimensions) taste-level could-be-better.

Each dimension's reference refines these with domain-specific calibration — defer to it.

## Report format (shared)

```
# Code Review — <dimension>

**Dimension**: <dimension>
**Threshold**: no LOW+ | no MEDIUM+
**Status**: PASS | FAIL
**Files analyzed**: [...]

## Prior findings (follow-ups only)
- [prior finding]: repaired | unresolved — [evidence]

## Findings
### Finding #1: [title]
- **Location**: `file:line`
- **Severity**: Critical | High | Medium | Low
- **Description**: [what's wrong]
- **Trigger**: [the condition under which the defect manifests — the concrete input, state, or sequence that produces the failure, or for a static mismatch such as a contract or signature divergence, the call or consumer path that reaches it — required on defect-finder dimensions]
- **Impact**: [what it breaks / why it matters — on advisory dimensions a Medium-or-higher finding must name the concrete cost that earns that grade: the future change it makes harder, the reader or operator task it defeats, or the condition under which behavior degrades]
- **Recommended fix**: [specific change]

## Summary
- Critical: N | High: N | Medium: N | Low: N
- Verdict: PASS if no finding meets/exceeds the dimension threshold, else FAIL.
```

An empty report (Status: PASS) is a valid, expected outcome. Do not invent findings to fill it.

## Verifier contract (PASS / FAIL / BLOCKED)

When invoked as a manifest acceptance gate, end with one verdict:

- **PASS** — no finding at or above the dimension's threshold.
- **FAIL** — at least one finding meets/exceeds the threshold; the findings list is the fix hint.
- **BLOCKED** — the dimension can't be evaluated yet (e.g., the change can't be located, a needed external doc is unreachable). Say what blocks it and what would unblock it.

## Gotchas

- **One ref only.** Load exactly the reference for the requested dimension. Loading several defeats progressive disclosure and blurs the orthogonality boundaries each dimension defines against its neighbors.
- **Respect the role threshold.** Reporting a LOW on an advisory dimension as if it blocks (or dropping a LOW on a defect-finder) miscalibrates the gate.
- **Reportability is a stated trigger, not a confidence level** (defect-finders). Name the condition under which the defect manifests: "this WILL fail when X", with X written down. Where the defect is static rather than sequential — a contract or signature mismatch that is wrong on every call — the trigger is the call or consumer path that reaches it. A finding that cannot name its trigger is not reportable however strongly you suspect it — "this might be a bug", "this looks fragile", "this could break under load" all fail the test. Someone reading only the finding must be able to tell whether it clears this bar, which is what holds the bar in one place across reviewers rather than moving it with whoever is reading. A stated trigger is necessary rather than sufficient — each dimension's own bar for reporting (its actionability filter, or for defect-class its acceptance rules) still applies on top of it.
- **A Medium is a stated cost, not a strength of feeling** (advisory dimensions). Medium is the blocking grade there, so it carries the same auditability the defect-finders get from a stated trigger: name the cost in the finding — the change made harder, the task defeated, the condition under which behavior degrades — specifically enough that someone reading only the finding can tell the grade is earned. A finding whose case rests on "could be cleaner", "feels off", or "not ideal" has not named one, and sits at Low. Each dimension's own calibration still applies on top.
- **Stay inside the loaded dimension.** Each reference lists what it owns and what belongs to a sibling dimension. A maintainability smell is not a bug; a type hole is not a design critique. Report only what the loaded dimension owns; let the other dimensions' invocations catch the rest.
Pliki w paczce (15)
  • SKILL.md 11 KB
  • references/change-intent.md 12 KB
  • references/code-bugs.md 11 KB
  • references/code-design.md 19 KB
  • references/code-maintainability.md 20 KB
  • references/code-simplicity.md 9 KB
  • references/code-testability.md 9 KB
  • references/context-file-adherence.md 6 KB
  • references/contracts.md 13 KB
  • references/defect-class.md 6 KB
  • references/docs.md 6 KB
  • references/operational-readiness.md 6 KB
  • references/prose-value.md 12 KB
  • references/test-quality.md 12 KB
  • references/type-safety.md 10 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · doodledood/manifest-dev100MIT
serpro69/claude-toolbox100Apache-2.0
serpro69/claude-toolbox100Apache-2.0
jelvodev/yaap100MIT
globalmindsolution/gms-marketplace100MIT
tojim00d/Orbit-skills100MIT
yaohuangguan/agent-playbook100MIT
paultyng/skill-issue100MIT
lumberbarons/lumber-mart100MIT

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

  • 90general-code-review
    Przegląda różnice w kodzie pod kątem poprawności, prostoty, ponownego użycia i jakości testów, bez oceny typów.
  • 100verification-loop
    Przeprowadza sześciofazową weryfikację pracy sesji Claude Code: build, typy, lint, testy z pokryciem, przegląd pod kątem bezpieczeństwa i diff, po czym tworzy raport PASS lub FAIL.
  • 100audit-code-review
    Recenzuje pull request lub diff pod kątem poprawności, bezpieczeństwa i utrzymywalności.
  • 100pr-quality-analyst
    Ocenia lokalny diff pod kątem jakości kodu, zasięgu zmian i kosztu utrzymania, i zwraca werdykt PASS, WARN lub CRITICAL_FAIL.
  • 100pr-quality-qa
    Ocenia lokalny diff pod kątem pokrycia testami, obsługi błędów i tego, czy testy wykryją regresję.
  • 100code-review-quality
    Przeprowadza przeglądy kodu z uwzględnieniem kontekstu, skupiając się na jakości, testowalności i utrzymywalności.

Uwagi i zgłoszenia

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