Agent skill

Diagnose Job Run Symptoms

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

Explain which Sippy Symptoms and failure Labels apply to a Prow CI job run, in plain language, given only the Prow URL

Apache-2.0Auto-check passedWriting & Content

Install Diagnose Job Run Symptoms

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill diagnose-job-run-symptoms -a claude-code

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

GitHub CLI
$ gh skill install openshift-eng/ai-helpers diagnose-job-run-symptoms --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/diagnose-job-run-symptoms .claude/skills/diagnose-job-run-symptoms && 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
diagnose-job-run-symptoms
GitHub stars
120
Token cost
~1.8k tokens
SKILL.md length
879 words
Files
3
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Explain which Sippy Symptoms and failure Labels apply to a Prow CI job run, in plain language, given only the Prow URL

  • Works in 3 steps: Default mode — explain already-applied… → Deep mode — server-side rescan → Nothing matched?
  • Tasks that involve Plain language and style rules
  • SKILL.md covers When to Use This Skill, Prerequisites, Implementation Steps and API Details, plus 2 more sections
  • Runs Python scripts from its folder; calls python3; reaches storage.googleapis.com and prow.ci.openshift.org; needs SIPPY_TOKEN

What it does

Diagnose Job Run Symptoms is an agent skill from openshift-eng/ai-helpers. Explain which Sippy Symptoms and failure Labels apply to a Prow CI job run, in plain language, given only the Prow URL

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `diagnose_job_run.py` and `test_diagnose_job_run.py`).

It sits in Writing & Content, covering Plain language and style rules. 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

  • Tasks that involve Plain language and style rules

Example prompts

  • “/diagnose-job-run-symptoms”

Requirements

  • Python 3
  • A credential in SIPPY_TOKEN

Workflow steps

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

  1. Default mode — explain already-applied labels
  2. Deep mode — server-side rescan
  3. Nothing matched?

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

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • storage.googleapis.com
    • prow.ci.openshift.org
    • sippy.dptools.openshift.org
    • api.cr.j7t7.p1.openshiftapps.com
    • sippy-auth.dptools.openshift.org

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SIPPY_TOKEN

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

Context cost

Diagnose Job Run Symptoms loads about 1.8k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 879 words of instructions outside code blocks.

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

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). 879 words, ~1,822 tokens.

Download SKILL.mdSave it as .claude/skills/diagnose-job-run-symptoms/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
diagnose-job-run-symptoms
description
Explain which Sippy Symptoms and failure Labels apply to a Prow CI job run, in plain language, given only the Prow URL

Diagnose Job Run Symptoms

