2
    CI Doctor

    CI Doctor

    by JustHandled Labs

    Debug failing GitHub Actions without scrolling 10,000 log lines. Reads the logs from the first failing step, pinpoints the root cause (missing secret, dependency mismatch, YAML syntax, permissions), and hands you a copy-paste fix, then offers to open the PR. GitHub CLI required.

    Updated Jun 2026
    Instant install

    $12

    · or 60 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Also available in a bundle

    Included in download

    • Identify the root cause of failing GitHub Actions or GitLab CI jobs
    • Automatically fix YAML syntax errors in workflow configuration files
    • terminal, file_read, file_write automation included
    • Includes example output and usage patterns
    • Instant install

    Sample input

    Use $ci-doctor to figure out why my build is failing and help me fix the pipeline.

    Sample output

    Root Cause: The 'build' job failed because the 'production' environment requires a 'NPM_TOKEN' secret which is not configured. Evidence: 401 Unauthorized - GET https://registry.npmjs.org/ Fix: Add NPM_TOKEN to your repository secrets. PR Option: I can update the YAML to use the secret now.

    About This Skill

    Automated CI/CD Troubleshooting

    CI Doctor gets your pipeline back to green without the manual slog of reading thousands of build-log lines. It parses the logs from the first failing step, identifies the root cause, and proposes a targeted fix. Built for GitHub Actions, with detection for GitLab CI and CircleCI when their config files or log markers appear.

    How it works

    Unlike a generic AI prompt, CI Doctor follows a structured diagnostic framework. For GitHub Actions, it uses the GitHub CLI (`gh`) to pull logs from the failing step rather than the final summary, then classifies the failure into a specific category like dependency error, permission issue, missing secret, or config syntax, so the fix is surgical instead of guessed. For GitLab CI and CircleCI, it recognizes the provider from your config and log markers and diagnoses from the evidence you provide.

    Features

    • Deep Log Analysis: For GitHub Actions, automatically fetches and parses logs using `gh run view --log-failed`.
    • Provider Detection: Fully automated on GitHub Actions; detects GitLab CI (`.gitlab-ci.yml`) and CircleCI (`.circleci/config.yml`) and diagnoses from the config and logs you supply.
    • Root Cause Identification: Distinguishes cascading errors from the actual source of the failure.
    • Safe Implementation: Proposes fixes and creates pull requests only after developer confirmation.
    • Context Awareness: Inspects package manifests and lockfiles so fixes are compatible with your tech stack.

    The Output

    You receive a concise report containing a one-sentence root cause, the specific evidence from the logs, a copy-pasteable fix (code or YAML), and an offer to automate the pull request creation.

    Use Cases

    • Identify the root cause of failing GitHub Actions or GitLab CI jobs
    • Automatically fix YAML syntax errors in workflow configuration files
    • Debug dependency and lockfile mismatches that break build environments
    • Identify and resolve missing secrets or environment variables in pipelines
    • Generate and push a PR with a confirmed fix to unblock the main branch

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    Allowed Hosts

    api.github.com

    File Scopes

    .github/workflows/**/*.yml
    .github/workflows/**/*.yaml
    package.json
    requirements.txt
    go.mod
    Cargo.toml
    pom.xml

    CI Doctor needs terminal access to run the GitHub CLI (`gh`) and git commands. These commands fetch workflow run status, download failure logs, and (with user confirmation) create fix PRs. The skill never runs destructive git operations (force push, reset) and never creates PRs without explicit user approval. File read access allows CI Doctor to examine workflow YAML files (`.github/workflows/*.yml`), dependency manifests (`package.json`, `requirements.txt`, `go.mod`), and error logs to understand the CI environment and identify root causes like missing dependencies, syntax errors, or misconfigured secrets. File write access is used only when the user explicitly confirms "create a fix PR." The skill then creates a new branch, modifies the workflow file, commits the change, and opens a PR. All changes are previewed to the user before any write occurs. The skill never writes to files without user consent. Network access fetches workflow run data from `api.github.com` as a fallback if the GitHub CLI is not installed. These are read-only API calls authenticated via the user's GitHub token (provided by the user or read from local git config). No data is sent to external servers beyond GitHub's API. No browser or environment variable access is required.

    Works with Claude Code and Codex. Requires GitHub CLI (gh) installed and authenticated. Supports GitHub Actions only initially; GitLab CI and CircleCI planned.

    Creator

    JustHandled Labs builds focused agent skills for the work nobody wants to do by hand. Each one is a single repeatable job done well: catching the security and data mistakes that quietly ship, keeping docs and tests honest, gating the commands an agent is about to run, sharpening writing, and handling the founder chores around launches, outreach, and brand setup. Not generic AI productivity. Specific workflows that are easy to run, review, and repeat. Maintained by H.J. Westerfield, with a background in communications, editing, project coordination, customer support, and practical AI systems. Tools for people who want useful automation without theatrical complexity.

    Frequently Asked Questions

    More Premium Skills