Repository navigation
chore(workflows): pin agent skills updates to the latest plugin release - #108
Conversation
WilliamBergamin
left a comment
There was a problem hiding this comment.
📦 Thanks @mwbrooks! Pinning to a release and naming the tag in the update PR makes each skills bump easy to trace back to its release notes.
One blocking comment on where the token lives 🙏
| - name: Update the skills in each skills-lock.json to the latest release | ||
| id: skills | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| tag="$(gh release view --repo slackapi/slack-skills-plugin --json tagName --jq .tagName)" | ||
| echo "tag=$tag" >> "$GITHUB_OUTPUT" | ||
| while IFS= read -r lock; do | ||
| ( | ||
| cd "$(dirname "$lock")" | ||
| npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null | ||
| npx --yes skills@1 add "slackapi/slack-skills-plugin#$tag" --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null |
There was a problem hiding this comment.
📦 suggestion (blocking): Could the token live in its own step? At step scope, GH_TOKEN also reaches npx --yes skills@1, a third-party CLI that reads GH_TOKEN, so it now runs with a write token the old step never had.
| - name: Update the skills in each skills-lock.json to the latest release | |
| id: skills | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| tag="$(gh release view --repo slackapi/slack-skills-plugin --json tagName --jq .tagName)" | |
| echo "tag=$tag" >> "$GITHUB_OUTPUT" | |
| while IFS= read -r lock; do | |
| ( | |
| cd "$(dirname "$lock")" | |
| npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null | |
| npx --yes skills@1 add "slackapi/slack-skills-plugin#$tag" --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null | |
| - name: Find the latest skills plugin release | |
| id: skills | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: echo "tag=$(gh release view --repo slackapi/slack-skills-plugin --json tagName --jq .tagName)" >> "$GITHUB_OUTPUT" | |
| - name: Update the skills in each skills-lock.json to the latest release | |
| env: | |
| TAG: ${{ steps.skills.outputs.tag }} | |
| run: | | |
| while IFS= read -r lock; do | |
| ( | |
| cd "$(dirname "$lock")" | |
| npx --yes skills@1 add "slackapi/slack-skills-plugin#$TAG" --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null |
There was a problem hiding this comment.
Moved to its own step in commit 7cbce8f, so the skills CLI no longer gets the token. Great catch! 🙇
There was a problem hiding this comment.
📦 Confirmed in 7cbce8f: the release lookup keeps the token and the skills CLI only sees TAG. Thanks for the quick fix 🙏
|
Thanks @WilliamBergamin for the careful review! 🙇 The token now lives in its own step in 7cbce8f. Would you mind a refresh review when you have a moment? |
WilliamBergamin
left a comment
There was a problem hiding this comment.
📦 Thanks @mwbrooks! Keeping the token in its own step means the skills CLI runs with no write access, and the update still resolves the latest release cleanly.
No comments from me, ready to ship 🚀
|
Thanks @WilliamBergamin for the review! 🙇 |
Summary
This pull request pins the daily agent skills update to the latest Slack MCP and Skills Plugin release instead of the plugin's
mainbranch, so developers and maintainers get skills that have shipped in a release, not work in progress. It matches bolt-js-starter-template#198.slackapi/slack-skills-plugin#<tag>, whichskills-lock.jsonrecords asref.chore: update agent skills to v1.9.0, and its body links the release notes.AGENTS.mdinstalls from a release tag too, so a manual update and the next daily run agree.Testing
v1.9.0matches the plugin'smain, so the first run after merge rolls no skills back.main, resolvedv1.9.0, and opened no pull request.