Assesses 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.
Ships in codex-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before choosing paths or saving retained output, read ../../references/artifact-storage.md and follow its storage policy.
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.references/risk-rubric.md, including identity binding, derived trust, and changes between validation and use. A changed test or implementation list cannot by itself define the supported contract.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 next actions as required by the schema, the evidence each seeks, and how the possible results change 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 because of an established defect; record it as a contradicted materialBoundaries result or a failed validation entry. Source inspection can establish a documentation-contract failure; a runtime test failure is not required;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.
Before returning the result, validate the JSON from any working directory with:
<plugin-root>/scripts/launch_codex_security_mcp --helper validate-patch-risk-assessment <assessment.json>
On Windows, use the literal-path PowerShell invocation in references/windows-validation.md. The validator also accepts - for standard input and uses the bundled Node helper without requiring Python.
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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
patch-risk, regression-analysis, code-review, merge-readiness
/codex-security:assess-patch-riskfrom codex-security
npx claudepluginhub kael-odin/codex-plugins-zh --plugin codex-security20 skills in this plugin
/attack-path-analysisUse when Codex is already in the attack-path-analysis phase of a security scan or the user explicitly asks to trace a security finding from source to sink and calibrate severity. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans./check-skillsReview agent skills before installation or use. Use when a user or security team wants to check a skill file, bundle, or collection for unsafe instructions, scripts, permissions, or external dependencies./cloud-findingsRead existing Codex Security Cloud findings, reports, recorded assignment and verification, and scan status from the connected account. Use for Cloud read requests and finding links, not local scans or requests to change Cloud data.Other plugins' skills for the same job