A disabled_skills verify entry keeps /build-check off, and gstack stops claiming verify prompts (#4593) (#4719)

A `disabled_skills: verify` entry now turns off `/build-check`, and
gstack's router and skill description no longer claim prompts that say
"verify my change".

Why: this finishes the #4593 rename, so Claude Code's built-in `/verify`
gets those prompts and an old opt-out keeps working.

What you do: nothing.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-22 20:40:54 +00:00
1 parent 9d758432eb
commit c2da82e49c
17 files changed
+117 -27

No files matched your search

+2
View File
@@ -1047,8 +1047,10 @@ $_gstack_legacy_root"
done
done
_clean=""
_renamed="$( [ -f "$(dirname "$0")/gstack-install-registry.sh" ] && . "$(dirname "$0")/gstack-install-registry.sh" 2>/dev/null && printf '%s' "${GSTACK_RENAMED_SKILLS:-}" || true)"
for _x in $(printf '%s' "$VALUE" | tr ',' ' ' | tr -d "\"'"); do
_x="${_x#/}"
for _r in $_renamed; do [ "${_x#gstack-}" = "${_r%%:*}" ] && _x="${_r#*:}"; done
case "$_x" in
gstack|gstack-upgrade)
echo "Error: $_x cannot be disabled (it is how gstack upgrades and routes). Existing value left unchanged." >&2
+17
View File
@@ -354,6 +354,23 @@ gstack_disabled_normalize() {
# (test/retired-skills.test.ts).
GSTACK_RETIRED_SKILLS="investigate verify"
# GSTACK_RENAMED_SKILLS — old:new skill names. A user's disabled_skills entry
# under an old name still turns off the skill's new name (#4593). Same map as
# RENAMED_SKILLS in scripts/discover-skills.ts.
GSTACK_RENAMED_SKILLS="verify:build-check"
# gstack_disabled_config VALUE — gstack_disabled_normalize for the user's own
# disabled_skills value, with each renamed skill mapped to its new name. Only
# the config value is mapped: the retired list keeps its old names.
gstack_disabled_config() {
local out=" " n r
for n in $(gstack_disabled_normalize "$1"); do
for r in $GSTACK_RENAMED_SKILLS; do [ "$n" = "${r%%:*}" ] && n="${r#*:}"; done
case "$out" in *" $n "*) ;; *) out="$out$n " ;; esac
done
printf '%s' "$out"
}
# GSTACK_CREW_SKILLS — the gstack-on-Capy skills (crew/README.md). Only a Capy
# machine registers them; anywhere else they get no entry on any host and an
# existing gstack-owned entry is removed, like a retired skill. Same list as
+10 -4
View File
@@ -70,7 +70,7 @@ PREFIX=$("$GSTACK_CONFIG" get skill_prefix 2>/dev/null || echo "false")
DISABLED=" "
if [ -f "$SCRIPT_DIR/gstack-install-registry.sh" ]; then
. "$SCRIPT_DIR/gstack-install-registry.sh"
DISABLED="$(gstack_disabled_normalize "$("$GSTACK_CONFIG" get disabled_skills 2>/dev/null || true)")"
DISABLED="$(gstack_disabled_config "$("$GSTACK_CONFIG" get disabled_skills 2>/dev/null || true)")"
fi
# Retired skills, and the crew skills off a Capy machine
# (GSTACK_UNREGISTERED_SKILLS), lose their entry the same way; only the user's
@@ -107,7 +107,7 @@ RENDER_DIR="${RENDER_DIR:-$GSTACK_STATE_ROOT/render/claude}"
# refreshed in place. WEAK (byte-identity with our source, or gen-skill-docs'
# two-line banner on a real file) proves only that the SKILL.md came from us:
# it authorizes touching that one file, never deleting the directory, and a
# differing file is moved to $GSTACK_STATE_ROOT/backups/skills/<ts>/
# differing file is moved to $GSTACK_STATE_ROOT/backups/skills/<ts>.<random>/
# before we link over it (a user who started their own skill from a gstack
# SKILL.md looks exactly like a pre-marker legacy copy).
#
@@ -231,12 +231,18 @@ _report_foreign() {
}
# Weakly-proven real files we would otherwise overwrite go here, one summary
# line at the end. mv, not cp: the link that follows needs the path free.
BACKUP_ROOT="$GSTACK_STATE_ROOT/backups/skills/$(date +%Y%m%dT%H%M%S)"
# line at the end. mv, not cp: the link that follows needs the path free. The
# folder is made on first use with mktemp, so two runs in the same second never
# share it and one run's backup can't overwrite another's.
BACKUP_ROOT=""
BACKED_UP=()
_backup_skill_md() {
# Non-zero when the file could NOT be moved: the caller leaves the entry alone.
local file="$1" name="$2"
if [ -z "$BACKUP_ROOT" ]; then
mkdir -p "$GSTACK_STATE_ROOT/backups/skills" 2>/dev/null || return 1
BACKUP_ROOT="$(mktemp -d "$GSTACK_STATE_ROOT/backups/skills/$(date +%Y%m%dT%H%M%S).XXXXXX" 2>/dev/null)" || return 1
fi
mkdir -p "$BACKUP_ROOT/$name" 2>/dev/null || return 1
mv -f "$file" "$BACKUP_ROOT/$name/SKILL.md" 2>/dev/null || return 1
BACKED_UP+=("$name")