fix-ci-failure
Diagnose and fix a failing CI pipeline or GitHub Actions workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Diagnose and fix a failing CI pipeline or GitHub Actions workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Set up and manage GitHub Actions workflows that use Copilot coding agents for automated PR handling and issue resolution
Inspect active GitHub Actions workflows before commit or push, run matching local checks for staged or unpushed files, ask which missing tools to install via askQuestions, and fix in-scope issues so the Commit agent can proceed.
Write a commit message following the Conventional Commits specification with scope and body
Create an Architectural Decision Record (ADR) to document a significant design or technology choice
Audit VS Code extensions against the current project stack and recommend keep/add/remove actions
Triage a GitHub issue by classifying severity, labelling waste category, proposing next action, and drafting a structured response
| name | fix-ci-failure |
| description | Diagnose and fix a failing CI pipeline or GitHub Actions workflow |
| compatibility | >=1.4 |
Skill metadata: version "1.0"; license MIT; tags [ci, github-actions, debugging, pipeline, workflow]; compatibility ">=1.4"; recommended tools [codebase, editFiles, runCommands].
Systematically diagnose and resolve a failing CI pipeline or GitHub Actions workflow.
Identify the failing job — Read the workflow file (.github/workflows/*.yml) and find which job and step failed. If the user has pasted log output, start there instead.
Categorise the failure:
| Category | Signals | Typical fix |
|---|---|---|
| Lint / format | ESLint, Prettier, markdownlint, Ruff errors | Fix source files to pass linter rules |
| Type check | TypeScript, mypy, cargo check errors | Fix type errors in source |
| Test failure | Jest, pytest, cargo test, go test failures | Fix failing test or the code it tests |
| Build failure | Compilation error, missing dependency | Fix build config or install missing dep |
| Structural | Missing file, bad symlink, wrong path | Create/move the missing file |
| Permission | Token expired, secret missing, scope error | Report to user — cannot fix secrets |
| Timeout | Job exceeded time limit | Optimise or split the job |
Read the relevant source — Open the files implicated by the error. Read enough context to understand the root cause (minimum 20 lines around each error location).
Fix the root cause — Make the minimum change needed to pass the check. Do not refactor unrelated code in the same commit.
Verify locally — Run the equivalent check locally:
npm test, pytest, or bash tests/run-all.sh)ls -laCheck for cascade — After fixing, scan for secondary failures that the primary fix might have introduced. Run the full three-check ritual if available.
Summarise — Report: