diff --git a/graphify/skill-claw.md b/graphify/skill-claw.md index 4e967ee..887a622 100644 --- a/graphify/skill-claw.md +++ b/graphify/skill-claw.md @@ -62,12 +62,16 @@ Follow these steps in order. Do not skip steps. GRAPHIFY_BIN=$(which graphify 2>/dev/null) if [ -n "$GRAPHIFY_BIN" ]; then PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!') + case "$PYTHON" in + *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;; + esac else PYTHON="python3" fi -$PYTHON -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +"$PYTHON" -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +mkdir -p graphify-out # Write interpreter path for all subsequent steps -$PYTHON -c "import sys; open('.graphify_python', 'w').write(sys.executable)" +"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" ``` If the import succeeds, print nothing and move straight to Step 2. diff --git a/graphify/skill-codex.md b/graphify/skill-codex.md index cfd1e92..78e90cc 100644 --- a/graphify/skill-codex.md +++ b/graphify/skill-codex.md @@ -62,12 +62,15 @@ Follow these steps in order. Do not skip steps. GRAPHIFY_BIN=$(which graphify 2>/dev/null) if [ -n "$GRAPHIFY_BIN" ]; then PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!') + case "$PYTHON" in + *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;; + esac else PYTHON="python3" fi -$PYTHON -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +"$PYTHON" -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 # Write interpreter path for all subsequent steps -$PYTHON -c "import sys; open('.graphify_python', 'w').write(sys.executable)" +"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" ``` If the import succeeds, print nothing and move straight to Step 2. diff --git a/graphify/skill-droid.md b/graphify/skill-droid.md index b1a873e..de739f6 100644 --- a/graphify/skill-droid.md +++ b/graphify/skill-droid.md @@ -62,12 +62,16 @@ Follow these steps in order. Do not skip steps. GRAPHIFY_BIN=$(which graphify 2>/dev/null) if [ -n "$GRAPHIFY_BIN" ]; then PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!') + case "$PYTHON" in + *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;; + esac else PYTHON="python3" fi -$PYTHON -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +"$PYTHON" -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 # Write interpreter path for all subsequent steps -$PYTHON -c "import sys; open('.graphify_python', 'w').write(sys.executable)" +mkdir -p graphify-out +"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" ``` If the import succeeds, print nothing and move straight to Step 2. diff --git a/graphify/skill-opencode.md b/graphify/skill-opencode.md index 6294138..93dd212 100644 --- a/graphify/skill-opencode.md +++ b/graphify/skill-opencode.md @@ -62,12 +62,16 @@ Follow these steps in order. Do not skip steps. GRAPHIFY_BIN=$(which graphify 2>/dev/null) if [ -n "$GRAPHIFY_BIN" ]; then PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!') + case "$PYTHON" in + *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;; + esac else PYTHON="python3" fi -$PYTHON -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +"$PYTHON" -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 # Write interpreter path for all subsequent steps -$PYTHON -c "import sys; open('.graphify_python', 'w').write(sys.executable)" +mkdir -p graphify-out +"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" ``` If the import succeeds, print nothing and move straight to Step 2. diff --git a/graphify/skill-trae.md b/graphify/skill-trae.md index bed6330..9d77856 100644 --- a/graphify/skill-trae.md +++ b/graphify/skill-trae.md @@ -62,12 +62,15 @@ Follow these steps in order. Do not skip steps. GRAPHIFY_BIN=$(which graphify 2>/dev/null) if [ -n "$GRAPHIFY_BIN" ]; then PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!') + case "$PYTHON" in + *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;; + esac else PYTHON="python3" fi -$PYTHON -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +"$PYTHON" -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 # Write interpreter path for all subsequent steps -$PYTHON -c "import sys; open('.graphify_python', 'w').write(sys.executable)" +"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" ``` If the import succeeds, print nothing and move straight to Step 2. diff --git a/graphify/skill.md b/graphify/skill.md index 35ca681..f6a47fb 100644 --- a/graphify/skill.md +++ b/graphify/skill.md @@ -64,12 +64,15 @@ Follow these steps in order. Do not skip steps. GRAPHIFY_BIN=$(which graphify 2>/dev/null) if [ -n "$GRAPHIFY_BIN" ]; then PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!') + case "$PYTHON" in + *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;; + esac else PYTHON="python3" fi -$PYTHON -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 +"$PYTHON" -c "import graphify" 2>/dev/null || pip install graphifyy -q --break-system-packages 2>&1 | tail -3 # Write interpreter path for all subsequent steps -$PYTHON -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" +"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)" mkdir -p graphify-out ```