mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-03 13:24:19 +01:00
Install gstack's shipping skill as /gstack-ship so Claude Code's own /ship stops hiding it (#4775) (#4819)
gstack's shipping skill now installs as `/gstack-ship`, because Claude Code keeps the name `/ship` for its own built-in and silently drops gstack's. Upgrading removes gstack's old `ship` entry and leaves your own `ship` skill alone. The resume command and most recovery messages now say `/gstack-ship`; nothing to do but upgrade. This replaces #4813, which ran out of budget before its last fixes. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p2/adversarial-native#1 reader=adversarial-native Review-Finding: p2/outside-voice#3 reader=outside-voice Review-Finding: p2/outside-voice#4 reader=outside-voice Review-Finding: p2/outside-voice#1 reader=outside-voice Review-Finding: p2/outside-voice#2 reader=outside-voice Review-Finding: p2/red-team#1 reader=red-team Review-Finding: p3/outside-voice#1 reader=outside-voice Review-Finding: p3/outside-voice#3 reader=outside-voice Review-Finding: p7/outside-voice#1 reader=outside-voice
This commit is contained in:
1 parent
9a550bca9c
commit
719b1f59f0
310 files changed
+1618
-1301
No files matched your search
+11
-3
@@ -10,6 +10,8 @@ DO_PREFIX="$2"
|
||||
case "$DO_PREFIX" in true|1) DO_PREFIX=1 ;; *) DO_PREFIX=0 ;; esac
|
||||
# Names are read with a bash builtin loop: no process per skill (#2120).
|
||||
. "$(dirname "$0")/gstack-skill-name.sh"
|
||||
# GSTACK_PREFIXED_SKILLS: skills whose name keeps gstack- in both modes (#4775).
|
||||
if [ -f "$(dirname "$0")/gstack-install-registry.sh" ]; then . "$(dirname "$0")/gstack-install-registry.sh"; fi
|
||||
|
||||
PATCHED=0
|
||||
for skill_dir in "$GSTACK_DIR"/*/; do
|
||||
@@ -23,9 +25,15 @@ for skill_dir in "$GSTACK_DIR"/*/; do
|
||||
case "$cur" in gstack-*) continue ;; esac
|
||||
new="gstack-$cur"
|
||||
else
|
||||
case "$cur" in gstack-*) ;; *) continue ;; esac
|
||||
[ "$dir_name" = "$cur" ] && continue # inherently prefixed (gstack-upgrade)
|
||||
new="${cur#gstack-}"
|
||||
case " ${GSTACK_PREFIXED_SKILLS:-} " in
|
||||
*" $dir_name "*) # always prefixed (ship, #4775), even from an older render
|
||||
case "$cur" in gstack-*) continue ;; esac
|
||||
new="gstack-$cur" ;;
|
||||
*)
|
||||
case "$cur" in gstack-*) ;; *) continue ;; esac
|
||||
[ "$dir_name" = "$cur" ] && continue # inherently prefixed (gstack-upgrade)
|
||||
new="${cur#gstack-}" ;;
|
||||
esac
|
||||
fi
|
||||
tmp="$(mktemp "${skill_dir}/SKILL.md.XXXXXX")"
|
||||
sed "1,/^---$/s/^name:[[:space:]]*${cur}/name: ${new}/" "$skill_dir/SKILL.md" > "$tmp" && mv "$tmp" "$skill_dir/SKILL.md"
|
||||
|
||||
Reference in new issue
Block a user