create-fix-pr

create-fix-pr is a skill for Claude Code from openshift-eng/ai-helpers. It costs 39 tokens per session (6,901 once invoked), scanned A, original, Apache-2.0.

A workflow step that opens or updates a GitHub pull request after a CVE fix has been applied and verified. A CVE is a published identifier for a known security vulnerability.

In plain words
What is it for?
Use it after local CVE remediation to prepare a GitHub pull request, using the relevant repository, branch, vulnerability identifier, and optional Jira ticket.
Why use it?
It separates creating the pull request from applying and checking the fix, and requires approval before submitting it. This helps prevent unreviewed security changes from being published.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the compliance plugin — 9 skills, 1 command shipped together

Good fit Use it after local CVE remediation to prepare a GitHub pull request, using the relevant repository, branch, vulnerability identifier, and optional Jira ticket.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openshift-eng/ai-helpers/create-fix-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add openshift-eng/ai-helpers --skill create-fix-pr
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install compliance, the plugin that ships this one along with the rest of its 9 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-fix-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/create-fix-pr/github.svg)](https://agentmods.dev/skills/openshift-eng/ai-helpers/create-fix-pr)
Your own site
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/create-fix-pr"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/create-fix-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-fix-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/create-fix-pr"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/create-fix-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,901 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.06901
Opus 5.5 $0.00016 $0.02760
Sonnet 5.5 $0.00008 $0.01380
Haiku 4.5 $0.00004 $0.00690

Measured 23d ago against content hash 996c3ac81197, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-fix-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/compliance/skills/create-fix-pr/SKILL.md · 523 lines

How it starts

The opening of the file, as written. The whole thing — 523 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Fix PR

Opens a GitHub pull request for the CVE fix already applied in REPO_DIR (Phase 5). Never commits, pushes, or opens a PR without explicit approval — interactive, or AUTO_APPROVE=yes recorded once upfront (see Autonomous Mode). Direct CVE mode (no --jira=/--jql=) still creates the PR; it just omits Jira Fixes: links and the Jira follow-up comment.

Called from Phase 6 of the analyze-cve skill after Phase 5 verification succeeds.


When to Use This Skill

Use this skill when:

  • Phase 5 applied a fix in REPO_DIR and verification passed
  • The user approved creating a GitHub PR
  • embargo_status is not True

Do not use this skill to apply the fix itself (that is Phase 5) or to post the analysis report (that is report-to-jira in Phase 4).


Required Inputs

From the parent command:

Input Source Required
REPO_DIR Phase 0.7 Yes
GIT_BRANCH Phase 0.7 (mapped release branch, e.g. release-4.17) Yes
REPO_URL Phase 0.7 Yes
CVE_ID Phase 0.5 / direct CVE mode Yes
SOURCE_TICKET --jira= / --jql= No
AUTO_APPROVE Phase 0 (--auto-approve, default no) Yes
FORK_ORG Caller environment (e.g. CI/RWS runner) No — enables Fork Mode when set
PHASE5_FILES Phase 5 allowlist (incl. untracked) Yes
Module path, old version, new version Phase 4 / 5 Yes if a dependency bump
Short CVE description Phase 1 Recommended
Phase 5 change summary Phase 5 "Document Changes" Yes

Prerequisites

Hard requirements for this skill. Phase 0 does not treat gh as required (warn-only). This skill must not assume either tool is present — re-check both, then fail if either is missing. Do not create a PR another way.

which git 2>/dev/null || echo "MISSING: git"
which gh 2>/dev/null || echo "MISSING: gh"
gh auth status 2>/dev/null || echo "MISSING: gh auth"

Read the full file on GitHub · 523 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed 996c3ac81197
  2. 1mo ago First seen · 523 lines · 39 tokens per session scan A 2382303fdd6e

Subscribe to this mod's changes

create-fix-pr is a skill published in the GitHub repository openshift-eng/ai-helpers (121 stars, last pushed today), licensed Apache-2.0. It adds 39 tokens to every session and 6,901 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.