luanzeba/dotfiles/github-ci-fixer
Claude Code and agent skill by luanzeba/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Diagnose and fix CI failures on GitHub PRs using the gh CLI. Use when CI checks fail, tests are failing in CI, builds break, linting errors occur, or when asked to investigate PR status. Handles workflow runs, job logs, reproducing failures locally, and making fixes.
Install
npx vskill@latest install luanzeba/dotfiles/github-ci-fixerSKILL.md
The same SKILL.md was published earlier as luanzeba/dotfiles/github-ci-fixer.
GitHub CI Fixer
Fix CI failures by: fetching status → reading logs → reproducing locally → diagnosing → fixing.
Workflow
Step 1: Get PR CI Status
Step 2: Get Failure Logs
Step 3: Identify Failure Type
| Log Pattern | Failure Type | Next Step | |
|---|---|---|---|
Failure: or Error: in test output | Test failure | Step 4a | |
rubocop or Style/ | Linting error | Step 4b | |
srb tc or T.let errors | Sorbet type error | Step 4c | |
LoadError or NameError | Missing require/dependency | Check imports | |
| Timeout | Slow test or infinite loop | Check test setup |
Step 4a: Reproduce Test Failures Locally
First, identify the CI environment from the failed job name or logs. Look for GH_CI_RUNTIME in the logs — it shows the build pipeline name (e.g., github-all-features, github-enterprise).
Running in Specific Environments
Match the CI environment when reproducing failures locally:
Environment Variable Reference
| CI Job Pattern | Environment Variable | Description | |
|---|---|---|---|
github-enterprise* | ENTERPRISE=1 | Enterprise mode | |
*multi-tenant* | MULTI_TENANT_ENTERPRISE=1 | Multi-tenancy/EMU mode | |
github-all-features* | TEST_ALL_FEATURES=1 | All features enabled | |
*emu* | TEST_WITH_ALL_EMUS=1 | All EMU configurations |
For additional environment variables, see test/test_helpers/test_env.rb.
Step 4b: Fix Linting Errors
Step 4c: Fix Type Errors
Step 5: Diagnose and Fix
For test failures:
- Read the failing test to understand expected behavior
- Read the source code being tested
- Determine if test or source is wrong
- NEVER delete a test just because it fails — fix the code or update the test appropriately
For flaky tests:
- Look for timing issues, race conditions, or state leakage
- Check for missing
setup/teardowncleanup - Use
gauntletto reproduce flakiness by running the test many times with database shuffling:
Gauntlet options:
loops:— number of times to run (default: 100)timeshift:— seconds to shift time between each loop (default: nil)shuffle_database_results:— randomize DB query order to surface flakiness (default: true)debug_output:— print DatabaseShuffler debug info (default: false)
Note: Remove gauntlet wrappers before merging — they're for local debugging only.
Step 6: Verify Fix
Common CI Jobs
| Job Name | What It Checks | |
|---|---|---|
test-* | Unit/integration tests | |
rubocop | Ruby style/linting | |
sorbet | Type checking | |
erb_lint | ERB template linting | |
packwerk | Package boundary violations |
Critical Rules
- Never remove tests that fail — propose removal with clear justification for approval
- Always reproduce locally before attempting fixes
- Run the exact failing test to confirm the fix works
- Check if failure is flaky — may need multiple runs to reproduce
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/github-ci-fixer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/luanzeba/dotfiles/github-ci-fixer)