setup-gh2jira

setup-gh2jira is a command for coding agents from openshift-eng/ai-helpers. It costs 14 tokens per session (4,636 once invoked), scanned B, original, Apache-2.0.

A setup command for gh2jira, a utility that links GitHub issues with Jira issues. It checks dependencies, builds the utility, and guides you through API credentials and configuration.

In plain words
What is it for?
Use it when you need to install gh2jira and connect a GitHub account with a Jira account. It also helps create project profiles and status mappings.
Why use it?
It removes the manual work of installing the tool and creating its token and workflow files. This helps prevent configuration errors before synchronizing issue data.

Command

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

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.

agentmods
npx agentmods add commands/openshift-eng/ai-helpers/setup-gh2jira
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

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 setup-gh2jira

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/setup-gh2jira.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/setup-gh2jira)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/setup-gh2jira"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/setup-gh2jira.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,636 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00014 $0.04636
Opus 5 $0.00007 $0.02318
Sonnet 5 $0.00003 $0.00927
Haiku 4.5 $0.00001 $0.00464

Measured 2d ago against content hash e7348237dc0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup-gh2jira scanned grade B with 2 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt update && sudo apt install golang-go

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user | jq -r '.login'
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/jira/commands/setup-gh2jira.md · 794 lines

How it starts

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

Name

jira:setup-gh2jira

Synopsis

/jira:setup-gh2jira

Description

The jira:setup-gh2jira command guides you through the complete installation and configuration of the gh2jira utility, which enables cloning and reconciling GitHub issues with Jira. This command:

  • Checks for and installs required dependencies (Go)
  • Clones and builds the gh2jira utility
  • Guides you through creating GitHub and Jira API Tokens
  • Creates and configures tokenstore.yaml with your credentials
  • Optionally creates profiles.yaml for project shortcuts
  • Creates default workflows.yaml for state mapping
  • Adds gh2jira to your PATH for easy access

Implementation

📋 Phase 1: Check Prerequisites

1.1 Verify Go Installation

Check if Go is installed:

go version

If Go is not installed:

  • Display Go version if present
  • If missing, provide installation instructions based on platform:

macOS:

# Using Homebrew (recommended)
brew install go

# Or download from: https://go.dev/dl/

Linux:

# Ubuntu/Debian
sudo apt update && sudo apt install golang-go

# Fedora/RHEL
sudo dnf install golang

# Or download from: https://go.dev/dl/

Windows:

  • Download installer from: https://go.dev/dl/
  • Run the MSI installer
  • Verify installation by opening a new terminal and running go version

Minimum Go version: 1.18 or higher

1.2 Verify Git Installation
git --version

If not installed, provide platform-specific instructions.

1.3 Check for Existing gh2jira Installation
which gh2jira

If gh2jira is found, ask the user if they want to:

  1. Reconfigure the existing installation
  2. Reinstall from scratch
  3. Exit setup

🔧 Phase 2: Install gh2jira

2.1 Determine Installation Location

Ask the user where they want to install gh2jira:

Recommended locations:

  • ~/go/src/github.com/oceanc80/gh2jira (Go workspace convention)
  • ~/.local/bin/gh2jira (User local binaries)
  • Custom path specified by user

Read the full file on GitHub · 794 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. 2d ago First seen · 794 lines · 14 tokens per session scan B e7348237dc0c

Subscribe to this mod's changes

setup-gh2jira is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 4,636 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.