validate-bug

validate-bug is a command for Claude Code from openshift-eng/ai-helpers. It costs 25 tokens per session (1,141 once invoked), scanned A, original, Apache-2.0.

A command that checks why a pull request, a proposed code change, was marked as an invalid JIRA bug. It runs seven checks and can offer to correct failing JIRA fields through JIRA tools.

In plain words
What is it for?
Use it with a pull request, pull request number, or JIRA key to diagnose blocked bug changes, check branch-specific versions, and fix failing JIRA data.
Why use it?
It shows exactly which requirement is blocking the bug and avoids manually searching through JIRA for the needed corrections.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the jira plugin — 13 skills, 17 commands shipped together

Good fit Use it with a pull request, pull request number, or JIRA key to diagnose blocked bug changes, check branch-specific versions, and fix failing JIRA data.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/openshift-eng/ai-helpers/validate-bug
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.

Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install jira, the plugin that ships this one along with the rest of its 13 skills, 17 commands.

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 validate-bug

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/validate-bug/github.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/validate-bug)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/validate-bug"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/validate-bug/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 validate-bug

Your own site · 80×15
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/validate-bug"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/validate-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,141 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.00025 $0.01141
Opus 5.5 $0.00010 $0.00456
Sonnet 5.5 $0.00005 $0.00228
Haiku 4.5 $0.00003 $0.00114

Measured 1mo ago against content hash 3c0951a3e089, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validate-bug 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 1mo 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/jira/commands/validate-bug.md · 107 lines

How it starts

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

Name

jira:validate-bug

Synopsis

/jira:validate-bug <PR-URL | PR-number | JIRA-key> [--branch release-4.X|main|master]

Description

The jira:validate-bug command diagnoses why the Prow jira/invalid-bug label was applied to a PR. It runs the same 7 validation checks as the jira-lifecycle-plugin, reports pass/fail for each check, and offers to fix failing checks via JIRA MCP tools.

This command is essential for:

  • Diagnosing why a PR is stuck with jira/invalid-bug
  • Understanding which JIRA fields need correction
  • Fixing JIRA bugs in-place without manual field hunting
  • Batch-diagnosing multiple blocked PRs

Key Features

  • 7-Check Validation — Same checks as the Prow plugin: open state, target version, valid status, release notes, dependent bug states, dependent target versions, dependents exist
  • PR-Aware — Accepts PR URLs/numbers, auto-extracts JIRA key from title and branch context
  • Fix Mode — After diagnosis, offers to fix failing checks via JIRA MCP tools
  • Branch-Aware — Computes expected target version and dependent version from the PR's base branch

Implementation

For detailed implementation guidance, see the validate-bug skill.

High-Level Workflow

  1. Resolve Input — Parse PR URL/number or JIRA key. Extract JIRA key from PR title and target branch via gh pr view.
  2. Gather Data — Fetch the JIRA bug with all fields via MCP. Follow issue links to find dependent bugs.
  3. Validate — Run all 7 checks against the branch-specific expected values. Produce a pass/fail results table.
  4. Report — Render results matching the jira-lifecycle-plugin bot comment format, with fix instructions for each failure.
  5. Offer Fixes — List fixable failures, ask for confirmation, then apply fixes via MCP tools.

Usage Examples

From PR URL

/jira:validate-bug https://github.com/openshift/hypershift/pull/8811

Read the full file on GitHub · 107 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. 1mo ago First seen · 107 lines · 25 tokens per session scan A 3c0951a3e089

Subscribe to this mod's changes

validate-bug is a command published in the GitHub repository openshift-eng/ai-helpers (121 stars, last pushed today), licensed Apache-2.0. It adds 25 tokens to every session and 1,141 once invoked, about $0.0001 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-05.