Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add wrsmith108/claude-skill-ci-doctor
Or install specific skill: npx add-skill https://github.com/wrsmith108/claude-skill-ci-doctor
# Description
Claude Code skill for diagnosing and fixing common CI/CD pipeline issues
# SKILL.md
CI Doctor Skill
Diagnoses and fixes common CI/CD pipeline issues automatically.
Trigger Phrases
- "CI failing"
- "workflow broken"
- "pipeline error"
- "GitHub Actions not working"
- "build failed"
- "CI not passing"
- "fix CI"
- "debug pipeline"
What This Skill Does
- Version Consistency Checks
- Compares Node.js versions across .nvmrc, package.json, Dockerfile, and CI workflows
-
Flags any mismatches that could cause build failures
-
CI Anti-Pattern Detection
- Command failures masked with
|| true - npm ci without caching configured
- Errors suppressed without documentation
-
Duplicate build steps that waste resources
-
Workflow Validation
- Checks for common GitHub Actions configuration issues
- Validates job dependencies and artifact sharing
Usage
Automatic Invocation
Simply mention any trigger phrase in your request, and the skill will analyze your CI configuration.
Manual Invocation
# Run all CI health checks
npx tsx scripts/index.ts
# Output as JSON
npx tsx scripts/index.ts --json
# Check specific directory
npx tsx scripts/index.ts /path/to/project
Requirements
- Node.js 18+
- TypeScript (tsx for execution)
- Project must have .github/workflows/ directory
# README.md
CI Doctor
A Claude Code skill for diagnosing and fixing common CI/CD pipeline issues automatically.
Installation
As a Claude Code Skill
# Clone to your Claude skills directory
git clone https://github.com/wrsmith108/claude-skill-ci-doctor.git ~/.claude/skills/ci-doctor
Standalone Usage
npx tsx ~/.claude/skills/ci-doctor/scripts/index.ts [project-dir] [options]
Trigger Phrases
This skill activates when you mention:
- "CI failing"
- "workflow broken"
- "pipeline error"
- "GitHub Actions not working"
- "build failed"
- "CI not passing"
- "fix CI"
- "debug pipeline"
Capabilities
1. Version Consistency Checks
- Compares Node.js versions across .nvmrc, package.json, Dockerfile, and CI workflows
- Flags any mismatches that could cause build failures
2. CI Anti-Pattern Detection
- Command failures masked with
|| true - npm ci without caching configured
- Errors suppressed without documentation
- Duplicate build steps that waste resources
3. Workflow Validation
- Checks for common GitHub Actions configuration issues
- Validates job dependencies and artifact sharing
Usage
# Run all CI health checks
npx tsx scripts/index.ts
# Output as JSON
npx tsx scripts/index.ts --json
# Check specific directory
npx tsx scripts/index.ts /path/to/project
Output Example
## CI Health Check
### Critical Issues
| File | Expected | Actual | Issue |
|------|----------|--------|-------|
| .github/workflows/ci.yml | 20.x | 18.x | Node version mismatch with .nvmrc |
### Warnings
| File | Line | Pattern | Fix |
|------|------|---------|-----|
| ci.yml | 42 | npm ci without cache | Add actions/setup-node with cache |
### Passed Checks
- Node.js version consistent in package.json
- No duplicate build steps detected
- Artifacts properly shared between jobs
Exit Codes
0- No critical issues found1- Critical issues detected
Requirements
- Node.js 18+
- TypeScript (tsx for execution)
- Project must have .github/workflows/ directory
License
MIT
Related Skills
- version-sync - Sync Node.js versions
- flaky-test-detector - Detect flaky tests
- docker-optimizer - Optimize Dockerfiles
- security-auditor - Security audits
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.