agentleFS
sudokoisudokoi/skills/github-workflow/SKILL.md

github-workflow

Skill0 starsChanged 3 months agoMITView on GitHub

Conventions for authoring and maintaining GitHub Actions workflows. Pin each action to its latest version, read the Node version from .node-version (else latest LTS), and set up pnpm via the setup-pnpm action instead of corepack. Use when creating a workflow, adding or editing jobs or steps, or updating action versions in an existing workflow.

  • Installs packages

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If the repo has .node-version (or .nvmrc), use it via node-version-file.

    line 35
  2. Very specific:

    Use the setup-pnpm action (pnpm/action-setup) — never corepack.

    line 41
  3. Very specific:

    Do not hardcode a version: pnpm/action-setup reads packageManager from package.json automatically.

    line 42
  4. Very specific:

    If package.json has no pnpm version, set version: latest.

    line 44
  5. Distinctive:

    When asked to update an existing workflow, first list every action with its current and latest version, and get the user's confirmation …

    line 48

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

Rules for writing GitHub Actions workflows for this user.

Action versions

  • Pin every action to its latest major version tag (e.g. actions/checkout@v7).
  • Find the latest tag at authoring time instead of reusing stale tags from memory:

    gh api repos/OWNER/REPO/releases/latest --jq .tag_name
  • On a major-version bump, check the release notes for breaking changes to inputs.

Current latest, verified 2026-08 (re-check before use):

ActionLatest
actions/checkoutv7
actions/setup-nodev7
actions/setup-pythonv7
actions/cachev6
actions/upload-artifactv7
actions/download-artifactv8
pnpm/action-setupv6

Node version

  • If the repo has .node-version (or .nvmrc), use it via node-version-file.
  • Otherwise use the latest LTS with node-version: 'lts/*'. Never hardcode a specific Node version.

pnpm

  • Use the setup-pnpm action (pnpm/action-setup) — never corepack.
  • Do not hardcode a version: pnpm/action-setup reads packageManager from package.json automatically.
  • If package.json has no pnpm version, set version: latest.

Existing workflows

  • When asked to update an existing workflow, first list every action with its current and latest version, and get the user's confirmation before changing anything.

Example

name: CI

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7

      - uses: pnpm/action-setup@v6
        # version is read from package.json "packageManager"; no hardcoding

      - uses: actions/setup-node@v7
        with:
          node-version-file: '.node-version' # or: node-version: 'lts/*'
          cache: 'pnpm'

      - run: pnpm install --frozen-lockfile
      - run: pnpm test

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.