Assess an immutable patch artifact's program impact, regression risk, and auto-merge eligibility. Use for generated patch files, provider pull-request diffs, or commit ranges when reviewers need evidence about affected runtime paths, contracts, tests, and recoverability. This skill is read-only and does not generate, edit, apply, push, or merge the patch.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Explain what can change if the patch merges and whether the available evidence supports merging it. Keep these concepts separate:
Read references/risk-rubric.md before assigning ratings or an auto-merge label.
hold_for_evidence if the artifact is incomplete or its identity changes. Do not assess a mutable raw working tree directly; require the caller to provide an immutable patch artifact instead.no_op when evidence proves no live effect, wrong ownership, duplication, or supersession. Describe rollback, persistent-state effects, migrations, and operational recovery. Report the risk of not merging separately; use unknown when motivating context is unavailable.hold_for_evidence with at most three concrete actions, the evidence each action seeks, and how each possible result changes the recommendation. Do not wait or poll indefinitely.Return exactly one recommendation:
merge: source evidence supports the patch and no decision-critical defect or unknown remains;revise: the patch, its tests, or a material documentation contract must change;no_op: evidence shows the patch has no required live effect or belongs elsewhere;block: affirmative evidence establishes a material safety failure; orhold_for_evidence: unavailable evidence can still change the decision.Return a workflow label with every recommendation. For merge, choose:
auto_merge_candidate: every strict gate in the rubric passes; orhuman_review_required: the patch is mergeable but does not qualify for automatic merge.For revise, no_op, block, or hold_for_evidence, use the recommendation itself as the workflow label.
The label is advisory. It never grants permission to merge or overrides repository policy, required checks, or ownership review.
Return both a concise Markdown report and a JSON object conforming to ../../schemas/patch-risk-assessment.schema.json. Include:
This skill lives at <plugin-root>/skills/assess-patch-risk/SKILL.md, so <plugin-root> is two directories up. Resolve <python_command> to the configured Python interpreter ("$PYTHON" in POSIX shells or & "$env:PYTHON" in PowerShell), otherwise use python on Windows and python3 on Unix-like hosts.
Before returning the result, validate the JSON from any working directory with:
<python_command> <plugin-root>/skills/assess-patch-risk/scripts/validate_patch_risk_assessment.py <assessment.json>Pass - as <assessment.json> to read the assessment from standard input without creating a file.
Correct structural or invariant errors by revisiting the evidence; never change a recommendation merely to make validation pass. Return the validated JSON in the response. Write it to disk only when the caller requests an artifact, and keep every assessment-created file outside the subject checkout and its Git directories.
Keep the explanation evidence-backed. Patch size, caller count, green CI, or test count alone never proves low risk.
hold_for_evidence for an already established defect; use revise or block.1dc1958
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.