agentleFS
NVIDIAKnown publisherNVIDIA/NeMo-Relay/.agents/skills/maintain-ci/SKILL.md

maintain-ci

Skill238 starsChanged 2 months agoApache-2.0View on GitHub

Change or review NeMo Relay GitHub Actions workflows where permissions, pinned actions, caching, reusable workflows, or release gates require repository-specific handling. Do not use for ordinary source changes that merely run in CI.

2 other projects use a version of this, 1 of them edited.

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

18 rules. About 0 are common, 11 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Use this skill when a change touches .github/workflows/*.yml or .github/workflows/*.yaml, or when reviewing CI behavior for security, …

    line 10
  2. Very specific:

    Put permissions: on each job that needs token access.

    line 16
  3. Distinctive:

    Avoid workflow-level permissions unless the repository intentionally centralizes them and the inheritance tradeoff is documented.

    line 17
  4. Distinctive:

    Keep third-party actions pinned to full commit SHAs and preserve the readable version comment after the SHA.

    line 19
  5. Very specific:

    Prefer action-native or ecosystem-native caching over generic actions/cache.

    line 21
  6. Distinctive:

    Use lockfiles or dependency manifests to drive cache invalidation.

    line 23
  7. Distinctive:

    Keep deploy and publish permissions isolated to the jobs that need them.

    line 24
  8. Very specific:

    Read both caller and callee when a workflow uses workflow_call.

    line 25
  9. Distinctive:

    Put release-tag validation in the earliest practical caller job when the pipeline has tag-based publish behavior.

    line 26
  10. Very specific:

    Keep release-tag policy aligned with RELEASING.md: raw SemVer tags only, no leading v.

    line 28
  11. Distinctive:

    Keep Codecov component paths aligned with new crates, packages, and generated outputs.

    line 30
  12. Distinctive:

    Keep pure-Python plugin SDK packaging as a single wheel artifact instead of duplicating it across every platform matrix entry.

    line 32
  13. Very specific:

    Prefer astral-sh/setup-uv cache support with cache-dependency-glob anchored to uv.lock.

    line 47
  14. Very specific:

    Prefer Swatinem/rust-cache with explicit shared-key and workspaces instead of ad hoc target-directory caching.

    line 49
  15. Distinctive:

    Avoid caching generated outputs that can hide stale behavior unless the repo already relies on them deliberately.

    line 51
  16. Distinctive:

    Start with the narrowest useful checks:

    line 71
  17. Distinctive:

    Use ripgrep to inspect the workflow graph before editing:

    line 78
  18. Distinctive:

    If local lint passes but the question is whether GitHub will authorize the run, inspect GitHub's permission model and the upstream action …

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Maintain GitHub Actions CI

Use this skill when a change touches .github/workflows/*.yml or .github/workflows/*.yaml, or when reviewing CI behavior for security, reliability, or reproducibility.

Standards

  • Put permissions: on each job that needs token access.
  • Avoid workflow-level permissions unless the repository intentionally centralizes them and the inheritance tradeoff is documented.
  • Keep third-party actions pinned to full commit SHAs and preserve the readable version comment after the SHA.
  • Prefer action-native or ecosystem-native caching over generic actions/cache.
  • Use lockfiles or dependency manifests to drive cache invalidation.
  • Keep deploy and publish permissions isolated to the jobs that need them.
  • Read both caller and callee when a workflow uses workflow_call.
  • Put release-tag validation in the earliest practical caller job when the pipeline has tag-based publish behavior.
  • Keep release-tag policy aligned with RELEASING.md: raw SemVer tags only, no leading v.
  • Keep Codecov component paths aligned with new crates, packages, and generated outputs. Dynamic plugin SDK/protocol paths belong in the plugin component.
  • Keep pure-Python plugin SDK packaging as a single wheel artifact instead of duplicating it across every platform matrix entry.

Permission Model

  • contents: read is the default minimum for checkout-based build, test, docs, and packaging jobs.
  • pull-requests: read is required for PR metadata lookup jobs.
  • pages: write and id-token: write should be limited to Pages deployment jobs and any caller that invokes them through a reusable workflow.
  • For reusable workflows, the caller must grant every permission the called jobs require. The callee cannot elevate beyond what the caller provides.

Caching

  • Prefer astral-sh/setup-uv cache support with cache-dependency-glob anchored to uv.lock.
  • Prefer Swatinem/rust-cache with explicit shared-key and workspaces instead of ad hoc target-directory caching.
  • Avoid caching generated outputs that can hide stale behavior unless the repo already relies on them deliberately.

Review Checklist

  • Each job has the minimum permissions it needs
  • Reusable workflow callers grant only the scopes their callees require
  • Every external action is pinned to a full SHA
  • Cache settings are tied to lockfiles, manifests, or explicit tool versions
  • Secrets are only passed to the jobs that consume them
  • Codecov upload counts match codecov.yml after adding or removing upload jobs
  • Package artifacts include any first-class SDK packages introduced by the change
  • Concurrency, branch filters, and publish guards still reflect release intent
  • Artifact upload, download, and Pages deploy steps have matching permissions
  • Tag-triggered release workflows fail early when a tag violates repo policy

Validation

Start with the narrowest useful checks:

ruby -e 'require "yaml"; Dir[".github/workflows/*.{yml,yaml}"].each { |f| YAML.load_file(f) }; puts "yaml-ok"'
uv run pre-commit run

Use ripgrep to inspect the workflow graph before editing:

rg -n "uses:|permissions:|workflow_call|secrets:|upload-artifact|download-artifact|upload-pages-artifact|deploy-pages|codecov|cache" .github/workflows

If local lint passes but the question is whether GitHub will authorize the run, inspect GitHub's permission model and the upstream action or reusable workflow source instead of assuming local success proves remote success.

Canonical References

  • .github/workflows/ci.yaml
  • .github/workflows/ci_python.yml
  • RELEASING.md
  • .pre-commit-config.yaml
  • .github/ci-path-filters.yml

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.