exec-github-actions
Skill4 starsChanged 4 days agoMITView on GitHub
GitHub Actions execution idioms to embed into Codex prompts when a task edits .github/workflows — job and step structure, tag-gated release steps, OS matrices, secrets hygiene, timeouts, and smoke-step wiring for npm packages.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accounting-bookkeepingSkill
- agent-context-persistenceSkill
- asoSkill
- brainstorm-argumentationSkill
- brainstorm-debateSkill
- brainstorm-lensesSkill
- causal-inferenceSkill
- context-disciplineSkill
- creative-briefSkill
- customer-support-opsSkill
- data-quality-checksSkill
- design-fundamentalsSkill
- ecommerce-operationsSkill
- event-taxonomySkill
- exec-coding-standardsSkill
- exec-cppSkill
- exec-csharpSkill
- exec-deliverableSkill
- exec-goSkill
- exec-jvmSkill
- exec-phpSkill
- exec-pythonSkill
- exec-rubySkill
- exec-rustSkill
- exec-self-testingSkill
- exec-swiftSkill
- exec-typescriptSkill
- executor-fallbackSkill
- exec-visualizationSkill
- fast-pathSkill
- final-reviewSkill
- financial-auditSkill
- hr-recruitingSkill
- influencer-strategySkill
- interview-ask-backSkill
- interview-elicitationSkill
- jev-assistSkill
- json-data-wranglingSkill
- legal-contract-basicsSkill
- localization-copySkill
- manufacturing-ops-planningSkill
- marketing-attributionSkill
- media-planningSkill
- okr-planningSkill
- pack-game-analyticsSkill
- parallel-executionSkill
- performance-marketingSkill
- personal-financeSkill
- plan-architectureSkill
- plan-backlogSkill
- plan-research-firstSkill
- preflightSkill
- profile-contentSkill
- profile-designSkill
- profile-pilotSkill
- profile-planSkill
- real-estate-analysisSkill
- review-conformanceSkill
- review-dualSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use when a task creates or edits a workflow under .github/workflows/.
- Very specific: line 37
Every uses: is pinned to a major tag.
- Very specific: line 38
Every job has timeout-minutes.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
GitHub Actions (embed into Codex prompts)
Serves: tasks that create or edit .github/workflows/*.yml (npm smoke wiring, OS matrix, tag-gated publish) — R9.2
Use when a task creates or edits a workflow under .github/workflows/. Embed the block below in the execution prompt; Codex cannot see this file.
Core method
- Source:
.github/workflows/ci.ymlandpublish.ymlin this repository. Embed the block below verbatim in the Codex prompt for any task touching.github/workflows/:
GitHub Actions rules (mandatory):
- Pin every action by major tag (actions/checkout@v4, actions/setup-node@v4); never @main.
- Every job sets `timeout-minutes`; every network step (npm, npx, curl) has its own timeout or retry.
- Release-only steps are gated: `if: startsWith(github.ref, 'refs/tags/v')`; PR/main jobs never publish.
- Secrets: read only via `${{ secrets.NAME }}` into `env:`; never echo, never write to files that are uploaded or committed; `.npmrc` tokens come from env, never from the repo.
- Install with `npm ci` (lockfile), not `npm install`; cache with `actions/setup-node` `cache: npm`.
- Cross-platform jobs use `strategy.matrix.os: [ubuntu-latest, macos-latest, windows-latest]`; shell steps that must behave the same everywhere set `shell: bash` explicitly, or call `node` scripts instead of shell constructs.
- A smoke/verification step fails the job on non-zero exit; do not `|| true` a check.
- Derive the version from the tag with `${GITHUB_REF_NAME#v}` (bash) and pass it as an argument; never hard-code versions in YAML.
- Keep job names stable (they are branch-protection checks); add new checks as new jobs, do not rename existing ones.
- Prefer `node scripts/<name>.mjs` over inline shell for anything longer than one line, so the logic is unit-testable and platform-neutral.Why embedded
Workflow YAML fails late (only on push) and platform differences hide until the matrix runs. Encoding the rules in the prompt prevents the common regressions: unpinned actions, missing timeouts, release steps running on PRs, secrets echoed in logs, and bash-only substitutions breaking the Windows runner.
Reviewer checklist
- Source: the Workflow block above (each line below restates one rule as a yes/no check).
- Every
uses:is pinned to a major tag; no@main/@master. - Every job has
timeout-minutes; release steps carry a tagif:gate. - No
echoof a secret, no secret written into an uploaded artifact or committed file. npm ciused; matrix covers ubuntu/macos/windows when the task says cross-platform.- Any smoke/verification step fails the job on non-zero exit (no
|| true, nocontinue-on-erroron checks). - Version derived from the tag, not hard-coded.
Failure modes
- Source: the Workflow block above. Unpinned action silently changes behaviour on a later push → pin by tag. Missing
timeout-minuteshangs the runner for 6 h on a stucknpx→ set timeouts. Release step without a tag gate publishes from a PR → gate withif:. Secret echoed in a log or written to an uploaded artifact → env-only, never print. Bash-only substitution on the Windows runner fails the matrix → call a node script instead.
Provenance
- Source:
.codex-flow/SKILL-BRIEF-github-actions.md(brief for gap R9.2, authored 2026-09-09 for codex-mcp 0.26.0). - Source:
.github/workflows/ci.ymland.github/workflows/publish.ymlin this repository (existing pinning, matrix, tag-gate, and npm-view wait conventions). - derived, unverified: GitHub Actions security-hardening guidance (pin actions, secrets via env only, per-job timeouts) as commonly documented; not re-checked against a primary source in this session.
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
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.

