Agent skill

Stage Payload Reverts

by openshift-eng in openshift-eng/ai-helpers

Create TRT JIRA bugs, open revert PRs, and trigger payload jobs for high-confidence revert candidates

Apache-2.0Auto-check passedAgent Workflows

Install Stage Payload Reverts

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill stage-payload-reverts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openshift-eng/ai-helpers stage-payload-reverts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ci/skills/stage-payload-reverts .claude/skills/stage-payload-reverts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
stage-payload-reverts
GitHub stars
120
Token cost
~2.3k tokens
SKILL.md length
1,150 words
Files
1
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Create TRT JIRA bugs, open revert PRs, and trigger payload jobs for high-confidence revert candidates

  • Works in 5 steps: Check Jira MCP Availability → Launch Subagents → Create TRT JIRA Bug (with idempotency… → …
  • Payload jobs for high-confidence revert candidates
  • SKILL.md covers When to Use This Skill, Required Skills, Prerequisites and Implementation Steps, plus 3 more sections
  • Calls gh

What it does

Stage Payload Reverts is an agent skill from openshift-eng/ai-helpers. Create TRT JIRA bugs, open revert PRs, and trigger payload jobs for high-confidence revert candidates

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. It works with Jira and Model Context Protocol. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.

When your agent uses it

  • Payload jobs for high-confidence revert candidates

Example prompts

  • “/stage-payload-reverts”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Check Jira MCP Availability
  2. Launch Subagents
  3. Create TRT JIRA Bug (with idempotency check)
  4. Open Revert PR (with idempotency check)
  5. Trigger Payload Jobs and Collect Run URLs

What it can do on your machine

Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Stage Payload Reverts loads about 2.3k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 1,150 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 1,150 words, ~2,290 tokens.

Download SKILL.mdSave it as .claude/skills/stage-payload-reverts/SKILL.md (or your agent's skills folder).
name
stage-payload-reverts
description
Create TRT JIRA bugs, open revert PRs, and trigger payload jobs for high-confidence revert candidates

Stage Payload Reverts

This skill automates the full revert-staging workflow for payload regressions: creating TRT JIRA bugs, opening revert PRs, and triggering payload validation jobs.

When to Use This Skill

Use this skill when revert candidates have already been identified with high confidence by the payload-analysis skill. The caller passes all required context in-memory — this skill does not perform its own analysis.

Inputs (passed in-context by the caller):

  • results_yaml_path: Path to the payload results YAML file (e.g., ./payload-results-{tag}.yaml)
  • payload_tag: The full payload tag being analyzed
  • version, stream, architecture: Parsed from the payload tag
  • release_controller_url: URL to the payload on the release controller
  • revert_candidates: List of PRs to revert, each with:
    • pr_url, pr_number, component, confidence_score, rationale
    • originating_payload_tag: The payload where this candidate PR first caused failures
    • failing_jobs: List of {job_name, prow_url, is_aggregated, underlying_job_name}

Required Skills

Before starting, you MUST load the following skills (they define output schemas used when updating results):

  1. payload-results-yaml — schema for the payload results YAML file
  2. payload-autodl-json — schema for the autodl JSON data file

Prerequisites

  1. GitHub CLI (gh): Installed and authenticated
  2. JIRA MCP: Configured for creating TRT issues (validated in Step 1)
  3. Repository Access: User must have push access to their fork of each target repository

Implementation Steps

Step 1: Check Jira MCP Availability

Before launching subagents, verify the Jira MCP server is working by attempting a lightweight read-only Jira MCP call (e.g., a simple JQL search or fetching the current user profile — use whichever Jira MCP tool is available).

If the call fails (tool not found, connection error, authentication error, or any other error), stop and inform the user. Present two options:

  1. Fix and retry: "Fix your Jira MCP configuration and tell me when it's working. I'll pick up where I left off."
  2. Continue without Jira: "Continue without creating Jira issues. I'll open the revert PRs and trigger payload jobs, and give you the details to create Jira issues yourself afterward."

Wait for the user to choose. If no user input is available (e.g., running autonomously), default to option 2. If the user chooses option 1, re-run the check when they say it's ready.

Step 2: Launch Subagents

For each qualifying revert candidate, launch a parallel subagent (do NOT set the model parameter). Each subagent executes Steps 3–5 in order.

Step 3: Create TRT JIRA Bug (with idempotency check)

If Jira MCP was unavailable in Step 1 and the user chose to continue without it, skip Jira creation and proceed to Step 4. After all subagents complete, print the Jira issue details for each candidate (project, type, summary, description, and labels as described below) so the user can create them manually.

Preflight: Before creating a new issue, search for an existing TRT bug for this PR:

jql: project = TRT AND labels = "trt-incident" AND description ~ "{pr_url}" ORDER BY created DESC

Use the Jira MCP search tool with this JQL. If a matching issue is found, reuse its key and URL — skip creation and proceed to Step 4.

Create (only if no existing issue found): Use the Jira MCP create issue tool:

  • project_key: "TRT"
  • issue_type: "Bug"
  • summary: A concise description of the problem (the symptom, not the solution). Summarize which jobs are failing and the failure mode. For example: "aws-ovn and aws-ovn-upgrade jobs failing with KAS crashloop in {stream} {architecture} payload". Do NOT use "Revert ..." as the summary — the revert is the action, not the problem.
  • description (Jira wiki markup):
    h2. Payload Regression
    
    PR {pr_url} is causing blocking job failures in the {stream} {architecture} payload.
    
    h2. Evidence
    
    * Payload: [{payload_tag}|{release_controller_url}]
    * Failing blocking jobs:
    ** [{job_name_1}|{prow_url_1}]
    ** [{job_name_2}|{prow_url_2}]
    * Originating payload: {originating_payload_tag}
    * {rationale}
    
    h2. Action
    
    Revert PR {pr_url} to restore payload acceptance.
  • additional_fields:
    • labels: ["trt-incident", "ai-generated-jira"]

Record the created (or reused) JIRA key and URL.

Step 4: Open Revert PR (with idempotency check)

Preflight: Before opening a new revert PR, check whether one already exists:

bash
gh pr list --repo <org>/<repo> --search "revert <pr_number>" --json number,title,url,state --limit 5

If an open or draft revert PR is found for this PR number, reuse its URL — skip the revert-pr skill and proceed to Step 5.

Create (only if no existing revert PR found): Load the revert-pr skill (plugins/ci/skills/revert-pr/SKILL.md) and follow its workflow:

  • PR URL: the offending PR
  • JIRA ticket: the TRT key from Step 3 (if available)
  • Context (use --context): This PR is causing blocking job failures ({job names}) in the {stream} {architecture} payload [{payload_tag}]({release_controller_url}).
  • Do NOT prompt the user for any input

Record the revert PR URL (created or reused).

Show full SKILL.md (471 more words)Show less
Step 5: Trigger Payload Jobs and Collect Run URLs

Use the trigger-payload-job skill (plugins/ci/skills/trigger-payload-job/SKILL.md) to trigger payload validation jobs on the revert PR and collect the resulting URLs. Pass:

  • pr_url: The revert PR URL from Step 4
  • jobs: The failing_jobs list for this candidate (includes job_name, is_aggregated, underlying_job_name for each job)

The skill handles idempotency (checking for existing bot replies), correct command selection, polling, and URL extraction.

See the trigger-payload-job skill for exact command syntax. The skill enforces format requirements.

Record the payload_test_url and individual prow_urls from the skill's return data.

Subagent Return Format

Each subagent should use the payload-results-yaml skill to update the results YAML, then return a brief status summary (success/partial/failed with any error descriptions) for the caller to print.

Collect all subagent results.

Update Payload Results YAML

After all subagents complete, use the payload-results-yaml skill to append an action to each processed candidate's actions array in the results file at results_yaml_path:

  • type: "revert"
  • status: "staged" (or "failed" if the revert PR could not be created)
  • revert_pr_url, revert_pr_state, jira_key, jira_url, result_summary, payload_jobs

See the payload-results-yaml skill for the full schema.

Update HTML Report

After updating the results YAML, update the HTML report (payload-analysis-{sanitized_tag}-summary.html in the current working directory) to include links to the staged reverts.

Find the existing "Recommended Reverts" section in the HTML. For each candidate that was successfully staged, add a new row to the table or update the existing row to include:

  • Revert PR: Link to the revert PR (e.g., <a href="{revert_pr_url}">#{revert_pr_number}</a>)
  • JIRA: Link to the TRT issue (e.g., <a href="{jira_url}">{jira_key}</a>)
  • Payload Jobs: Link to the pr-payload-tests URL (e.g., <a href="{payload_test_url}">Payload Test</a>)
  • Status: Badge showing Revert Staged (use the badge-rejected class for visual consistency)

If the report has no "Recommended Reverts" section (all candidates scored below 85 during analysis), add one before the per-job details section, using the same HTML structure as described in payload-analysis Step 7.4.

Update autodl JSON

After updating the HTML report, use the payload-autodl-json skill's "Update Revert Status" operation to update the autodl JSON file for each candidate that was successfully staged.

Return results to the caller for inclusion in the report.

Error Handling

  • If JIRA MCP is unavailable, Step 1 handles it. If JIRA creation fails for other reasons at Step 3, continue with the revert PR and note the error.
  • If the revert PR fails (e.g., merge conflicts), record the error and skip payload job triggering for that candidate.
  • If payload job triggering fails, record the error but keep the JIRA and revert PR.
  • Do not let one failed candidate block processing of others.

See Also

  • Related Skill: payload-results-yaml - Schema and operations for the payload results YAML
  • Related Skill: revert-pr - The git revert workflow (plugins/ci/skills/revert-pr/SKILL.md)
  • Related Skill: trigger-payload-job - Triggers payload jobs and collects URLs (plugins/ci/skills/trigger-payload-job/SKILL.md)
  • Related Skill: payload-analysis - Identifies revert candidates (plugins/ci/skills/payload-analysis/SKILL.md)
  • Related Command: /ci:payload-revert - Command for staging reverts (plugins/ci/commands/payload-revert.md)

© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ci/skills/stage-payload-reverts of openshift-eng/ai-helpers.

Open the folder on GitHubat commit a627176

Compare with similar skills

Stage Payload Reverts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Stage Payload Reverts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stage Payload Reverts this skillopenshift-eng/ai-helpers120—~2.3kAutomated safety check: PassApache-2.0
Akb Ingestdnotitia/akb162—~2kAutomated safety check: PassCustom licence
Jira Assistanttech-leads-club/agent-skills7k—~2.3kAutomated safety check: PassCustom licence
Jira Integrationaffaan-m/ECC276k1 repos~2.5kAutomated safety check: WarnMIT
Run JiraDataDog/datadog-agent3.8k—~635Automated safety check: PassApache-2.0
Integration Orchestratorrampstackco/claude-skills941—~5.3kAutomated safety check: PassMIT

Similar skills

  • Akb Ingest

    dnotitia/akb

    Ingest whatever you point at into an AKB vault — a local file, a web URL, a GitHub PR/release/commit, a Confluence page, or a Jira issue.

    162 GitHub stars~2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Jira Assistant

    tech-leads-club/agent-skills

    Manage Jira issues via Atlassian MCP — search, create, update, transition status, and handle sprint tasks.

    7k GitHub stars~2.3k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Jira Integration

    affaan-m/ECC

    A skill your agent uses when retrieving Jira tickets, analyzing requirements, updating ticket status, adding comments, or transitioning issues.

    276k GitHub starsUsed in 1 repo~2.5k tokens
    Agent WorkflowsAuto-check: warnings
  • Run Jira

    DataDog/datadog-agent

    Official

    Fetch a Jira issue and propose an implementation plan based on codebase analysis

    3.8k GitHub stars~635 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Integration Orchestrator

    rampstackco/claude-skills

    Generate a phased delivery orchestration plan for creative-direction-driven work: which skills run when, what locks at which gate, how handoffs occur, and how the cadence implements in the team's…

    941 GitHub stars~5.3k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Work Items To Jira

    testdouble/han

    Break a work-items.md file (produced by /plan-work-items) into independently-grabbable Jira tickets, one per slice, in a single Jira project.

    279 GitHub stars~4.3k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed

More from openshift-eng/ai-helpers

All 118 skills in this repo
  • Investigate CI Reliability

    openshift-eng/ai-helpers

    Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.

    120 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Address Review PR

    openshift-eng/ai-helpers

    Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.

    120 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Categorize Activity Types

    openshift-eng/ai-helpers

    Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

    120 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Has Review Work

    openshift-eng/ai-helpers

    Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.

    120 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Must Gather Analyzer

    openshift-eng/ai-helpers

    Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.

    120 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Payload Autodl JSON

    openshift-eng/ai-helpers

    Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file

    120 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Stage Payload Reverts

What does Stage Payload Reverts do?

Create TRT JIRA bugs, open revert PRs, and trigger payload jobs for high-confidence revert candidates. Stage Payload Reverts is an agent skill from openshift-eng/ai-helpers.

When should I use Stage Payload Reverts?

Stage Payload Reverts fits situations like: payload jobs for high-confidence revert candidates.

How do I install Stage Payload Reverts in Claude Code?

Run `npx skills add openshift-eng/ai-helpers --skill stage-payload-reverts -a claude-code`. Or copy the skill folder (plugins/ci/skills/stage-payload-reverts in openshift-eng/ai-helpers) into .claude/skills/stage-payload-reverts in your project. Claude Code loads it when a task matches its description.

How do I install Stage Payload Reverts in Codex?

Run `npx skills add openshift-eng/ai-helpers --skill stage-payload-reverts -a codex`. Or copy the skill folder (plugins/ci/skills/stage-payload-reverts in openshift-eng/ai-helpers) into .agents/skills/stage-payload-reverts in your project. Codex loads it when a task matches its description.

Can I use Stage Payload Reverts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill stage-payload-reverts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stage-payload-reverts, .gemini/skills/stage-payload-reverts, .github/skills/stage-payload-reverts and .opencode/skills/stage-payload-reverts in your project.

What does Stage Payload Reverts need to run?

Going by SKILL.md and its folder, Stage Payload Reverts needs the command-line tools its instructions call (gh).

Does Stage Payload Reverts access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Stage Payload Reverts safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Stage Payload Reverts use?

Stage Payload Reverts is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Stage Payload Reverts use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Stage Payload Reverts?

Skills that share tags, products or a category with Stage Payload Reverts: Akb Ingest (dnotitia/akb, 162 stars), Jira Assistant (tech-leads-club/agent-skills, 7k stars), Jira Integration (affaan-m/ECC, 276k stars) and Run Jira (DataDog/datadog-agent, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stage Payload Reverts?

openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.

Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.