preflight

preflight is a command for Claude Code from openshift-eng/ai-helpers. It costs 18 tokens per session (715 once invoked), scanned A, original, Apache-2.0.

A readiness check for GitHub and Jira access and the command-line tools used by Node team workflows. GitHub is a code-hosting service, while Jira tracks work items and issues.

In plain words
What is it for?
Use it before repository setup or Node team issue-triage tasks to verify GitHub login, GitHub API access, Jira credentials, and Jira connectivity.
Why use it?
It finds missing, expired, or insufficient credentials before another workflow fails halfway through. The results show which checks passed and which need fixing.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the node-team plugin — 1 skill, 4 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/preflight
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install node-team, the plugin that ships this one along with the rest of its 1 skill, 4 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 preflight

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/preflight.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/preflight)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/preflight"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/preflight.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00018 $0.00715
Opus 5 $0.00009 $0.00358
Sonnet 5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured yesterday against content hash a846a77004e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

preflight scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

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

curl -s -o /dev/null -w "%{http_code}" -u "$JIRA_USER:$JIRA_API_TOKEN" \
plugins/node-team/commands/preflight.md · 116 lines

How it starts

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

Name

node-team:preflight

Synopsis

/node-team:preflight [--fix]

Description

Tests all authentication tokens and CLI tools required by Node team workflows in a single pass. Reports pass/fail for each check so you can fix all auth issues at once instead of discovering them one at a time.

Run this before /node-team:setup, /node-cve:triage, or /node-bug:triage to catch expired or missing credentials early.

Implementation

Run these checks in order and collect results:

1. GitHub CLI (gh)

gh auth status
  • Pass: output contains "Logged in to github.com"
  • Fail: not installed, not logged in, or token expired

2. GitHub API access

gh api user -q .login
  • Pass: returns a username
  • Fail: token lacks required scopes or is expired

3. Jira API token

Resolve the token using the same chain as jira.md (env var, macOS Keychain, Linux secret-tool):

JIRA_API_TOKEN="${JIRA_API_TOKEN:-$(security find-generic-password -s "JIRA_API_TOKEN" -w 2>/dev/null || secret-tool lookup service redhat key JIRA_API_TOKEN 2>/dev/null)}"
  • Pass: non-empty value resolved
  • Fail: no token found in any source

4. Jira API connectivity

curl -s -o /dev/null -w "%{http_code}" -u "$JIRA_USER:$JIRA_API_TOKEN" \
  "https://redhat.atlassian.net/rest/api/3/myself"
  • Pass: HTTP 200
  • Fail: 401 (bad token), 403 (permissions), or connection error

5. Jira CLI (jira)

jira me
  • Pass: returns current user info
  • Fail: not installed or not configured (required by node-cve; node-team and node-bug use curl directly)

Summary

Print a table of results:

Check                 Status
-----                 ------
GitHub CLI            PASS
GitHub API            PASS
Jira API token        PASS
Jira API connectivity PASS
Jira CLI              PASS (node-cve only)

If any required check fails and --fix is specified, print the remediation steps for each failure (e.g., gh auth login, how to set JIRA_API_TOKEN). If --fix is not specified, print a hint to re-run with --fix for guidance.

Read the full file on GitHub · 116 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. yesterday First seen · 116 lines · 18 tokens per session scan A a846a77004e0

Subscribe to this mod's changes

preflight is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed yesterday), licensed Apache-2.0. It adds 18 tokens to every session and 715 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.