From 171b94c828be58c5cf57fb311503cac2cc38b478 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Thu, 12 Nov 2026 18:01:16 -0800 Subject: [PATCH] Release: ship only raea-skills' skill folders into share/raea/skills raea-skills' skills/ is becoming its Claude plugin too (skills/.claude-plugin/plugin.json, hooks/, README.md, icon.png), and release.sh copied that folder whole, so the installer, which copies every entry of share/raea/skills into ~/.claude/skills, would have put the plugin's README, icon and hooks folder there beside the skill. Now only folders holding a SKILL.md are staged, and _-prefixed ones (raea-skills' _template) stay out as before. Tested on a mock skills/ with the plugin's files: raea/ alone is staged. --- tools/release.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/release.sh b/tools/release.sh index 0e75567e..61acdbe1 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -170,12 +170,17 @@ copy sdk/react/tw/node_modules/tailwindcss "$stage/share/raea/sdk/react/tw/node_ mkdir -p "$stage/share/raea/models/beat-this" cp ~/.local/share/raea-models/beat-this/beat_this_small0.onnx "$stage/share/raea/models/beat-this/" # the agent skill (raea: raea-skills at the commit REF pins), which the installer copies into -# ~/.claude/skills; raea-work (sdk/skills, work.raea.io's showcase pages) is internal and stays out, and _template is -# raea-skills' start of a new skill +# ~/.claude/skills; raea-work (sdk/skills, work.raea.io's showcase pages) is internal and stays out. Only the skill +# folders (each with its SKILL.md) ship: raea-skills' skills/ is also its Claude plugin, whose manifest, hooks, README +# and icon would land in ~/.claude/skills as clutter, and _template is raea-skills' start of a new skill skills=$(mktemp -d) skills_at "$skills" || exit 1 -rm -rf "$skills/skills/_template" -cp -R "$skills/skills" "$stage/share/raea/skills" +mkdir -p "$stage/share/raea/skills" +for s in "$skills"/skills/*/SKILL.md; do + s=${s%/SKILL.md} + case ${s##*/} in _*) continue ;; esac + cp -R "$s" "$stage/share/raea/skills/" +done # the runtime's packages, as installed here copy sdk/react/js/node_modules "$stage/share/raea/sdk/react/js" rm -rf "$stage/share/raea/tools/tokensynth/__pycache__" "$skills"