fix: verify Grok shared skill discovery
This commit is contained in:
@@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
usage() {
|
usage() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
Install the private golem15 GSD build for Claude Code and Codex.
|
Install the private golem15 GSD build for Claude Code and Codex.
|
||||||
Grok Build consumes the Claude installation through its compatibility layer.
|
Grok Build consumes the shared Codex skills or Claude compatibility surface.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
scripts/install-golem15.sh [--update] [--skip-deps] [--profile PROFILE]
|
scripts/install-golem15.sh [--update] [--skip-deps] [--profile PROFILE]
|
||||||
@@ -89,6 +89,7 @@ node bin/install.js --codex --global "--profile=$profile"
|
|||||||
|
|
||||||
claude_root=${CLAUDE_CONFIG_DIR:-"$HOME/.claude"}
|
claude_root=${CLAUDE_CONFIG_DIR:-"$HOME/.claude"}
|
||||||
codex_root=${CODEX_HOME:-"$HOME/.codex"}
|
codex_root=${CODEX_HOME:-"$HOME/.codex"}
|
||||||
|
agents_root=${GROK_AGENTS_HOME:-"$HOME/.agents"}
|
||||||
recovery_rel=gsd-core/workflows/plan-phase/steps/agent-recovery-and-timing.md
|
recovery_rel=gsd-core/workflows/plan-phase/steps/agent-recovery-and-timing.md
|
||||||
|
|
||||||
for install_root in "$claude_root" "$codex_root"; do
|
for install_root in "$claude_root" "$codex_root"; do
|
||||||
@@ -113,11 +114,13 @@ fi
|
|||||||
if command -v grok >/dev/null 2>&1; then
|
if command -v grok >/dev/null 2>&1; then
|
||||||
grok_report=$(mktemp)
|
grok_report=$(mktemp)
|
||||||
trap 'rm -f "$grok_report"' EXIT
|
trap 'rm -f "$grok_report"' EXIT
|
||||||
|
shared_skill="$agents_root/skills/gsd-plan-phase/SKILL.md"
|
||||||
|
claude_skill="$claude_root/skills/gsd-plan-phase/SKILL.md"
|
||||||
if grok inspect --json >"$grok_report" 2>/dev/null \
|
if grok inspect --json >"$grok_report" 2>/dev/null \
|
||||||
&& grep -Fq "$claude_root/skills/gsd-plan-phase/SKILL.md" "$grok_report"; then
|
&& { grep -Fq "$shared_skill" "$grok_report" || grep -Fq "$claude_skill" "$grok_report"; }; then
|
||||||
echo "==> Grok verified: Claude-compatible gsd-plan-phase skill discovered"
|
echo "==> Grok verified: gsd-plan-phase skill discovered"
|
||||||
else
|
else
|
||||||
echo "WARNING: Grok did not report the Claude gsd-plan-phase skill; restart Grok and run 'grok inspect'." >&2
|
echo "WARNING: Grok did not report a compatible gsd-plan-phase skill; restart Grok and run 'grok inspect'." >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -127,6 +130,7 @@ Private GSD installation complete.
|
|||||||
Source: $repo_root
|
Source: $repo_root
|
||||||
Claude: $claude_root
|
Claude: $claude_root
|
||||||
Codex: $codex_root
|
Codex: $codex_root
|
||||||
|
Grok: $agents_root/skills (shared Codex surface, with Claude compatibility fallback)
|
||||||
Profile: $profile
|
Profile: $profile
|
||||||
|
|
||||||
Restart Claude Code, Codex, and Grok Build before using the updated skills.
|
Restart Claude Code, Codex, and Grok Build before using the updated skills.
|
||||||
|
|||||||
Reference in New Issue
Block a user