Logo: Oss Debug Ci

Oss Debug Ci

Communautéit
chiruu12
oss-debug-ci

Debug CI failures in unfamiliar repo pipelines. Reads CI configs, fetches failure logs, classifies the failure type, and guides the user through diagnosing and fixing the issue. Use when CI fails on your PR in an OSS repo, when you don't understand a CI error, or when debugging GitHub Actions/CircleCI/other CI systems. Not for setting up CI from scratch — this is for debugging existing pipelines.

Iwwersiicht

Editeurchiruu12
RepositoryOSS-Skills
Skill-Nummoss-debug-ci
Stären
62
Forks
6
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    chiruu12 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Oss Debug Ci an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/chiruu12/OSS-Skills/tree/main/skills/oss-debug-ci
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/chiruu12/OSS-Skills.git /tmp/OSS-Skills
mkdir -p .claude/skills
cp -r /tmp/OSS-Skills/skills/oss-debug-ci .claude/skills/oss-debug-ci
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Oss Debug Ci an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Oss Debug Ci automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Oss Debug Ci net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Debug CI

CI failed on someone else's repo and the error makes no sense. This skill teaches you to read CI pipelines, classify failures, and fix them — instead of pushing blind patches and hoping.

Purpose

CI failures in unfamiliar repos are disorienting. The error might come from a linter you've never configured, a test runner with custom settings, or a platform-specific incompatibility. Most contributors respond by pushing random fixes until green. This skill teaches you to read the pipeline, understand what failed and why, determine if it's your fault, and fix it systematically.

When to Use

  • CI fails on your PR and you don't understand the error
  • CI failure is in a tool/system you haven't used before
  • You suspect the failure is pre-existing (flaky test, broken main)
  • You need to reproduce a CI failure locally
  • NOT when setting up CI for a new project — that's infrastructure work
  • NOT when CI passes but the code is wrong — that's oss-contribute

Prerequisites

  • A PR submitted to an OSS repo (from oss-submit-pr)
  • gh CLI authenticated
  • Access to the CI logs (public repo or you have permissions)

Process

1. Identify the CI system and read the config

Before looking at logs, understand the pipeline structure.

bash
# Find CI configuration files
ls -la .github/workflows/ 2>/dev/null
ls -la .circleci/ 2>/dev/null
ls -la .travis.yml Jenkinsfile .gitlab-ci.yml .buildkite/ azure-pipelines.yml 2>/dev/null

# Read the relevant workflow
cat .github/workflows/ci.yml  # or whatever the CI config is

Map the pipeline:

  • What jobs exist? (build, test, lint, typecheck, etc.)
  • What order do they run in? (parallel or sequential?)
  • What OS/container do they run on? (ubuntu, macos, windows, custom image?)
  • What language/tool versions are pinned? (node 20, python 3.12, go 1.22?)
  • What caching is used? (dependency caching, build caching?)

2. Fetch the failure logs

Your PR's CI runs on the upstream repo, not on your fork. Name the repo on every command. Without -R, gh guesses from your remotes, and in a fork clone it can guess your fork, which has no runs for this PR.

bash
# Start here. This maps each check to the run and job that produced it.
gh pr checks {pr-number} -R {owner}/{repo}

# Or list runs by head branch. Your fork's branch name is the head branch upstream.
gh run list -R {owner}/{repo} --branch {your-branch} --limit 5

# View the failed run
gh run view {run-id} -R {owner}/{repo}

# Get the specific failure logs
gh run view {run-id} -R {owner}/{repo} --log-failed

# If you need the full log for a specific job
gh run view {run-id} -R {owner}/{repo} --log --job {job-id}

Isolate the actual error from surrounding noise. CI logs are verbose — most of the output is setup and teardown. The failure is usually in the last 20-50 lines of a failed step.

3. Classify the failure

Determine what kind of failure you're dealing with. This determines your fix strategy.

Failure TypeSignalsFix Strategy
Build errorCompilation failed, import not found, type errorYour code has a syntax or type issue. Fix locally.
Test failureAssertion failed, expected X got YYour changes broke a test. Read the test to understand what it expects.
Lint/format failureStyle violation, unused import, formatting diffRun the repo's formatter/linter locally. Often auto-fixable.
Dependency resolutionPackage not found, version conflict, lockfile mismatchYou changed deps or the lockfile is stale. Regenerate it.
Environment mismatchWorks locally, fails in CIDifferent OS, different tool version, missing env var.
Flaky testTest passes sometimes, fails sometimes. Same code.Not your fault. Check if this test fails on main too.
Pre-existing failureMain branch has the same failureNot your fault. Comment on PR noting pre-existing failure.
TimeoutJob exceeded time limitYour changes might be slow, or CI is under load. Check if it's reproducible.
Permission/secret issueAuth failed, secret not foundFork PRs can't access repo secrets. Check if the job needs secrets.

4. Determine if the failure is yours

This is the critical question. Don't fix what isn't broken.

bash
# Check if the same job fails on main
gh run list -R {owner}/{repo} --branch main --limit 5 --workflow {workflow-name}
gh run view {latest-main-run-id} -R {owner}/{repo} --log-failed

# Check if this test is known to be flaky
gh issue list -R {owner}/{repo} --search "flaky {test-name}" --state open
gh issue list -R {owner}/{repo} --label "flaky" --state open

