From a4cd58d7143261bb2c72e11754a7e22a1006f3e2 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Wed, 25 Nov 2026 14:39:12 -0700 Subject: [PATCH 1/3] ci: update agent skills for the universal and Claude Code folders only Run skills add with --agent universal --agent claude-code --copy instead of skills update, which picks agents from the runner's home folder. Skip the pull request when only the lock's commit values changed, and fail when the two skills folders differ. --- .github/workflows/agent-skills.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agent-skills.yml b/.github/workflows/agent-skills.yml index 779fe51..8f5091e 100644 --- a/.github/workflows/agent-skills.yml +++ b/.github/workflows/agent-skills.yml @@ -22,7 +22,7 @@ jobs: - name: Update the skills in each skills-lock.json run: | while IFS= read -r lock; do - (cd "$(dirname "$lock")" && npx --yes skills@1 update --project --yes) + (cd "$(dirname "$lock")" && npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null && diff -rq .agents/skills .claude/skills) done < <(find . -name skills-lock.json -not -path "*/node_modules/*") - name: Open a pull request with the updates env: @@ -30,6 +30,12 @@ jobs: run: | git add -- '*skills-lock.json' '*.agents/skills/*' '*.claude/skills/*' if git diff --cached --quiet; then exit 0; fi + if git diff --cached --quiet -- . ':!*skills-lock.json' && + git diff --cached --name-only -- '*skills-lock.json' | while IFS= read -r lock; do + [ "$(git show "HEAD:$lock" | jq -S 'del(.skills[].commit)')" = "$(jq -S 'del(.skills[].commit)' "$lock")" ] || exit 1 + done; then + exit 0 + fi gh auth setup-git state="$(gh pr view agent-skills --json state --jq .state 2>/dev/null || true)" if [ "$state" = "OPEN" ] && git fetch --quiet --depth 2 origin agent-skills && [ "$(git rev-parse FETCH_HEAD^)" = "$(git rev-parse HEAD)" ] && git diff --cached --quiet FETCH_HEAD; then exit 0; fi From cf9e27b7f79fc3e3e3ec41640e4b3f5e6d2170b7 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Wed, 25 Nov 2026 14:43:51 -0700 Subject: [PATCH 2/3] ci: check only the plugin's skills when comparing the two folders A developer's own skill in only one folder no longer fails the update. --- .github/workflows/agent-skills.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agent-skills.yml b/.github/workflows/agent-skills.yml index 8f5091e..33c2c29 100644 --- a/.github/workflows/agent-skills.yml +++ b/.github/workflows/agent-skills.yml @@ -22,7 +22,12 @@ jobs: - name: Update the skills in each skills-lock.json run: | 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 && diff -rq .agents/skills .claude/skills) + ( + cd "$(dirname "$lock")" + npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null + jq -r '.skills | to_entries[] | select(.value.source == "slackapi/slack-skills-plugin") | .key' skills-lock.json | + while IFS= read -r skill; do diff -rq ".agents/skills/$skill" ".claude/skills/$skill" || exit 1; done + ) done < <(find . -name skills-lock.json -not -path "*/node_modules/*") - name: Open a pull request with the updates env: From b80e275087fae7a1788474e4ded8948a834fed58 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Wed, 25 Nov 2026 14:51:22 -0700 Subject: [PATCH 3/3] ci: fail the folder check when the plugin's skills can't be listed --- .github/workflows/agent-skills.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agent-skills.yml b/.github/workflows/agent-skills.yml index 33c2c29..a8ef533 100644 --- a/.github/workflows/agent-skills.yml +++ b/.github/workflows/agent-skills.yml @@ -25,8 +25,9 @@ jobs: ( cd "$(dirname "$lock")" npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null - jq -r '.skills | to_entries[] | select(.value.source == "slackapi/slack-skills-plugin") | .key' skills-lock.json | - while IFS= read -r skill; do diff -rq ".agents/skills/$skill" ".claude/skills/$skill" || exit 1; done + skills="$(jq -r '.skills | to_entries[] | select(.value.source == "slackapi/slack-skills-plugin") | .key' skills-lock.json)" + [ -n "$skills" ] + for skill in $skills; do diff -rq ".agents/skills/$skill" ".claude/skills/$skill"; done ) done < <(find . -name skills-lock.json -not -path "*/node_modules/*") - name: Open a pull request with the updates