AICodingFlow: Skill for Claude Code

.agents/skills/diagnose-ci-failures/SKILL.md

diagnose-ci-failures is a skill for Claude Code, Codex from Terry-Mao/AICodingFlow. It costs 33 tokens per session (389 once invoked), scanned A, original, MIT.

A diagnosis workflow for investigating failed continuous integration, or CI, which automatically builds and tests code after changes. It examines a pull request, branch, workflow run, or GitHub Actions URL and produces a plan without editing code.

In plain words
What is it for?
Use it to inspect failed checks, logs, tests, stack traces, file paths, line numbers, and environment or permission errors, then organize the findings into a fix plan.
Why use it?
It turns failed checks and logs into evidence about what went wrong, while avoiding unrequested code changes or GitHub updates. It distinguishes build, test, lint, and setup problems instead of guessing one cause.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Terry-Mao/AICodingFlow's own configuration. It tells Claude Code and Codex how to work on AICodingFlow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AICodingFlow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Terry-Mao/AICodingFlow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Terry-Mao/AICodingFlow/main/.agents/skills/diagnose-ci-failures/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Terry-Mao/AICodingFlow

Made for: Claude Code, Codex.

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 diagnose-ci-failures

README.md
[![agentmods](https://agentmods.dev/badge/skills/terry-mao/aicodingflow/diagnose-ci-failures.svg)](https://agentmods.dev/skills/terry-mao/aicodingflow/diagnose-ci-failures)
Your own site
<a href="https://agentmods.dev/skills/terry-mao/aicodingflow/diagnose-ci-failures"><img src="https://agentmods.dev/badge/skills/terry-mao/aicodingflow/diagnose-ci-failures.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 389 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00033 $0.00389
Opus 5 $0.00016 $0.00195
Sonnet 5 $0.00007 $0.00078
Haiku 4.5 $0.00003 $0.00039

Measured 8d ago against content hash 00597e10e7af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

diagnose-ci-failures 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 8d 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.

.agents/skills/diagnose-ci-failures/SKILL.md · 49 lines

What it actually says

diagnose-ci-failures

Use this when the user asks to inspect failing CI. This skill is diagnosis-only: it produces a reviewable plan and does not edit, commit, push, or create PRs.

Find and inspect the target

Use the user's run URL, run ID, or branch when provided. Otherwise inspect the current branch's PR and failed checks, then fall back to recent failed runs for that branch. If no failing target exists, report that and stop.

gh run view <run-id> --verbose
gh run list --branch <branch> --status failure --limit 5
gh pr view --json number,title,url,state,statusCheckRollup

For the selected PR/run, identify completed, pending, passed, and failed checks. If checks are still running, report the partial state instead of guessing. Pull failed-step logs first:

gh run view <run-id> --log-failed

Inspect a specific job or download artifacts only when the failed-step output is insufficient. Extract observed paths, line numbers, error messages, failing tests, stack traces, and environment/permission failures.

Produce the plan

Group evidence into build/compile, test, lint/format, and environment/setup failures. Do not assume a language, tool, or root cause before repository files or logs establish it. Write a plan containing:

  • problem statement and affected checks;
  • current evidence and locations;
  • likely root cause grounded in the logs;
  • specific proposed changes;
  • validation steps for the follow-up implementation.

Prefer CI evidence over local guesses. Treat multiple unrelated failures as separate categories and recommend resolving them one category at a time.

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. 8d ago First seen · 49 lines · 33 tokens per session scan A 00597e10e7af

Subscribe to this mod's changes

diagnose-ci-failures is a skill published in the GitHub repository Terry-Mao/AICodingFlow (165 stars, last pushed 10d ago), licensed MIT. It adds 33 tokens to every session and 389 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories