/agent-skills:update-github-actionsfrom agent-skills
Update outdated GitHub Actions in workflow files and pin them to commit hashes for supply-chain security.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Update GitHub Actions in workflow files to their latest versions, pinned by commit SHA for security and reproducibility.
Glob for .github/workflows/*.yml and .github/workflows/*.yaml, plus local composite actions at .github/actions/*/action.yml and .github/actions/*/action.yaml. Read each file. If none are found, inform the user and stop.
Treat composite action files exactly like workflow files in the steps below: scan their uses: lines, apply the same ignore rules, and include them in the Step 4 table.
For each workflow or composite action file, find all uses: lines that reference actions in owner/repo@ref format. Ignore:
./)docker://).github/workflows/)Build a deduplicated list of actions with their current refs (e.g. actions/checkout@v4).
Actions pinned to a full 40-character SHA are still checked for updates. Determine their current version:
If the line has a trailing version comment (uses: owner/repo@<sha> # vX.Y.Z), treat vX.Y.Z as the current version. Its major version drives Step 3a.
If there is no version comment, resolve the SHA to a tag:
gh api --paginate --slurp repos/{owner}/{repo}/tags | jq -r --arg sha "<sha>" '[.[][] | select(.commit.sha == $sha) | .name] | first // empty'
Use the returned tag as the current version. If it returns nothing, skip the action and report "pinned SHA, version unknown" in the results table.
For each unique action, determine the latest version tag within the same major version and resolve its commit SHA. If any gh api call fails (auth error, rate limit, repo not found), skip that action with a warning rather than aborting the entire process.
Extract the major version from the current ref (e.g. @v4 → major 4, @v3.2.1 → major 3). Then find the highest non-prerelease, non-draft release whose tag matches the same major version, sorted by version number:
gh api --paginate --slurp repos/{owner}/{repo}/releases | jq -r --arg m "v{major}" '[.[][] | select((.prerelease or .draft) | not) | .tag_name | select(test("^" + $m + "([.]|$)"))] | sort_by(ltrimstr("v") | split(".") | map(tonumber? // 0)) | last // empty'
If no matching release exists, fall back to listing tags, sorted the same way:
gh api --paginate --slurp repos/{owner}/{repo}/tags | jq -r --arg m "v{major}" '[.[][] | .name | select(test("^" + $m + "([.]|$)"))] | sort_by(ltrimstr("v") | split(".") | map(tonumber? // 0)) | last // empty'
If both return empty, skip the action and report "no matching releases found" in the results table.
Fetch the git ref and check its object type in a single call:
gh api repos/{owner}/{repo}/git/ref/tags/{tag} --jq '.object | "\(.type) \(.sha)"'
If the type is commit, use the SHA directly. If the type is tag (annotated tag), dereference it:
gh api repos/{owner}/{repo}/git/tags/{sha} --jq '.object.sha'
Show the user a table of proposed updates before applying anything. Exclude an action only when its current pinned SHA equals the newly resolved SHA (for tag refs like @v4, always propose pinning).
| Workflow file | Action | Current ref | New pinned ref |
|---|
Ask the user to confirm before proceeding. If the user wants to skip specific actions, respect that.
For each confirmed action reference, update the uses: line to the pinned format with a tag comment for readability:
# Before
uses: actions/checkout@v4
# After
uses: actions/checkout@<full-sha> # v4.2.2
The comment after the SHA shows the tag name so humans can tell which version is pinned at a glance.
Do not commit or push changes unless also asked to do so.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lucaspimentel/agent-skills --plugin agent-skills20 skills in this plugin
/address-pr-commentsInteractively walk through and address PR review comments one at a time, asking the user what to do for each, committing after each code change, and optionally replying on GitHub. Accepts an optional PR number argument; defaults to the current branch's PR./add-todoCreate or append tasks to TODO.md in the current working directory. Not appropriate for reading, viewing, checking off, removing, or reorganizing TODO.md./chezmoi-diffHelp resolve differences between chezmoi-managed dotfiles and local files, including which direction changes should flow and what the chezmoi file naming conventions (dot_, executable_, .tmpl, symlink_, etc.) mean./diagnosing-bugsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow./git-clean-worktreesRemove already-preserved linked worktrees and local branches from one repository, only through an explicit plan the user approves by digest./git-commitCommit pending changes to git, optionally pushing after. Use when the user says 'commit', 'commit my changes', 'commit all', 'commit everything', 'save my work to git', 'stage and commit', or any variation of wanting to create a git commit. Accepts an optional 'push' keyword to push after committing, and optionally specific file names or a description of what to commit.