Skip to content
fix-ci-failures logo

Fix CI Failures Skill

fix-ci-failures

Diagnose and fix CI/CD failures by analyzing logs, reproducing locally, and applying fixes. Use when CI checks fail on pull requests.

SKILL.md

Full skill instructions

Fix CI Failures Skill

Diagnose and fix CI failures systematically.

When to Use

  • CI checks fail on PR
  • Workflow runs fail
  • Tests pass locally but fail in CI
  • Need to debug CI issues

Quick Reference

# View PR checks
gh pr checks <pr-number>

# View specific run details
gh run view <run-id> --log-failed

# Reproduce locally
./​scripts/​reproduce_ci.sh <run-id>

Workflow

  1. Check status - View failed PR checks
  2. Get logs - Download or view failure details
  3. Reproduce - Run same commands locally
  4. Fix issue - Apply necessary changes
  5. Verify - Test passes locally
  6. Push - Commit and push fix
  7. Monitor - Check CI passes

Common Failures

FailureCommandFix
Trailing whitespacejust pre-commit-allStage and re-commit
Test failurepixi run mojo test tests/Fix code, re-run tests
Markdown lintnpx markdownlint-cli2 --fix "**/​*.md"Commit fixes
Build errorCheck imports/​depsUpdate and rebuild

Diagnosis Workflow

# 1. View CI status
gh pr checks 123

# 2. Get failure details
gh run view <run-id> --log-failed

# 3. Download logs for analysis
gh run download <run-id>

# 4. Reproduce issue locally
./​scripts/​reproduce_ci.sh <run-id>

# 5. Fix the issue
# ... make changes ...

# 6. Verify locally
./​scripts/​run_ci_locally.sh

# 7. Push fix
git add .
git commit -m "fix: address CI failure"
git push

# 8. Monitor CI
gh pr checks 123 --watch

Error Handling

ErrorCauseFix
"Cannot find module"Missing import or broken pathFix import, check file structure
"Syntax error"Invalid codeCorrect syntax, test compile
"Test failed"Logic errorDebug test, fix implementation
"Hook failed"Formatting/​whitespaceRun formatters, re-commit

Scripts Available

  • scripts/​get_ci_logs.sh - Download CI logs
  • scripts/​reproduce_ci_failure.sh - Reproduce locally
  • scripts/​run_ci_locally.sh - Run CI checks locally
  • scripts/​fix_common_ci_issues.sh - Auto-fix common issues

Prevention

  • Run pre-commit before pushing
  • Run tests locally
  • Check formatting before commit
  • Review CI logs regularly

References

  • Related skill: quality-run-linters for linting
  • Related skill: run-precommit for pre-commit hooks
  • Workflow configuration: .github/​workflows/

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View