agentleFS
F0RextasyF0Rextasy/ci-triage/SKILL.md

ci-triage

Skill0 starsChanged 2 months agoMITView on GitHub

Classifies a failed CI run -- regression, flaky, infra, dependency, or config -- from the log alone plus local git history. Use when a CI job goes red and someone must decide whether to block the merge, rerun the job, or fix the pipeline. No model, no API, no telemetry - the log never leaves the machine, and exit 1 means only one thing -- a real regression.

18 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions18 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 18

    1. NewFuture/DDNS★ 4.7ksame name
    2. nubjs/nub★ 4.5ksame name
    3. Mentra-Community/MentraOS★ 2.5ksame name
    4. levy-street/world-of-claudecraft★ 2.3ksame name
    5. ls1intum/Artemis★ 839same name
    6. hyperledger-cacti/cacti★ 413same name
    7. andymai/brepjs★ 151same name
    8. hyperledger-labs/splice★ 124same name
    9. fair-acc/gnuradio4★ 118same name
    10. yannelli/pi-rust★ 32same name

    8 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    exit 0: - not a merge blocker (flaky / pre-existing / infra / dependency / config / unknown): rerun or route elsewhere.

    line 28
  2. Distinctive:

    Never paste CI logs into a chat/model to classify them - that is this skill's whole reason to exist.

    line 74
  3. Very specific:

    Never call regression on an infra signature to sound decisive.

    line 76
  4. Very specific:

    Never mark flaky without the history entry that proves it repeated.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “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

ci-triage

CI is red. The first question is always the same: flaky test, infra blip, or a real regression that should block the merge? Answering by hand means reading hundreds of log lines - and sending them to a model costs minutes and leaks your build output. Every answer here comes from the log, an optional local history, and git. Deterministic, offline, milliseconds.

The one rule

You may not classify a red build by vibes:

python scripts/ci-triage "$LOG" --history .ci/triage.json --base origin/main
  • exit 1 - regression: your diff broke it, fix before merge.
  • exit 0 - not a merge blocker (flaky / pre-existing / infra / dependency / config / unknown): rerun or route elsewhere.
  • exit 2 - usage error.

--strict makes any warning block too.

Protocol

  1. Grab the log - the raw CI job log (file, or pipe to stdin).
  2. Classify with the three inputs you have:
python scripts/ci-triage job.log --history .ci/triage.json --base origin/main --strict
  1. Act on the class, not the noise:
ClassMeaningAction
regressioncode-level failure inside your difffix before merge
pre-existingfailing code untouched by base...HEADnot your PR; file/fix separately
flakysame normalized signature already in historyrerun, then quarantine the test
infratimeout / 429 / OOM / runner diedrerun the job
dependencyresolution failed (pip/npm/cargo)fix the lockfile, not the code
configcommand not found, permission, missing secretfix the pipeline
unknownnothing matcheda human reads the log
  1. Report back - class, signature, the exact command, exit code.

How it decides (three inputs, in order)

  1. Environment signatures - infra, dependency, and config patterns are checked first: your code is not guilty of a 429.
  2. History (--history FILE) - a SHA-256 of the normalized failure excerpt (durations, SHAs, and paths stripped). Seen before -> flaky. The file is a plain local JSON counter; it is the only state, and it never leaves the machine.
  3. Git (--base REF) - paths extracted from the traceback. None of them in base...HEAD -> pre-existing. Otherwise -> regression.

Order matters: environment beats history beats git beats "it looks like code". The verdict is a pure function of (log, history, file) - same inputs, same answer, no sampling.

Hard bans

  • Never paste CI logs into a chat/model to classify them - that is this skill's whole reason to exist.
  • Never call regression on an infra signature to sound decisive.
  • Never mark flaky without the history entry that proves it repeated.

Reporting back

  1. Class and signature.
  2. Command and exit code:
$ python scripts/ci-triage job.log --history .ci/triage.json --base origin/main
ci-triage: regression (signature 4f0c2a91b3e7d158, 1 failing, 0 warnings)
[exit 1]
  1. Action taken - fixed, rerouted, or rerun - per the table above.

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.