Skill Tracer
Skills › gstack › gstack-upgrade › v0.15.2.0.sh

v0.15.2.0.sh

20 lines · gstack-upgrade/migrations/v0.15.2.0.sh at 3f79d81

1#!/usr/bin/env bash
2# Migration: v0.15.2.0 — Fix skill directory structure for unprefixed discovery
3#
4# What changed: setup now creates real directories with SKILL.md symlinks
5# inside instead of directory symlinks. The old pattern (qa -> gstack/qa)
6# caused Claude Code to auto-prefix skills as "gstack-qa" even with
7# --no-prefix, because Claude sees the symlink target's parent dir name.
8#
9# What this does: runs gstack-relink to recreate all skill entries using
10# the new real-directory pattern. Idempotent — safe to run multiple times.
12# Affected: users who installed gstack before v0.15.2.0 with --no-prefix
13set -euo pipefail
15SCRIPT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
17if [ -x "$SCRIPT_DIR/bin/gstack-relink" ]; then
18 echo " [v0.15.2.0] Fixing skill directory structure..."
19 "$SCRIPT_DIR/bin/gstack-relink" 2>/dev/null || true
20fi