agentleFS
cobusgreylingcobusgreyling/grok-bot-templates/skills/sweep-ci/SKILL.md

sweep-ci

Skill14 starsChanged 3 months agoMITView on GitHub

Paste this into Grok Bot after a successful run: Save the process we just used as a skill called “Sweep CI”. A useful skill states the six fields from Skills and routines. CI on named repositories is red or flaky and the owner needs a failure list with logs and owners — not a bot that reruns, cancels, or merges. Every row cites a check URL or log line. Flakes are labeled when the same job failed then passed without…

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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Default branch and the time window (default since last sweep)

    line 17
  2. Distinctive:

    Write the sweep memo. Do not cancel runs, push, merge, or mute required checks.

    line 27
  3. Distinctive:

    Every row cites a check URL or log line.

    line 31
  4. Distinctive:

    Do not merge, push, or comment on GitHub.

    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

Sweep CI

Paste this into Grok Bot after a successful run:

Save the process we just used as a skill called “Sweep CI”.

A useful skill states the six fields from Skills and routines.

1. When to use it

CI on named repositories is red or flaky and the owner needs a failure list with logs and owners — not a bot that reruns, cancels, or merges.

2. Required inputs and access

  • GitHub connector and the named repositories
  • Default branch and the time window (default since last sweep)
  • Optional CODEOWNERS or a pinned owner map

3. Sequence of work

  1. List failing or cancelled checks on the default branch and on open PRs in the window. Do not invent jobs.
  2. Open the log for each distinct failure. Quote the error, path, and job name.
  3. Cluster duplicates. Count how often the same test failed.
  4. Suggest an owner from CODEOWNERS or the PR author. Do not assign on GitHub.
  5. At most one rerun, and only when the log is truncated — write that down. Never rerun-until-green.
  6. Write the sweep memo. Do not cancel runs, push, merge, or mute required checks.

4. How to validate the result

Every row cites a check URL or log line. Flakes are labeled when the same job failed then passed without a code change; otherwise "flake unknown". No merge and no retry loop.

5. What to return

CI sweep: failing jobs, cluster, log quote, suggested owner, flake note, action log. At most one truncated-log rerun recorded.

6. What requires approval

Do not merge, push, or comment on GitHub. Do not cancel workflows or change branch protection. Do not rerun until green.

Type / in the composer to reference a saved skill. If it does not appear, open Settings → Plugins → Yours and enable it for this Bot.

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.