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.
npx skills add openshift-eng/ai-helpers --skill detect-permafailgit clone --depth 1 https://github.com/openshift-eng/ai-helpersWrote 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.
[](https://agentmods.dev/skills/openshift-eng/ai-helpers/detect-permafail)<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/detect-permafail"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/detect-permafail/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.
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/detect-permafail"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/detect-permafail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.10296 |
| Opus 5.5 | $0.00009 | $0.04118 |
| Sonnet 5.5 | $0.00004 | $0.02059 |
| Haiku 4.5 | $0.00002 | $0.01030 |
Grade A, and why
detect-permafail 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 885 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Detect Permafail
When to Use This Skill
Use this skill when you have 2-10 consecutive failures of the same job and need to determine if the failures represent a systematic/permanent failure (permafail) versus a flaky failure. This is critical for CI/CD pipeline analysis to distinguish between:
- Permafail: A systematic failure affecting the same test(s) or infrastructure issue, detected by analyzing comparable runs (same failure type):
- 2-3 comparable runs: All must have the same failure (100% match)
- 4-5 comparable runs: At least 4 must have the same failure (80% match)
- 6-10 comparable runs: At least ceil(count × 0.7) must have the same failure (70% match)
- Flaky: Non-deterministic failures with varying root causes, or failures that don't meet the permafail thresholds
Prerequisites
- Access to OpenShift CI Prow job artifacts via gcsweb URLs
- Access to the
Bashtool for runningplugins/ci/scripts/classify-job-failures.py - Python with the
requestspackage available for artifact fetching - Knowledge of Prow artifact structure (from
fetch-prowjob-jsonandprow-job-artifact-searchskills) - 2-10 URLs pointing to consecutive job failures (from Prow/OpenShift CI, ordered newest to oldest)
- Job name context to verify consistency across all failures
- PR information to provide context for analysis
Implementation Steps
Step 1: Validate Inputs
Standard Mode (URL-based):
Verify that all required inputs are present with expected types and constraints:
failure_urls: Array of 2-10 strings matching Prow job URL patternhttps://prow.ci.openshift.org/view/gs/<bucket>/<path>/<job-name>/<build-id>where path may belogs/,pr-logs/pull/, or other GCS paths (must be consecutive runs, ordered newest to oldest)job_name: Non-empty string identifier of the job being analyzedpr_info: Object containing PR number (integer) and repository context (string)- Each URL must match the Prow job URL pattern above
Reject requests if:
- URLs count is less than 2 or more than 10
- Job names don't match across all URLs (validate via prowjob.json metadata, not path position)
- PR context is missing
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.
- 3mo ago First seen · 885 lines · 22 tokens per session scan A eea95463ef38
detect-permafail is a skill published in the GitHub repository openshift-eng/ai-helpers (123 stars, last pushed yesterday), licensed Apache-2.0. It adds 22 tokens to every session and 10,296 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-08-30.
detect-permafail compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| detect-permafailopenshift-eng/ai-helpers | Skill | 123 | yesterday | Apache-2.0 | A | 22 | Claude Code |
| repair-github-ciTracer-Cloud/opensre | Skill | 17k | today | Apache-2.0 | A | 40 | Claude Code, Codex |
| mcore-create-issueNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 26 | Claude Code |
| debug-taskmoonrepo/moon | Skill | 4.2k | yesterday | MIT | A | 203 | Claude Code |
| operating-github-ci-fixerTracer-Cloud/opensre | Skill | 17k | today | Apache-2.0 | A | 48 | Claude Code, Codex |
| meta-long-running-build-watchdogopensquilla/opensquilla | Skill | 7.2k | 6d ago | Apache-2.0 | A | 131 | Claude Code |
| analyze-cibenchflow-ai/skillsbench | Skill | 1.9k | yesterday | Apache-2.0 | A | 15 | Claude Code |