agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/deployment/ci-failure-investigator/SKILL.md

ci-failure-investigator

Skill0 starsChanged 20 days agoMITView on GitHub

Diagnose failing CI jobs from the exact failing step, logs, environment, and reproducible local checks. Use when a pipeline fails or an agent proposes speculative workflow edits.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read applicable repository instructions before edits.

    line 20
  2. Distinctive:

    Commit/ref under test

    line 27
  3. Distinctive:

    Do not expose secrets from logs or broaden token permissions as a convenience fix.

    line 46
  4. Distinctive:

    When hosted CI cannot be rerun, report local verification separately and leave hosted status pending rather than claiming success.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Turn a red CI run into a localized cause and verified repair.

When to activate

A CI workflow, build, test, lint, packaging, or permission job fails.

When not to activate

The failure is an acknowledged external provider outage with no repository change to make.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Workflow/run URL or logs
  • Commit/ref under test
  • Relevant CI configuration

Workflow

  1. Identify the first failing job and first causally relevant failing step, not only the final job status.
  2. Extract the exact command, exit code, environment/runner, and error output.
  3. Classify the cause: repository code/test, dependency, workflow syntax, permission/secret, cache/artifact, platform, or external service.
  4. Reproduce the command locally/containerized when the environment permits; otherwise isolate the workflow condition.
  5. Make the smallest code/configuration change that addresses the classified cause.
  6. Re-run the narrow check and then the affected workflow when accessible.
  7. Confirm no required step was skipped or changed to continue-on-error merely to obtain green status.

Relevant tools

CI logs, workflow files, local runner/container, GitHub Actions APIs when available.

Safety restrictions

Do not expose secrets from logs or broaden token permissions as a convenience fix.

Validation

  • The original failing command/job passes or the external blocker is independently confirmed.
  • Required tests remain enabled and failure propagation remains intact.
  • Workflow permissions are no broader than required.

Expected output

  • Failing job/step and evidence
  • Cause classification
  • Patch rationale
  • Local and hosted validation status

Failure handling

When hosted CI cannot be rerun, report local verification separately and leave hosted status pending rather than claiming success.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P042. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.