agentleFS
NicoGentiNicoGenti/opencode-orchestrator-kit/skills/github-actions-cicd/SKILL.md

github-actions-cicd

Skill9 starsChanged 8 days agoMITView on GitHub

GitHub Actions workflow structure and security conventions. Load before writing, reviewing, or debugging any .github/workflows/*.yml pipeline.

  • Reads credentials

4 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

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep workflows simple; add complexity incrementally rather than front-loading a complex pipeline [web:65].

    line 14
  2. Distinctive:

    Avoid self-hosted runners on shared/production infrastructure.

    line 26
  3. Distinctive:

    Use GitHub Environments with protection rules for staging/production deploys, requiring manual approval for prod [web:65].

    line 31
  4. Very specific:

    Check for: unpinned action versions, secrets exposed in logs or run: commands, missing needs: dependencies that let deploy run before tests …

    line 36

“Common” is measured: kept by at least 6 in 10 of the 3 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 Actions CI/CD Conventions

Workflow Structure

  • Split logically distinct phases into separate jobs (build, test, lint, security scan, deploy) rather than one monolithic job [web:66][web:64].
  • Split deployment targets into separate workflows or jobs per environment (dev/staging/prod) with explicit GitHub Environments and required approvals for prod [web:65].
  • Keep workflows simple; add complexity incrementally rather than front-loading a complex pipeline [web:65].
  • Parallelize independent jobs to reduce total pipeline time [web:65].

Caching and Performance

  • Cache dependencies (npm/NuGet/pip) and build artifacts between runs using actions/cache [web:65].
  • Reuse composite actions or reusable workflows for logic repeated across pipelines instead of copy-pasting steps.

Security

  • Store all credentials and API keys in GitHub Secrets, never in workflow YAML or committed files [web:65].
  • Restrict third-party actions to pinned versions (commit SHA or exact tag), not floating @main/@latest.
  • Avoid self-hosted runners on shared/production infrastructure; isolate them in a dedicated environment [web:60].
  • Scope GITHUB_TOKEN permissions to the minimum required (permissions: block) rather than defaulting to full write access.

Deployment

  • Use GitHub Environments with protection rules for staging/production deploys, requiring manual approval for prod [web:65].
  • Fail fast: run lint/test/security jobs before the deploy job, and make deploy depend on their success (needs:).

When Reviewing or Debugging

Check for: unpinned action versions, secrets exposed in logs or run: commands, missing needs: dependencies that let deploy run before tests pass, and overly broad token permissions — these are higher priority than formatting nits.

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.