Skip to content

chore(workflows): pin agent skills updates to the latest plugin release - #341

Merged
mwbrooks merged 2 commits into
mainfrom
mwbrooks-agent-skills-release-tag
Nov 30, 2026
Merged

mwbrooks merged 2 commits into
mainfrom
mwbrooks-agent-skills-release-tag

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Summary

This pull request pins the daily agent skills update to the latest Slack MCP and Skills Plugin release instead of the plugin's main branch, so developers and maintainers get skills that have shipped in a release, not work in progress. It matches bolt-js-starter-template#198.

  • Each run reads the latest release tag and installs slackapi/slack-skills-plugin#<tag>, which skills-lock.json records as ref.
  • The update pull request title names the release, such as chore: update agent skills to v1.9.0, and its body links the release notes.
  • The update command in AGENTS.md installs from a release tag too, so a manual update and the next daily run agree.
  • A release that changes no skills opens no pull request.

Testing

  • v1.9.0 matches the plugin's main, so the first run after merge rolls no skills back.
  • The same change on bolt-js-starter-template ran on main, resolved v1.9.0, and opened no pull request.

@mwbrooks mwbrooks added enhancement New feature or request github_actions Pull requests that update GitHub Actions code labels Nov 27, 2026
@mwbrooks mwbrooks self-assigned this Nov 27, 2026
@mwbrooks
mwbrooks marked this pull request as ready for review November 27, 2026 23:43
@mwbrooks
mwbrooks requested a review from a team as a code owner November 27, 2026 23:43

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran the update step locally at this head: it resolved v1.9.0 and wrote ref: v1.9.0 plus the tag's commit into all three skills-lock.json files, and the PR-open gate then exits without opening a pull request, since only ref and commit moved. Tampering one lock's hash makes the gate open one, as intended. The workflow matches the one on bolt-python-team-agent#45.

- name: Open a pull request with the updates
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ steps.skills.outputs.tag }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 praise: Passing the tag through env and quoting "$TAG", instead of putting ${{ }} in the script, means a release name can never run as shell.

@mwbrooks

Copy link
Copy Markdown
Member Author

Thanks @WilliamBergamin for the review! 🙇 I applied your token suggestion from the other PRs here too, in e88d1ff, so the skills CLI gets no token. Would you mind a refresh review when you have a moment?

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refresh at e88d1ff: ran the update step locally again. It resolved v1.9.0 and wrote ref: v1.9.0 plus the tag's commit into all three skills-lock.json files, with the skills CLI step running without a token. The PR-open gate still exits without opening a pull request when only ref and commit move, and opens one when a lock's hash changes. The workflow now matches bolt-js-team-agent#39.

with:
node-version: 24.x
- name: Update the skills in each skills-lock.json
- name: Find the latest skills plugin release

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 praise: Looking up the release in its own step keeps GH_TOKEN away from npx skills@1, so the third-party CLI never sees a token.

@mwbrooks

Copy link
Copy Markdown
Member Author

Thanks @WilliamBergamin for the review! 🙇

@mwbrooks
mwbrooks merged commit fb12c31 into main Nov 30, 2026
8 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-agent-skills-release-tag branch November 30, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants