assess-patch-risk
Skill by openai
Assesses an immutable patch's program impact, regression risk, and auto-merge eligibility for reviewers. It is read-only and does not generate, edit, apply, push, or merge the patch.
Install assess-patch-risk
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openai/codex-security /tmp/codex-security && mkdir -p ~/.claude/skills && cp -r /tmp/codex-security/plugins/codex-security/skills/assess-patch-risk ~/.claude/skills/assess-patch-riskRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openai/codex-security /tmp/codex-security && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/codex-security/plugins/codex-security/skills/assess-patch-risk ~/.gemini/antigravity-cli/skills/assess-patch-riskAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
assess-patch-risk is an agent skill that assesses an immutable patch artifact before it merges. It covers generated patch files, provider pull-request diffs, and commit ranges. It rates program impact, regression likelihood, regression protection, recoverability, and confidence as separate concepts.
The skill binds the exact patch by SHA-256 and traces changed symbols to production entrypoints. It checks material boundaries such as authorization, parsing, migrations, and configuration defaults, and looks for concrete counterexamples. It also checks whether tests and checks actually cover the changed behavior. It returns one recommendation (merge, revise, no_op, block, or hold_for_evidence) with a Markdown report and a JSON object. It is for reviewers who need evidence before merging.
Written from the project's SKILL.md and checked against it.
What it can do
- Bind the exact patchRecords the repository, base, head, changed files, and SHA-256 of the patch bytes.
- Map program impactTraces changed symbols through callers and callees to production entrypoints and supported consumers.
- Check material boundariesInspects authorization, tenant isolation, parsing, migrations, concurrency, and rollout behavior when affected.
- Try to falsify safetyBuilds a concrete counterexample and a legitimate control for each material changed boundary.
- Evaluate regression protectionDistinguishes changed-path, caller, integration, and rollout test coverage.
- Assess recoverabilityDescribes rollback, persistent-state effects, migrations, and operational recovery.
- Return a recommendationGives one of merge, revise, no_op, block, or hold_for_evidence with a workflow label.
What you need
- An immutable patch file, provider pull-request diff, or commit range with base and head
- The patch-risk-validation command supplied for the invocation
Try asking
- Assess the regression risk of this generated patch file before merging it
- Review this pull request diff and tell me if it qualifies for auto-merge
- Map the production callers affected by this commit range and list the tests
Good to know
- Read-only. It does not generate, edit, apply, push, or merge the patch.
- Accepts only immutable patch artifacts. It does not assess a mutable raw working tree.
- Subject-controlled code runs only without credentials or network access.
- Does not wait or poll indefinitely when evidence is unavailable.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/codex-security/skills/assess-patch-risk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
agents/openai.yaml274 B -
references/risk-rubric.md5 KB
Alternatives to assess-patch-risk
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
assess-patch-risk: common questions
Does this skill merge or change the patch?
No. The source says it is read-only and does not generate, edit, apply, push, or merge the patch.
What does auto_merge_candidate mean?
The source says it is a candidate only when every strict rubric gate passes. The label is advisory and does not override repository policy or required checks.
Can it assess a working tree directly?
No. The source says it does not assess a mutable raw working tree and requires an immutable patch artifact instead.
How do I install assess-patch-risk?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is assess-patch-risk free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is assess-patch-risk safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to assess-patch-risk?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