# Try rebasing onto latest main — maybe the failure was already fixed
git fetch origin main
git rebase origin/main

If the failure exists on main: it's not your problem. Comment on your PR:

CI failure in `{job-name}` appears to be pre-existing — the same test fails on main ([run link]). Happy to help fix separately if useful.

5. Reproduce locally

If the failure IS from your changes, reproduce it before fixing blindly.

bash
# Run the exact command CI runs (read it from the CI config)
# Don't guess — copy the exact command from the workflow file

# Common examples:
npm run test          # not just "npm test" if the script is different
pytest -x             # might need specific flags
make lint             # might include multiple linters
cargo clippy -- -D warnings  # might treat warnings as errors

If it passes locally but fails in CI:

  • Check tool versions: node --version, python --version, etc. vs CI config
  • Check for OS-specific behavior (path separators, line endings, case sensitivity)
  • Check for missing environment variables (CI might set CI=true which changes behavior)
  • Check for timing issues (CI machines are slower, timeouts may differ)

6. Thinking gate — user explains the failure

"Now that you've seen the logs and classified the failure:

  1. What type of failure is this? (Use the classification table above)
  2. Is it caused by your changes or pre-existing?
  3. What do you think the fix is? (Be specific — what file, what change)"

Wait for their answer. If they say "I don't know," point them to the specific log line and CI config step that failed. Don't hand them the answer.

7. Fix and verify

The user fixes the issue based on their diagnosis. The LLM helps with:

  • Explaining unfamiliar CI tools or configurations
  • Finding the right commands to reproduce locally
  • Pointing to CI documentation when needed
bash
# After fixing, run the failing command locally
# {exact command from CI config}

# Push the fix
git add {changed-files}
git commit -m "{descriptive message about the CI fix}"
git push

8. Monitor the re-run

bash
# Watch the new CI run
gh run list -R {owner}/{repo} --branch {your-branch} --limit 1
gh run watch {new-run-id} -R {owner}/{repo}

If it fails again with a DIFFERENT error: go back to step 2. CI pipelines are sequential — fixing one failure may reveal the next.

If it fails with the SAME error: your fix didn't work. Re-read the logs more carefully. The error message might be misleading — look at the lines above and below it for context.

Related Skills

  • Previous step: ← oss-submit-pr — CI runs after you submit
  • Previous step: ← oss-post-pr — reviewer may ask you to fix CI
  • If code changes needed: → oss-contribute — if the fix requires significant code changes
  • Return to: → oss-post-pr — after CI is green, continue with review

Common Rationalizations

ShortcutWhy It Fails
"I'll just push a fix and see if CI goes green"Blind pushing wastes CI minutes (a shared resource), clutters your commit history, and tells maintainers you don't understand the codebase. Diagnose first.
"It passes locally so CI must be wrong"CI is usually right. It uses pinned versions, clean state, and different OS. If it fails in CI and passes locally, YOU have the wrong environment.
"I'll just skip this CI check"You can't skip CI on someone else's repo. Even if you could, the maintainer will notice and reject your PR.
"I'll ask the maintainer to re-run CI, it's probably flaky"Check if it's flaky first (step 4). Asking maintainers to re-run without evidence wastes their time and makes you look like you didn't try.
"I'll copy the fix from another PR that had the same error"Same error message doesn't mean same root cause. Understand YOUR failure before applying someone else's fix.

Red Flags

  • User pushes 3+ "fix CI" commits without reading the logs — they're guessing, not debugging
  • Failure is in a job unrelated to the user's changes (e.g., docs build fails on a code PR) — likely pre-existing
  • User wants to modify CI config files — that's almost never the right fix for a contributor PR
  • Same failure type keeps recurring across multiple pushes — the diagnosis is wrong

Verification Checklist

  • CI system and pipeline structure understood (step 1)
  • Failure classified by type (step 3)
  • Determined whether failure is from user's changes or pre-existing (step 4)
  • Failure reproduced locally (step 5, if applicable)
  • User explained the failure type, cause, and fix (step 6)
  • Fix pushed and CI passes (step 7-8)
  • No unnecessary "fix CI" commits cluttering the history

Anti-patterns

  • DO NOT push blind fixes without reading the logs — diagnose first, fix second
  • DO NOT modify CI configuration files in a contributor PR — fix your code, not the pipeline
  • DO NOT assume "works locally" means CI is wrong — CI has the authoritative environment
  • DO NOT ask maintainers to re-run without checking if the failure is pre-existing first
  • DO NOT let the user skip classification — knowing the failure TYPE determines the fix strategy

Heefeg gestallte Froen

Wat mécht de KI-Skill Oss Debug Ci?

Debug CI failures in unfamiliar repo pipelines. Reads CI configs, fetches failure logs, classifies the failure type, and guides the user through diagnosing and fixing the issue. Use when CI fails on your PR in an OSS repo, when you don't understand a CI error, or when debugging GitHub Actions/CircleCI/other CI systems. Not for setting up CI from scratch — this is for debugging existing pipelines.

Firwat Oss Debug Ci op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Oss Debug Ci besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Oss Debug Ci an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/chiruu12/OSS-Skills/tree/main/skills/oss-debug-ci an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Oss Debug Ci benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Oss Debug Ci benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Oss Debug Ci domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Oss Debug Ci gratis?

Jo. chiruu12 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