CI/CD Debugging

VerifiedSafe

Provides systematic CI/CD failure diagnosis and resolution. Use when CI builds fail, GitHub Actions errors occur, TLS/auth issues block pipelines, or platform-specific failures need debugging.

Sby Skills Guide Bot
DevOpsIntermediate
6/2/2026
Claude Code
#ci-debugging#github-actions#continuous-integration#troubleshooting

Recommended for

Automated summary

Provides systematic diagnosis and resolution of CI/CD failures, including environment authentication, platform-specific issues, dependencies, and code bugs.

Strengths

  • Structured step-by-step diagnostic flow
  • Covers common failure categories
  • Includes quick commands and fallback strategies

Limitations

  • Assumes GitHub Actions environment
  • Does not cover all CI systems
  • Relies on CLI tools available in the environment
When to use it

When CI builds fail, GitHub Actions errors occur, TLS/auth issues block pipelines, or platform-specific failures need debugging.

When not to use it

When the failure is outside the CI/CD pipeline (e.g., local development environment) or the CI system is not GitHub Actions.

Security analysis

Safe
Quality score88/100

The skill uses non-destructive diagnostic commands (curl, gh, grep, package managers) solely for troubleshooting CI/CD failures. It does not execute destructive actions, exfiltrate tokens, or disable safety mechanisms.

No concerns found

How this analysis is made

Examples

Debug failing GitHub Actions workflow
My GitHub Actions workflow is failing with an authentication error. Please diagnose the issue.
Resolve TLS certificate error in CI
I'm getting a TLS certificate error in my CI pipeline on Ubuntu runner. Help me fix it.
Fix platform-specific failure
My build passes on macOS but fails on Windows in CI. What could be the cause?

name: ci-debugging description: Provides systematic CI/CD failure diagnosis and resolution. Use when CI builds fail, GitHub Actions errors occur, TLS/auth issues block pipelines, or platform-specific failures need debugging. allowed-tools: Bash, Read, Grep, Glob, WebFetch

CI/CD Debugging Skill

When to Use

  • CI build failures
  • GitHub Actions workflow errors
  • TLS certificate or authentication issues
  • Platform-specific compilation failures
  • Dependency resolution problems

Diagnostic Flow

Step 1: Categorize Failure Type

Determine which category the failure falls into:

| Category | Indicators | Priority | |----------|------------|----------| | Environment/Auth | TLS errors, token expired, permission denied | Check first | | Platform-Specific | Works on Linux fails on Windows, vice versa | Check second | | Missing Dependencies | Module not found, package missing | Check third | | Actual Code Bug | Test assertions, logic errors | Check last |

Step 2: Environment/Auth Issues

Check for sandboxed environment limitations:

# Test GitHub API connectivity
curl -s --connect-timeout 5 https://api.github.com/zen

# Check GitHub CLI auth status
gh auth status

# Verify GITHUB_TOKEN
echo "Token present: ${GITHUB_TOKEN:+yes}"

Common Issues:

  • TLS certificate errors -> Try diagnosis with connectivity check first
  • Token expired -> Re-authenticate with gh auth login
  • Sandbox blocked -> Use local git operations as fallback

Step 3: Platform-Specific Issues

Look for platform-specific patterns:

# Search for Unix-specific code
grep -rn "MSG_DONTWAIT\|/dev/null\|fork()" src/

# Check for Windows path issues
grep -rn '"/tmp\|"/var' src/

Fallback: Add conditional compilation or use cross-platform alternatives.

Step 4: Dependency Issues

# Check for missing packages (Node.js)
npm ls 2>&1 | grep "MISSING" || echo "No missing npm packages"

# For Python
pip check 2>&1 || echo "No pip issues"

# For CMake/C++
cmake --build build/ 2>&1 | grep -i "error\|not found" || echo "Build OK"

Step 5: Code Bug Analysis

If none of the above:

  1. Read the failing test output carefully
  2. Identify the assertion that failed
  3. Trace back to the implementation
  4. Fix the actual bug

Fallback Strategies

GitHub API Blocked

Priority order:
1. Use gh CLI (preferred)
2. Direct curl with GITHUB_TOKEN
3. Local git operations only
4. Manual intervention required

TLS/Certificate Issues

Priority order:
1. Check system certificates
2. Verify proxy settings
3. Use alternative connectivity check
4. Report as environment issue

Quick Commands

| Issue | Command | |-------|---------| | Check CI logs | gh run view --log-failed | | Re-run failed | gh run rerun --failed | | View workflow | gh run view | | Check auth | gh auth status | | List failed runs | gh run list --status failure |

Reference Documents (Import Syntax)

@./reference/common-failures.md

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/ci-cd-debugging-mm78nnmi' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ci-cd-debugging-mm78nnmi/download' --output '.skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md.part' && mv '.skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md.part' '.skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash, Read, Grep, Glob, WebFetch

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md' && test -s '.skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ci-debugging' && cp -R '.skill-downloads/ci-cd-debugging-mm78nnmi' '.claude/skills/ci-debugging'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/ci-cd-debugging-mm78nnmi'

openskills read 'ci-cd-debugging-mm78nnmi'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/ci-cd-debugging-mm78nnmi/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills