FormingSkillclaude-codecodexpublished fresh until

VS Code fix-ci-failures: is this red CI my PR's fault or infra?

Summary As of October 2026, VS Code's fix-ci-failures skill tells the agent to check whether a failure is related before editing: is the test in code you changed, does main fail the same way, is it a network or runner error. Infra errors get a gh run rerun --failed, not a code change.

Not for finding the root cause of a flaky test, reading long CI logs

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.0.0OpenAI skill for fixing failing GitHub Actions checks
How you use itYou ask for it
What it can dowrites files · runs shell
What's inside
ASkill · v1.0.0OpenAI skill for fixing failing GitHub Actions checks
How you use it
You ask for it
What it can do
writes files · runs shell
What's inside

What this thread does

The problem

A check on your pull request fails and you hand it to the agent. If the failure came from the network, the runner or an unrelated flaky test, the agent still looks for something to change and ends up editing code that was fine. You want it to ask first: is this mine?

What the source says

Step 6 of the fix-ci-failures skill in microsoft/vscode is called "Determine if Failures are Related to the PR". Before any fix it asks five questions:

1. Is the failing test in code you changed? A test in an unrelated area may be a flake. 2. Does the test name relate to the feature area you touched? 3. Does the failure output reference code paths your PR changes? 4. Do the same tests fail on recent main commits? Then it is pre-existing. 5. Is it an infrastructure failure (network timeouts, registry errors, machine problems)?

To compare with main it lists recent runs of the same workflow:

gh run list --branch main --workflow <workflow>.yml --limit 5 --json databaseId,conclusion,displayTitle

The skill also lists strings that usually mean infrastructure, not your change:

  • Network and registry: npm ERR! network, ETIMEDOUT, ECONNRESET, EAI_AGAIN, git RPC failed; curl 56, TLS certificate errors, rate limit exceeded, a 502 when downloading Electron at test time, unable to get local issuer certificate, fetch-pack: unexpected disconnect.
  • Machine: No space left on device, ENOMEM or JavaScript heap out of memory, The runner has received a shutdown signal, The operation was canceled, a display server that failed to start.
  • Flakes: timeouts on tests that normally pass, async race conditions.

What to do with an infrastructure failure, in the skill's words, paraphrased: do not change code; re-run only the failed jobs with gh run rerun <RUN_ID> --failed; if it persists, check whether main is also broken with gh run list --branch main --limit 10; if main is broken, wait, because your PR is not the cause.

How to use it

Add a short rule to your CLAUDE.md or AGENTS.md, or copy the skill:

  • Before editing, say in one sentence whether the failure is related to the diff, citing the log line and the main-branch run you compared.
  • If it is an infrastructure error, rerun failed jobs once and report; do not change code.
  • If the same check fails twice with no link to the diff, stop and ask a human.
  • Replace the VS Code examples (workflow file name, error strings from Electron downloads) with the ones your pipeline produces.

Limits

This is one project's guidance, written for its own pipeline. It does not cover how to fix a flaky test once identified (see the OpenWISP thread for that) or how to fetch the right log (see the log-fetching thread). Not run by us.

Primary source

Primary source: fix-ci-failures SKILL.md (microsoft/vscode, pinned commit). Checked: step 6 lists five checks (the thread calls them questions), the gh run list command (in the skill it is pinned to one VS Code workflow file; this thread shows a placeholder), the infrastructure strings, a separate test-flake category, and the rerun-then-check-main order. The file's last-changed date and MIT licence were not verified.

Started from a post by @Microsoft (microsoft/vscode), packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# VS Code fix-ci-failures: is this red CI my PR's fault or infra?
Summary: As of October 2026, VS Code's fix-ci-failures skill tells the agent to check whether a failure is related before editing: is the test in code you changed, does main fail the same way, is it a network or runner error. Infra errors get a `gh run rerun --failed`, not a code change.

## Options
- A · OpenAI skill for fixing failing GitHub Actions checks · early, no verdict yet · writes files · runs shell
Copy for agent
get the whatworks thread ci-red-on-my-pr-agent-check-infra-or-flaky-before-editing and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ci-red-on-my-pr-agent-check-infra-or-flaky-before-editing

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · OpenAI skill for fixing failing GitHub Actions checks

OpenAI's skill for failing GitHub Actions checks: a bundled Python script lists failing checks and pulls log snippets through the gh CLI, then the agent proposes a plan and edits only after explicit approval. External CI providers are reported by URL only. Licence: Apache-2.0, stated in the skill folder (LICENSE.txt); the repo-level licence field is empty. Only separates GitHub Actions from external CI and does not decide whether your diff or the infrastructure broke it; needs a git repo and an authenticated gh.

Format
Skill
Source
github:openai/skills#skills/.curated/gh-fix-ci
Pinned
v1.0.0 · 49f948faa925
Content hash
49f948faa9258a0c
Audit
scan passed
Can do
writes files · runs shell
Works with
claude-code · codex
Check
SKILL.md front matter names the skill; Approval-before-edit rule is present; Bundled inspection script present and calls gh
Author
@openai
Kudos
0
Are you @openai? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package gh-fix-ci-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package gh-fix-ci-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp