/compliance:analyze-cvefrom compliance
Full Go CVE analysis workflow: resolves affected repos, gathers intelligence, analyzes impact with govulncheck and call-graph reachability, generates risk reports, and optionally applies fixes and opens PRs.
Ships in compliance. 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.
Performs comprehensive security vulnerability analysis for Go projects. Given a CVE identifier — supplied directly, or resolved from a Jira ticket — it resolves and clones the affected repository, gathers vulnerability intelligence, analyzes the codebase for impact, generates a risk report, optionally applies fixes, and optionally opens a GitHub pull request after a verified fix.
Explicit invocation uses the following argument syntax:
/compliance:analyze-cve <CVE-ID> [--repo=<url-or-component>] [--algo=vta|rta|cha|static] [--auto-approve=yes|no]
/compliance:analyze-cve --jira=<PROJ-NNN> [--repo=...] [--algo=...] [--auto-approve=yes|no]
/compliance:analyze-cve --jql="<JQL query>" [--repo=...] [--algo=...] [--auto-approve=yes|no]
Repository resolution works in four ways, in priority order: (1) an explicit --repo= (full URL or short image/component name), (2) in direct-CVE mode only, exactly one pre-cloned repository already present in this workspace's repos/ directory when --repo= was not passed — in Jira/JQL mode that sole candidate is instead validated against the ticket's resolved image/branch before reuse, never assumed, (3) an image name extracted from a Jira ticket's summary/labels/custom fields when --jira=/--jql= was used, or (4) an interactive prompt for the repository URL or image name. See Phase 0.7 in the implementation reference for the full resolution and cloning logic.
Designed for both interactive use and headless execution (e.g. claude --print "/compliance:analyze-cve --jira=OCPBUGS-12345 --auto-approve=yes") for scheduled/periodic runs.
Exactly one of the following input modes is required:
<CVE-ID> — Direct CVE identifier (format: CVE-YYYY-NNNNN, case-insensitive). Use when you already know the CVE.--jira=PROJ-NNN — Jira ticket key (e.g. --jira=OCPBUGS-12345). This skill fetches the ticket and extracts the CVE ID, affected image name, and enrichment context (CVSS, CWE, priority, workarounds) from it.--jql="..." — JQL query (e.g. --jql="project = OCPBUGS AND labels = needs-cve-analysis"). Fetches a batch of matching issues, filters out any already labeled ai-cve-analyzed, and processes exactly one of the remainder per run (see Phase 0.3). Re-running the same JQL periodically works through the queue over multiple invocations.Optional flags:
--repo=<url-or-component>: Repository to analyze. Accepts:
--repo=https://github.com/openshift/cert-manager-operator--repo=cert-manager-operator-rhel9 (resolved via the image-repo-mapping skill)--jira/--jql was used), then prompts the user.--algo (default: vta): Call graph construction algorithm.
vta — Most precise, fewest false positives (recommended)rta — Good balance of precision and speedcha — Fast, less precisestatic — Fastest, least precise--auto-approve=yes|no (default: no): Run end-to-end without interactive approval prompts. See Autonomous Mode in the implementation reference. Intended for scheduled/headless runs.Read and follow references/implementation.md for the full phase-by-phase procedure once the arguments above are parsed — do not paraphrase or improvise it. It covers, in order:
AUTO_APPROVE decision table (what's gated vs. what always hard-fails)AI_HELPERS_WORKSPACE, FORK_ORGBasic CVE analysis against an explicit repo:
/compliance:analyze-cve CVE-2024-45338 --repo=https://github.com/openshift/cert-manager-operator
With specific algorithm:
/compliance:analyze-cve CVE-2024-45338 --repo=https://github.com/openshift/cert-manager-operator --algo=rta
Starting from a Jira ticket (repo/branch resolved automatically from the ticket's image name):
/compliance:analyze-cve --jira=OCPBUGS-12345
Unattended run from a JQL queue, applying fixes and opening a PR without prompts:
claude --print "/compliance:analyze-cve --jql=\"project = OCPBUGS AND labels = needs-cve-analysis ORDER BY created ASC\" --auto-approve=yes"
All tools below are required. This skill exits with an error if any are missing.
# Install all required Go tools
go install golang.org/x/vuln/cmd/govulncheck@latest
go install golang.org/x/tools/cmd/callgraph@latest
go install golang.org/x/tools/cmd/digraph@latest
# git is also required (Phase 0.7 repository cloning) — install via your OS package manager
Optional:
graphviz for visual call graph generation (brew install graphviz or sudo apt-get install graphviz)gh (GitHub CLI, authenticated via gh auth login) for Phase 6 pull-request creation. Missing gh does not fail Phase 0 — analysis and local fixes still run; Phase 6 is skipped until it's available.jira plugin's bundled Rovo MCP) or jira-cli for --jira=/--jql= input modes and posting reports back to JiraInternet access is recommended for CVE data fetching but not required if you can provide CVE details manually.
--repo=, Jira image-name mapping, or reusing a repo already cloned into .work/compliance/analyze-cve/repos/ by a previous run — see Phase 0.7. All analysis and fix-application phases run against that cloned REPO_DIR, not the directory this skill happened to be invoked from.--auto-approve=yes (see Autonomous Mode)..work/compliance/analyze-cve/, gitignored) and not committed to git — see Runtime Configuration to relocate this base directory.True, this skill stops immediately and outputs nothing about the ticket.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub openshift-eng/ai-helpers --plugin compliance9 skills in this plugin
/call-graph-analysisPerform definitive call graph analysis to prove whether vulnerable functions are reachable from program entry points/codebase-impact-analysisAnalyze a Go codebase to determine if it is impacted by a specific CVE using multiple verification methods and assign a risk level/create-fix-prUse when opening or updating a GitHub pull request after Phase 5 of `/compliance:analyze-cve` has applied and verified a CVE fix locally./cve-intelligence-gatheringGather comprehensive vulnerability information from multiple authoritative sources with fallback strategies/image-repo-mappingUse when resolving which GitHub repository to clone for CVE analysis from a container image name in a Jira ticket summary, pscomponent label, or Downstream Component Name field./jira-cve-extractionUse when `/compliance:analyze-cve` is invoked with `--jira=` or `--jql=` and needs the CVE ID, image name, branch, and enriched ticket context from a Jira issue.Other plugins' skills for the same job