If changing triggers/permissions/secrets, call out risk and get explicit confirmation.
Verify in GitHub Actions
Rerun only failures: gh run rerun <id> --failed
Rerun a specific job (note: job databaseId): gh run view <id> --json jobs --jq '.jobs[] | {name,databaseId,conclusion}'
Watch until done: gh run watch <id> --compact --exit-status
Manually trigger: gh workflow run <workflow> --ref <branch>
Safety notes
Avoid pull_request_target (and any change that runs untrusted fork code with secrets) unless the user explicitly requests it and understands the security tradeoffs.
Keep workflow permissions: least-privilege; don’t broaden token access “just to make it pass”.
Deliverable (paste in chat / PR)
Summary: ...
Failing run: <link/id> (job/step)
Root cause: ...
Fix: ...
Verification: commands + new run link/id
Notes/risks: ...
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: jmerta-codex-skills-ci-fix3description: CI fix (GitHub Actions)4---56# CI fix (GitHub Actions)78## Goal9- Get CI green quickly with minimal, reviewable diffs.10- Use `gh` to locate failing runs, inspect logs/artifacts, rerun jobs, and confirm the fix.1112## Inputs to ask for (if missing)13- Repo (`OWNER/REPO`) and whether this is a PR or branch build.14- Failing run URL/ID (or PR number / branch name).15- What "green" means (required workflows? allowed flaky reruns?).16- Any constraints (no workflow edits, no permission changes, no force-push, etc.).1718## Workflow (checklist)191) Confirm `gh` context20 - Auth: `gh auth status`21 - Repo: `gh repo view --json nameWithOwner -q .nameWithOwner`22 - If needed, add `-R OWNER/REPO` to all commands.23 - If `gh` is not installed or not authenticated, tell the user and ask whether to install/authenticate or proceed by pasting logs/run URLs manually.242) Find the failing run25 - If you have a run URL, extract the run ID: `.../actions/runs/<id>`.26 - Otherwise:27 - Recent failures: `gh run list --limit 20 --status failure`28 - Branch failures: `gh run list --branch <branch> --limit 20 --status failure`29 - Workflow failures: `gh run list -w <workflow> --limit 20 --status failure`30 - Open in browser: `gh run view <id> --web`313) Pull the signal from logs32 - Job/step overview: `gh run view <id> --verbose`33 - Failed steps only: `gh run view <id> --log-failed`34 - Full log for a job: `gh run view <id> --log --job <job-id>`35 - Download artifacts: `gh run download <id> -D .artifacts/<id>`364) Identify root cause (prefer the smallest fix)37 - Use `references/ci-failure-playbook.md` for common patterns and safe fixes.38 - Prefer: deterministic code/config fix > workflow plumbing fix > rerun flake.395) Implement the fix (minimal diff)40 - Update code/tests/config and/or `.github/workflows/*.yml`.41 - Keep changes scoped to the failing job/step.42 - If changing triggers/permissions/secrets, call out risk and get explicit confirmation.436) Verify in GitHub Actions44 - Rerun only failures: `gh run rerun <id> --failed`45 - Rerun a specific job (note: job **databaseId**): `gh run view <id> --json jobs --jq '.jobs[] | {name,databaseId,conclusion}'`46 - Watch until done: `gh run watch <id> --compact --exit-status`47 - Manually trigger: `gh workflow run <workflow> --ref <branch>`4849## Safety notes50- Avoid `pull_request_target` (and any change that runs untrusted fork code with secrets) unless the user explicitly requests it and understands the security tradeoffs.51- Keep workflow `permissions:` least-privilege; don’t broaden token access “just to make it pass”.5253## Deliverable (paste in chat / PR)54- **Summary:** ...55- **Failing run:** <link/id> (job/step)56- **Root cause:** ...57- **Fix:** ...58- **Verification:** commands + new run link/id59- **Notes/risks:** ...6061---62> Converted and distributed by [TomeVault](https://tomevault.io/claim/jmerta) — claim your Tome and manage your conversions.63<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/jmerta-codex-skills-ci-fix in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
CI fix (GitHub Actions) It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.