agentleFS
yeaight7yeaight7/agent-powerups/skills/ci-failure-readout/SKILL.md

ci-failure-readout

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Use when a CI pipeline has failed and the real error must be extracted from thousands of lines of noisy logs.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Draft the readout: Before fixing it, write a 2-sentence summary: "CI failed during the build step because src/types.ts is missing an …

    line 41

≈ “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

CI logs are notoriously noisy. Extract the one true error, prove it locally, and write a readout — do not dump the entire log into the context window.

When to Use

  • A CI pipeline failed and the error is buried in long logs
  • A readout is needed before deciding what (or who) fixes the failure
  • A CI failure must be reproduced locally before fixing

Inputs

  • Access to the CI run (e.g., gh for GitHub Actions) or a downloaded log file
  • The repo, to rerun the failing command locally

Workflow

  1. Locate the true error. Find the exact step that failed; ignore setup/teardown noise:

    gh run list --limit 10               # find the failing run
    gh run view <run-id>                 # failing job and step
    gh run view <run-id> --log-failed    # logs from failing steps only
    # or, with a downloaded log:
    grep -n -iE "error|failed|exit code" ci.log | head -20
  2. Extract the trace. Copy only the stack trace or the specific compiler/linter error message — not the surrounding noise.
  3. Reproduce locally. The first rule of fixing a CI failure is proving it fails locally. Run the exact command the CI runner used (read it from the workflow/step definition), e.g.:

    npm run test:e2e    # whatever the failing step actually ran
  4. Draft the readout. Before fixing it, write a 2-sentence summary: "CI failed during the build step because src/types.ts is missing an export." This forces you to understand the problem instead of blindly guessing.

Output

  • The failing step, the extracted error (trace or message only), local repro status, and the 2-sentence readout

Verification

  • Failing step identified by name, not "somewhere in CI"
  • Only the relevant trace/error extracted — no full-log dumps in context
  • Failure reproduced locally with the CI's exact command (or the gap explained)
  • 2-sentence readout written before any fix

Failure Modes

  • Log flooding — pasting thousands of lines into context instead of the failing step's error.
  • Fixing without local repro — pushing speculative fixes and using CI as the test loop.
  • First-red-line fallacy — the earliest red text may be a symptom; the failing step defines where to look.

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.