Github actions

From Esposter/Esposter · View interactive version

Github actions is an AI agent skill from the GitHub repository Esposter/Esposter. Apply when writing or editing any workflow, composite action, job, or step — and read the owner pointers before adding a rule. Esposter's GitHub Actions authoring for `.github/workflows` and `.github/actions`: how a step is written.

How to use this skill

Skill file

GitHub Actions Authoring

How a workflow file or composite action is written here. What the CI does — which jobs exist, the traced task cache, the package-builds artifact, the shard count, per-job permissions — is openspec/specs/architecture/monorepo-tooling/design.md's, under ## CI job shape and ## CI security. This skill is only the shape of a step.

Take the runner's affordance, not a shell reimplementation of it

The runner already says most of what a step needs, declaratively, where the UI and the next reader can see it. A shell form that says the same thing works — which is exactly why it accumulates.

The exception is a value the runner cannot hold: a multi-line heredoc, or a $GITHUB_OUTPUT write, is shell because there is no field for it.

Template data reaches the shell through `env:`, never the command line

Event, matrix and input data reach run through the step's env: as a quoted "$VAR", never a ${{ }} on the command line (references/template-data.md).

A reusable workflow that spends secrets inherits them

secrets: inherit, never a named list the callee must mirror (references/reusable-workflows.md).

A skipped job reports its required check as satisfied

An aggregate gate takes if: ${{ !cancelled() }} and re-asserts its needs' results first, since a skipped required check is green (references/gates-and-cleanup.md).

`always()` is paired with a guard on what the step consumes

always() is paired with a guard on the value the step consumes (references/gates-and-cleanup.md).

A schedule is a quoted UTC string on minute 16

Every cron is a quoted UTC string firing on minute 16, its comment giving the cadence and why, never a local time (references/schedules.md).

Don't swallow an exit code to make a step idempotent

Don't append || true to a command the tool already makes idempotent (references/exit-codes.md).

A `workflow_run` deploy runs only a push to this repository

A job that checks out workflow_run.head_sha and holds secrets is the "pwn request" shape Scorecard's Dangerous-Workflow check reports (alert 38). It is safe only while the triggering workflow runs nothing from a fork, which nothing in the file says, so the job's if states it: workflow_run.event == 'push' and workflow_run.head_repository.full_name == github.repository. The checkout of the tested commit stays, since the branch's tip may have moved on, and the alert stays open on that pattern until it is dismissed as a false positive with this reason (openspec/specs/architecture/monorepo-tooling/design.md, "CI job shape").

A comment keeps what the owning page does not say

A workflow comment keeps only what the owning page and the step itself leave unsaid (references/step-comments.md).

Owned elsewhere — pointers, not copies

Reference pages

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.