Langsung ke konten
Skillpedia
Pemrograman umum8.1k Β· #12565

change-review

Fungsinya

Skill ini membantu AI Anda meninjau perubahan kode dari sisi risikonya sebelum digabung. Skill ini untuk pengembang di proyek yang diindeks Repowise yang ingin tahu apa saja yang bisa rusak oleh suatu perubahan.

Kapan dipakai

  • βœ“Saat Anda bertanya apakah sebuah pull request atau cabang aman untuk digabung.
  • βœ“Saat Anda ingin tahu radius dampak perubahan Anda di seluruh basis kode.
  • βœ“Saat Anda curiga ada berkas terkait atau perubahan lanjutan yang terlewat.

Link skill

https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/change-review/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/change-review/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTinjau pull request ini dan beri tahu saya apakah aman digabung serta hal lain apa yang mungkin perlu diubah.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menilai seluruh perubahan sebagai satu unit menggunakan Repowise, menggabungkan riwayat git, dependensi, celah tes, dan keputusan. Setelah itu skill mencantumkan risiko paling penting lebih dulu, beserta berkas yang mungkin perlu diperbarui.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Change Review with Repowise

When a diff is on the table, Repowise turns "what files changed" into "what does this change put at risk" β€” fusing git history (churn, ownership, co-change) with graph topology (dependents, impact surface), test gaps, security signals, and the architectural decisions that govern the touched code.

Two complementary risk signals, use both:

  • get_change_risk(revspec=…) (MCP) scores the whole change as one unit (a commit or a base..head range). No LLM, no network. Prefer this in-MCP tool; it takes a revspec and diffs server-side, so you never shell out. Lead with directive and health_delta β€” what the change actually made worse. Findings the change wrote sort above pre-existing ones it only touched. Then risk_percentile (this change ranked against sampled recent commits by diff size and spread, not a bug predictor), stated in one line by diff_shape; include=["scales"] adds its review_priority tercile and classification label. The raw 0-10 score ranks 0.99 against lines added, so it sits behind include=["diagnostics"] rather than on the wire. Omit revspec to score uncommitted work. This is the pre-merge gate: "how risky is this change overall?" The repowise risk <revspec> CLI is the identical scorer for when you are already in a terminal.
  • get_risk(changed_files=…) (MCP) works per file and returns the directive block, the specific things to check inside the diff.

Score the whole change first

get_change_risk(revspec="main..HEAD")   # HEAD, a commit SHA, or base..head

Read directive first: status, a headline naming what got worse, the reasons behind it and next_actions to run. health_delta carries the findings the change introduced or resolved. Then risk_percentile and the top drivers: a high score from large diffusion (many dirs/subsystems) or low author familiarity tells you where to look hardest. extensions=[".py", ".ts"] counts only certain file types; exclude_patterns=["tests/"] omits paths. A warning field, or a directive.status of unknown, means the revspec or filters matched no files, so an all-zero score there is not a clean bill of health. The equivalent from a terminal is repowise risk <revspec> (add --ext .py,.ts or --format json).

Then drill into the per-file directive

Call get_risk in PR mode by passing the changed files:

get_risk(targets=<changed files>, changed_files=<same changed files>)

The response carries its own directive block, per file rather than per change (distinct from get_change_risk's) β€” read it first, it's a few short lists:

  • may_break β€” files/symbols that import their way to what changed but are not in the diff. Reachability, not a diff: it says these depend on the changed files, not that the thing they use changed. Check each one.
  • missing_cochanges β€” files that historically change together with the changed files but were left untouched. Often a forgotten update.
  • missing_tests β€” changed code with a test gap. Flag for new/updated tests.
  • tests_to_run: the tests the change needs, from the same selection repowise impacted-tests makes, with tests_to_run_why giving each one's reason (the changed file and its evidence, or "runs with every subset"). Check tests_run_all first: when it is true no smaller set can be vouched for, tests_run_all_reasons says why, and the list is only what to run first; recommend the whole suite. When it is false the list is the set to run. tests_to_run_basis is measured when stored per-test coverage decided a changed file and inferred when only the dependency graph or a rule did; say which. tests_status appears only when no selection could be made (timeout, config_invalid, unknown, ...), and then every test must run.

get_change_risk carries the same answer as impacted_tests: status (selected or run_all, or why nothing was selected), run_all, reasons, tests_to_run and why. include=["blast"] on get_risk adds pr_blast_radius, the fuller dossier behind the directive's lists.

For the line-precise version from a terminal, repowise impacted-tests <revspec> maps each changed line to the tests whose recorded coverage touches it, then prints the ids (--format list | xargs pytest runs exactly them). It is honest about gaps: a changed file with no coverage rows is a labelled filename

Pertanyaan umum

Apa yang diurutkan pertama dalam tinjauan?

Ia mendahulukan apa yang diperburuk oleh perubahan, lalu tingkat risiko keseluruhan perubahan.

Bisakah ia meninjau perubahan yang belum di-commit?

Bisa. Jika tidak ada rentang yang diberikan, ia menilai pekerjaan Anda yang belum di-commit.

Apakah perlu alat terpisah yang dipasang?

Skill membutuhkan proyek yang diindeks Repowise, yang memiliki folder .repowise.

Detail

Deskripsi asli dari pembuat

Use when reviewing a set of changes before they merge β€” a PR, a branch diff, or the working-tree changes you just made β€” in a Repowise-indexed codebase (.repowise/ directory exists). Activates for "review this PR", "is this safe to merge", "what's the blast radius of these changes", "did I miss anything", or "what else should change with this".

repo: repowise-dev/repowise

Popularitas

Bintang GitHub
8.1k
Peringkat
#12565
Lisensi
AGPL-3.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa