.claude/skills/gha/SKILL.md
Inspect GitHub Actions CI failure logs and auto-fix the issues.
npx skillsauth add terassyi/tomei ghaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Inspect a failed GitHub Actions run, diagnose the failure, and fix it.
git branch --show-current
git status --short | head -20
Parse the argument. Accept either:
https://github.com/terassyi/tomei/actions/runs/1234512345Extract the run ID, then fetch run metadata:
gh run view <run_id> --json status,conclusion,jobs,name,headBranch
List all jobs and find the failed ones:
gh run view <run_id> --json jobs --jq '.jobs[] | select(.conclusion == "failure") | {name, conclusion, steps: [.steps[] | select(.conclusion == "failure") | .name]}'
For each failed job, get the logs:
gh run view <run_id> --log-failed
Read the logs carefully. Identify:
Categorize the failure:
| CI Job | Common causes | |--------|--------------| | Build | Compilation error, missing import, type mismatch | | Unit Test | Test assertion failure, race condition | | Lint | golangci-lint violation, cue fmt check failure | | CUE Validate | Schema violation, invalid CUE syntax | | Integration Test | Network issue, API change, platform-specific bug | | E2E Test | Container issue, timeout, behavior regression |
Read the relevant source files to understand the context around the error.
Apply the fix. Common fixes:
make fmt, then fix remaining lint issues manuallycue fmt ./cuemodule/...make vendor-cueReproduce and verify the fix locally by running the same step that failed:
make buildmake test (or go test -v -race -run <TestName> <package>)make lintcd cuemodule && cue vet ./...make test-integrationmake test-e2ePrint a summary:
## CI Fix: run <run_id>
### Failed job
<job name> / <step name>
### Root cause
<explanation>
### Fix applied
<what was changed and why>
### Local verification
<which command was run and result>
tomei apply, tomei init, chezmoi apply, or chezmoi initgit push/pr)testing
Run full test suite — unit, integration, e2e sequentially. Stops on first failure.
testing
Pre-release checklist — verify CI status, version tags, CUE module coordination, changelog preview. Read-only.
development
Expert team review and refactor — tomei, Go, TDD, OS specialists discuss the diff and implement improvements.
development
Run tests, lint, format, create branch if needed, and commit with conventional message.