agentleFS
TacuchiTacuchi/agent-skills/skills/engineering/github-workflows/SKILL.md

github-workflows

Skill0 starsChanged 2 months agoMITView on GitHub

Reviews, creates and standardizes GitHub Actions workflows, and operates deployments through the gh command. Use when the person asks what a push will start, why a workflow ran or failed, to add or fix a CI or deployment workflow, to deploy by hand, to see what is deployed or to roll back. Six commands: `check <repo>` is read-only and reports what each workflow starts on and where it leaves the pattern; `generate <repo>` creates a missing workflow from a template; `update <repo>` brings existing workflows to the pattern; `status <repo>` shows the last runs and the deployed commit; `deploy <repo>` and `rollback <repo>` act on production and always ask first. Runs only on request. Not for other CI providers, for the orchestrator's own settings or for pipeline security audits.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this once, when the skill loads and before its other steps.

    line 10
  2. Very specific:

    Run node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>.

    line 12
  3. Very specific:

    If node is missing or the command fails, say so, list the needs in <skill dir>/permissions.json and go on with the skill.

    line 13
  4. Very specific:

    Read hosts.<host> in the output.

    line 14
  5. Very specific:

    Run the command of the option the person chose, exactly as given.

    line 16
  6. Distinctive:

    After "Skip for now", do not run this step again in the session.

    line 18
  7. Distinctive:

    Every command runs only when the person asks, and takes the path of a local git repository.

    line 22
  8. Distinctive:

    Read references/authoring.md whole before the first edit and follow its steps in order.

    line 45
  9. Very specific:

    Read references/operating.md first.

    line 49
  10. Distinctive:

    Ask every question and every approval with the host's structured question tool: the recommended option first, each option with what it does.

    line 62
  11. Distinctive:

    Never recommend an option that reaches production over one that does not, unless the person asked for the deployment.

    line 65
  12. Distinctive:

    Before a push that touches a workflow, or a push to a branch whose workflows deploy, read references/pushing.md.

    line 69
  13. Distinctive:

    Start each new workflow from its template: tests, deployment or publication.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 4 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

github-workflows — Review, write and operate GitHub Actions workflows

Step 0 — Permissions this skill uses

Run this once, when the skill loads and before its other steps. It keeps the session from stopping on a prompt for a command this skill is known to run. It is not a security check: the host and its hooks still decide.

  1. Run node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>. <skill dir> is the folder of this SKILL.md; <session folder> is the folder where the session started; the host is the one you run in.
  2. If node is missing or the command fails, say so, list the needs in <skill dir>/permissions.json and go on with the skill.
  3. Read hosts.<host> in the output. Show its notice when there is one.
  4. Ask each entry of its questions with the host's structured question tool, in the person's language: its text, then its options in the given order, the one marked recommended first. Low-risk and high-risk needs are separate questions; ask them separately and never recommend allowing a high-risk need.
  5. Run the command of the option the person chose, exactly as given. An option without a command writes nothing. Write nothing the person did not choose.
  6. Tell the person the applies line of the result: whether the change works now or after a restart. If the command fails, say so and go on.
  7. After "Skip for now", do not run this step again in the session.

Commands

Every command runs only when the person asks, and takes the path of a local git repository. Without a path, use the current folder when it is a git repository; otherwise ask for it.

CommandWhat it doesReaches production
check <repo>Reads the workflows: what starts each one, what it does and where it leaves the patternNo
generate <repo>Creates a missing workflow from a templateNot until it is pushed
update <repo>Brings existing workflows to the patternNot until it is pushed
status <repo>Last runs, the deployed commit and, for a failed run, the step and its errorNo
deploy <repo>Starts the deployment workflow by hand and follows itYes
rollback <repo>Runs the last good deployment again and follows itYes

check <repo>

node <skill dir>/scripts/check.mjs --repo <repo> --json
  • It needs no network and edits nothing. Exit code 0 is no errors, warnings included; 1 is errors; 2 is a usage or environment problem.
  • For each workflow, say what starts it, what it does and whether a push of documentation alone would run it. Then the findings, errors first, each with its file, line and code.
  • references/pattern.md explains every code and its fix.

generate <repo> and update <repo>

Read references/authoring.md whole before the first edit and follow its steps in order.

status <repo>, deploy <repo> and rollback <repo>

Read references/operating.md first. deploy and rollback restart a running service: they never run without the person's yes to the plan the script prints.

Rules that never break

  1. Nothing that reaches production runs without the person's explicit yes, given to a plan that names the repository, the commit and what restarts.
  2. A workflow is never edited without showing the exact lines first.
  3. update changes only the lines a finding names.
  4. A workflow the checker cannot read is reported as unreadable, never as clean.
  5. A template is filled from the repository or from the person's answers, never from a guess.
  6. An error from gh is an error, never an empty list.

Questions

  • Ask every question and every approval with the host's structured question tool: the recommended option first, each option with what it does.
  • Each question stands alone: name the repository, the workflow and the commit, because the person may see only the question.
  • Without that tool, ask with a labeled list of options.
  • Never recommend an option that reaches production over one that does not, unless the person asked for the deployment.

Where to read next

  • Before a push that touches a workflow, or a push to a branch whose workflows deploy, read references/pushing.md.
  • Start each new workflow from its template: tests, deployment or publication.

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.