Sippy Symptoms are known-failure signatures for OpenShift CI. A symptom is a rule made of a file pattern (a glob over a CI job run's artifact files, e.g. **/build-log.txt) and a matcher (string = substring, regex = regular expression, none = file merely exists, cel = a compound CEL expression over other label names). When a symptom matches a job run's artifacts, Sippy applies one or more Labels — human-readable tags like InfraFailure — to that run. Labels appear in the Sippy UI and Spyglass and help everyone quickly recognize known failure modes without re-debugging them. You do not need any prior Sippy knowledge to use this skill.

This skill takes a Prow job run URL and explains which symptoms matched the run and what each applied label means — including the matched file and text.

When to Use This Skill

Use this skill when:

  • A CI job failed and you want to know if it is a known failure mode before debugging it from scratch
  • You are about to create a new symptom and want to check what already matched the run (see manage-symptoms)
  • You want a plain-language explanation of the labels shown on a run in the Sippy UI or Spyglass

Prerequisites

  1. Default mode (already-applied labels): only network access to public GCS (https://storage.googleapis.com) and the public Sippy API (https://sippy.dptools.openshift.org) — no authentication required.

  2. Deep mode (--deep, server-side dry-run rescan): a Bearer token from the DPCR cluster.

    • Must be logged into the DPCR cluster via oc login
    • Cluster API: https://api.cr.j7t7.p1.openshiftapps.com:6443
    • Use the oc-auth skill to obtain the token (see the token-acquisition snippet in reevaluate-job-runs/SKILL.md); prefer export SIPPY_TOKEN=... over --token — argv is visible in process listings
  3. Python 3: Python 3.6 or later, standard library only.

Implementation Steps

Step 1: Default mode — explain already-applied labels
bash
python3 plugins/ci/skills/diagnose-job-run-symptoms/diagnose_job_run.py \
  "https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/<job>/<build_id>"

For each applied label the summary output shows: the label title and explanation, links to associated Jira issues, the symptom that applied it (summary, matcher type, file pattern, match string), and the actual matched file and matched text from the run's artifacts.

Step 2: Deep mode — server-side rescan

Use when the run predates the current symptom set or shows no labels. This asks Sippy to re-scan the run with dry_run: true — it writes nothing and reports what would match now:

bash
python3 plugins/ci/skills/diagnose-job-run-symptoms/diagnose_job_run.py \
  "<prow_url>" --deep

Note: deep mode reports label IDs only — the matched file/text detail is only available in default mode (it comes from the GCS artifacts). Deep mode submits an asynchronous batch, polls its same-origin status link through pending, processing, and running, and reports results after the batch reaches complete. A failed or cancelled batch is an error.

Step 3: Nothing matched?

If default mode finds no labels, first suggest --deep: the run may simply never have been scanned, and default mode cannot distinguish that from "scanned, nothing matched". If a deep rescan also finds nothing and the user has identified the failure cause, guide them to the manage-symptoms skill to create a new symptom (and reevaluate-job-runs to apply it retroactively to past runs).

Arguments:

  • prow_url: Prow job run URL (https://prow.ci.openshift.org/view/gs/..., positional, required)

Options:

  • --deep: Server-side dry-run rescan via the reevaluate API (requires a token)
  • --token <token>: Bearer token from the oc-auth skill (only needed with --deep; optional if the SIPPY_TOKEN environment variable is set, which is preferred — argv is visible in process listings; --token takes precedence)
  • --format json|summary: Output format (default: summary)
Show full SKILL.md (326 more words)Show less

API Details

Default mode uses the public GCS JSON API (no auth):

  • List label artifacts: GET https://storage.googleapis.com/storage/v1/b/{bucket}/o?prefix={path}/artifacts/job_labels/
  • Download each object: GET https://storage.googleapis.com/storage/v1/b/{bucket}/o/{object}?alt=media

GCS job_labels artifact schema (verified live 2026-07): each *.json object under artifacts/job_labels/ contains one wrapped entry (a label-summary.html file is also present and skipped):

json
{
  "symptom_label_v1": {
    "symptom": {"id": "...", "summary": "...", "matcher_type": "string",
                "file_pattern": "...", "match_string": "...", "label_ids": ["..."]},
    "label": {"id": "...", "label_title": "...", "explanation": "...",
              "bugs": ["OCPBUGS-12345"]},
    "file_match": "artifacts/.../nodes.json",
    "text_match": "the exact text that matched"
  }
}

The script also cross-references GET /api/jobs/labels and GET /api/jobs/symptoms on the public Sippy API to enrich entries with current explanations and Jira associations (embedded copies are snapshots from labeling time).

Deep mode calls POST https://sippy-auth.dptools.openshift.org/api/jobs/runs/reevaluate with {"prow_job_build_ids": ["<build_id>"], "dry_run": true}. Sippy returns HTTP 202 with batch_id, requested, and links.status. The client validates that status link, polls it with authenticated GET requests, and reads labels from each matching items[].result.labels_applied. Cross-origin status URLs and HTTP redirects are rejected rather than followed with or without credentials.

Error Handling

  • Bad / non-Prow URL: Must contain /view/gs/ and end in a numeric build ID (exit 1 client-side).
  • GCS 404 or no job_labels artifacts: The run may be too old (artifacts pruned) or was never scanned — suggest --deep to rescan server-side.
  • No labels found: Not an error — the script prints guidance (try --deep first, then create a new symptom via manage-symptoms).
  • 401/403 or HTML login page in deep mode: Token missing/expired (the SSO proxy may return a login page instead of 401) — refresh via the oc-auth skill.
  • HTML gateway error page or non-JSON body in deep mode: Transient gateway error (likely 504) — retry later.
  • Unknown or malformed batch status: Rejected as an API error instead of polling indefinitely.
  • Failed or cancelled deep batch: Reported as an error (exit 1).
  • Sippy API unreachable: exit 1 with a clear message.

Exit Codes:

  • 0: Diagnosis completed (including "no labels found")
  • 1: Validation, network, or API error

See Also

  • Related Skill: list-symptoms (browse/search the symptom and label catalogs)
  • Related Skill: manage-symptoms (create a new symptom when nothing matched)
  • Related Skill: reevaluate-job-runs (apply symptoms retroactively to past runs)
  • Related Skill: oc-auth (token for deep mode)
  • Related Skill: prow-job-analyze-test-failure (deeper manual failure analysis)

© 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

SKILL.md and 2 other files in plugins/ci/skills/diagnose-job-run-symptoms of openshift-eng/ai-helpers.

  • SKILL.md
  • diagnose_job_run.py
  • test_diagnose_job_run.py

Open the folder on GitHubat commit a627176

Compare with similar skills

Diagnose Job Run Symptoms 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.

Diagnose Job Run Symptoms compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diagnose Job Run Symptoms this skillopenshift-eng/ai-helpers120—~1.8kAutomated safety check: PassApache-2.0
Asd Ste100danyuchn/asd-ste100-skill4.3k—~4.1kAutomated safety check: PassMIT
Technical Writing Standardcursor/plugins11k10 repos~2.3kAutomated safety check: PassNone
Ponytail AuditDietrichGebert/ponytail160k—~1.4kAutomated safety check: PassMIT
Natural Japanese Business Writingcoji/natural-japanese1.9k—~2.1kAutomated safety check: PassMIT
PgjevrealZachi/pg-jev1.1k—~2.9kAutomated safety check: PassCustom licence

Similar skills

  • Asd Ste100

    danyuchn/asd-ste100-skill

    A skill your agent uses when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and…

    4.3k GitHub stars~4.1k tokensUpdated 7 days ago
    Writing & ContentAuto-check passed
  • Official

    Applies four layers of technical-writing rules to docs, RFCs, readmes, PR descriptions and commit messages so a tired engineer follows them on the first read.

    11k GitHub starsUsed in 10 repos~2.3k tokens
    Writing & ContentAuto-check passed
  • Ponytail Audit

    DietrichGebert/ponytail

    Quality audit of a whole repo: bugs, security holes, what breaks under real load, risky code without tests, slow paths, and what to delete, merge or split.

    160k GitHub stars~1.4k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Writes and edits Japanese business documents so they read clearly and naturally, removes AI-sounding phrasing and can score how AI-like a text reads.

    1.9k GitHub stars~2.1k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed
  • Pgjev

    realZachi/pg-jev

    Install, configure, query and explain pgjev (the jev PostgreSQL extension that filters, ranks and classifies rows with plain-language conditions via TypeSafe's Jev model).

    1.1k GitHub stars~2.9k tokensUpdated 4 days ago
    Writing & ContentAuto-check passed
  • Defensive Writing Editor

    lennney/stop-that-shit

    Cuts defensive disclaimers, stacked hedging and self-protective narration from proposals and summaries, keeping only limits that affect the reader's decision.

    2.5k GitHub starsUsed in 1 repo~1.2k tokens
    Writing & ContentAuto-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 4 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 4 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 4 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 4 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 4 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 4 days ago
    Auto-check passed

Questions about Diagnose Job Run Symptoms

What does Diagnose Job Run Symptoms do?

Explain which Sippy Symptoms and failure Labels apply to a Prow CI job run, in plain language, given only the Prow URL. Diagnose Job Run Symptoms is an agent skill from openshift-eng/ai-helpers.

When should I use Diagnose Job Run Symptoms?

Diagnose Job Run Symptoms fits situations like: tasks that involve Plain language and style rules.

How do I install Diagnose Job Run Symptoms in Claude Code?

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

How do I install Diagnose Job Run Symptoms in Codex?

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

Can I use Diagnose Job Run Symptoms 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 diagnose-job-run-symptoms -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagnose-job-run-symptoms, .gemini/skills/diagnose-job-run-symptoms, .github/skills/diagnose-job-run-symptoms and .opencode/skills/diagnose-job-run-symptoms in your project.

What does Diagnose Job Run Symptoms need to run?

Going by SKILL.md and its folder, Diagnose Job Run Symptoms needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named SIPPY_TOKEN. Our summary lists: Python 3; A credential in SIPPY_TOKEN.

Does Diagnose Job Run Symptoms access the network?

SKILL.md names 5 domains. In commands or code: storage.googleapis.com, prow.ci.openshift.org, sippy.dptools.openshift.org, api.cr.j7t7.p1.openshiftapps.com and sippy-auth.dptools.openshift.org; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Diagnose Job Run Symptoms 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 Diagnose Job Run Symptoms use?

Diagnose Job Run Symptoms 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 Diagnose Job Run Symptoms use?

About 1.8k tokens (SKILL.md is roughly 7.3k 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 Diagnose Job Run Symptoms?

Skills that share tags, products or a category with Diagnose Job Run Symptoms: Asd Ste100 (danyuchn/asd-ste100-skill, 4.3k stars), Technical Writing Standard (cursor/plugins, 11k stars), Ponytail Audit (DietrichGebert/ponytail, 160k stars) and Natural Japanese Business Writing (coji/natural-japanese, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diagnose Job Run Symptoms?

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.