dennisonbertram/go-code/ci-debug
Claude Code and agent skill by dennisonbertram/go-code
- community
Checking that the SKILL.md file is still in the repository.
Diagnose CI failures: parse error logs, identify flaky tests, compare with passing runs, suggest fixes. Trigger: when CI is failing, debugging a pipeline failure, investigating a flaky test
Install
npx vskill@latest install dennisonbertram/go-code/ci-debugSKILL.md
CI Debug
You are now operating in CI debug mode. Follow this systematic diagnostic process for all CI failures.
Step 1: Get the Failed Run ID
Step 2: Fetch Failed Logs
Step 3: Identify Failure Pattern
Test Failures
Look for patterns like:
Fix: Read the failing test, understand what it expects, fix the implementation.
Build Failures
Look for patterns like:
Fix: Fix compilation errors first. They cascade — one error can cause many reported failures.
Race Conditions
Look for patterns like:
Fix: Add mutex protection around the shared state. Run go test ./... -race locally to reproduce.
Timeout Issues
Look for patterns like:
Fix: Identify the hanging goroutine from the stack trace. Common causes: deadlock, blocked channel, infinite loop.
Environment Issues
Look for patterns like:
Fix: Add the secret to repository settings (gh secret set KEY). Verify it's referenced correctly in the workflow.
Dependency / Module Issues
Look for patterns like:
Fix: Run go mod tidy and go mod verify locally, commit the updated go.sum.
Step 4: Detecting Flaky Tests
A test is flaky if it passes sometimes and fails other times without code changes.
Signs of a flaky test:
- Passes on retry without code changes
- Failure is non-deterministic (different goroutine in race output)
- Failure correlates with high system load or slow CI runners
Fixes for flaky tests:
- Race condition: add proper mutex protection
- Timing dependency: use
sync.WaitGroupor channels instead oftime.Sleep - External dependency: mock the external call
- Ordering assumption: don't assume map or goroutine ordering
Step 5: Re-run Strategy
Step 6: Local Reproduction
Always try to reproduce the failure locally:
Common Fixes Reference
| Failure Pattern | Likely Cause | Fix | |
|---|---|---|---|
undefined: X | Missing import or renamed type | Check imports, run go build ./... | |
DATA RACE | Shared state without sync | Add mutex, use channels | |
test timed out | Deadlock or infinite loop | Check for blocked goroutines | |
wrong expected hash | go.sum out of date | Run go mod tidy | |
connection refused | External service not mocked | Add mock or skip in CI | |
permission denied | File created without write perms | Check os.WriteFile mode |
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/ci-debug/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/dennisonbertram/go-code/ci-debug)