"Fix failing CI/GitHub Actions checks. Triggers: 'fix CI', 'fix GHA', 'build failing', 'tests failing in CI', 'checks red'."
Install
npx skillscat add luan/dot-claude/pr-ci Install via the SkillsCat registry.
PR GHA Fixer
Fix failed GitHub Actions checks.
Safety: NEVER rebases. Push optional + requires confirmation (unless --auto).
Steps
Detect PR:
gh pr view --json number -q '.number'or ask userVerify branch (if PR specified manually)
Fetch failed checks:
gh pr checks <PR> --json name,state,bucket,link--auto→ fix all failed checks. Without--auto→ display as numbered list, ask "Which to fix?"Fetch logs:
gh run list --branch <BRANCH> --json databaseId,name,conclusion --limit 20 gh run view <RUN_ID> --log-failedPlan fixes: Identify root cause, create concise plan.
--auto→ proceed. Without--auto→ ask "Ready to execute?"Execute: Apply fixes, summarize changes.
Commit:
--auto→ commit with suggested message. Without--auto→ ask first, suggest message likefix: resolve CI failures.Push (optional):
--auto→ push automatically. Without--auto→ ask first. UseSkill(gt:submit)if gt plugin is loaded, otherwisegit push.
Common Failures & Remediation
- Build — missing imports, type errors, syntax → read error output, fix source directly
- Test — outdated assertions, missing fixtures → update expectations or add missing test data
- Lint — formatting, unused imports/vars → run the project formatter, remove dead code
- Infra — secrets, rate limits, runner issues → can't fix locally; inform user to check repo/org settings