Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 46 additions & 8 deletions graphify/skill-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,53 @@ Before running any subcommand below (`--update`, `--cluster-only`, `query`, `pat

```bash
if [ ! -f graphify-out/.graphify_python ]; then
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
find_graphify_python() {
if command -v uv >/dev/null 2>&1; then
_TOOL_DIR=$(uv tool dir 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_TOOL_DIR/graphifyy/Scripts/python.exe" "$_TOOL_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
if command -v pipx >/dev/null 2>&1; then
_VENV_DIR=$(pipx environment --value PIPX_LOCAL_VENVS 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_VENV_DIR/graphifyy/Scripts/python.exe" "$_VENV_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
_GRAPHIFY_BIN=$(command -v graphify 2>/dev/null)
if [ -f "$_GRAPHIFY_BIN" ] && IFS= read -r _SHEBANG < "$_GRAPHIFY_BIN"; then
case "$_SHEBANG" in
'#!'*)
_PY=${_SHEBANG#\#!}
case "$_PY" in
*[!a-zA-Z0-9/_.@-]*) ;;
*)
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
;;
esac
;;
esac
fi
for _PY in python3 python; do
if command -v "$_PY" >/dev/null 2>&1 && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
"$_PY" -c "import sys; print(sys.executable.replace(chr(92), '/'))" | tr -d '\r'
return 0
fi
done
return 1
}
PYTHON=$(find_graphify_python) || exit 1
mkdir -p graphify-out
"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
printf '%s' "$PYTHON" > graphify-out/.graphify_python
fi
```

Expand Down
54 changes: 46 additions & 8 deletions graphify/skill-amp.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,53 @@ Before running any subcommand below (`--update`, `--cluster-only`, `query`, `pat

```bash
if [ ! -f graphify-out/.graphify_python ]; then
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
find_graphify_python() {
if command -v uv >/dev/null 2>&1; then
_TOOL_DIR=$(uv tool dir 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_TOOL_DIR/graphifyy/Scripts/python.exe" "$_TOOL_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
if command -v pipx >/dev/null 2>&1; then
_VENV_DIR=$(pipx environment --value PIPX_LOCAL_VENVS 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_VENV_DIR/graphifyy/Scripts/python.exe" "$_VENV_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
_GRAPHIFY_BIN=$(command -v graphify 2>/dev/null)
if [ -f "$_GRAPHIFY_BIN" ] && IFS= read -r _SHEBANG < "$_GRAPHIFY_BIN"; then
case "$_SHEBANG" in
'#!'*)
_PY=${_SHEBANG#\#!}
case "$_PY" in
*[!a-zA-Z0-9/_.@-]*) ;;
*)
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
;;
esac
;;
esac
fi
for _PY in python3 python; do
if command -v "$_PY" >/dev/null 2>&1 && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
"$_PY" -c "import sys; print(sys.executable.replace(chr(92), '/'))" | tr -d '\r'
return 0
fi
done
return 1
}
PYTHON=$(find_graphify_python) || exit 1
mkdir -p graphify-out
"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
printf '%s' "$PYTHON" > graphify-out/.graphify_python
fi
```

Expand Down
54 changes: 46 additions & 8 deletions graphify/skill-claw.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,15 +629,53 @@ Before running any subcommand below (`--update`, `--cluster-only`, `query`, `pat

```bash
if [ ! -f graphify-out/.graphify_python ]; then
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
find_graphify_python() {
if command -v uv >/dev/null 2>&1; then
_TOOL_DIR=$(uv tool dir 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_TOOL_DIR/graphifyy/Scripts/python.exe" "$_TOOL_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
if command -v pipx >/dev/null 2>&1; then
_VENV_DIR=$(pipx environment --value PIPX_LOCAL_VENVS 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_VENV_DIR/graphifyy/Scripts/python.exe" "$_VENV_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
_GRAPHIFY_BIN=$(command -v graphify 2>/dev/null)
if [ -f "$_GRAPHIFY_BIN" ] && IFS= read -r _SHEBANG < "$_GRAPHIFY_BIN"; then
case "$_SHEBANG" in
'#!'*)
_PY=${_SHEBANG#\#!}
case "$_PY" in
*[!a-zA-Z0-9/_.@-]*) ;;
*)
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
;;
esac
;;
esac
fi
for _PY in python3 python; do
if command -v "$_PY" >/dev/null 2>&1 && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
"$_PY" -c "import sys; print(sys.executable.replace(chr(92), '/'))" | tr -d '\r'
return 0
fi
done
return 1
}
PYTHON=$(find_graphify_python) || exit 1
mkdir -p graphify-out
"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
printf '%s' "$PYTHON" > graphify-out/.graphify_python
fi
```

Expand Down
54 changes: 46 additions & 8 deletions graphify/skill-codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,53 @@ Before running any subcommand below (`--update`, `--cluster-only`, `query`, `pat

```bash
if [ ! -f graphify-out/.graphify_python ]; then
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
find_graphify_python() {
if command -v uv >/dev/null 2>&1; then
_TOOL_DIR=$(uv tool dir 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_TOOL_DIR/graphifyy/Scripts/python.exe" "$_TOOL_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
if command -v pipx >/dev/null 2>&1; then
_VENV_DIR=$(pipx environment --value PIPX_LOCAL_VENVS 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_VENV_DIR/graphifyy/Scripts/python.exe" "$_VENV_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
_GRAPHIFY_BIN=$(command -v graphify 2>/dev/null)
if [ -f "$_GRAPHIFY_BIN" ] && IFS= read -r _SHEBANG < "$_GRAPHIFY_BIN"; then
case "$_SHEBANG" in
'#!'*)
_PY=${_SHEBANG#\#!}
case "$_PY" in
*[!a-zA-Z0-9/_.@-]*) ;;
*)
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
;;
esac
;;
esac
fi
for _PY in python3 python; do
if command -v "$_PY" >/dev/null 2>&1 && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
"$_PY" -c "import sys; print(sys.executable.replace(chr(92), '/'))" | tr -d '\r'
return 0
fi
done
return 1
}
PYTHON=$(find_graphify_python) || exit 1
mkdir -p graphify-out
"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
printf '%s' "$PYTHON" > graphify-out/.graphify_python
fi
```

Expand Down
54 changes: 46 additions & 8 deletions graphify/skill-copilot.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,15 +629,53 @@ Before running any subcommand below (`--update`, `--cluster-only`, `query`, `pat

```bash
if [ ! -f graphify-out/.graphify_python ]; then
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
find_graphify_python() {
if command -v uv >/dev/null 2>&1; then
_TOOL_DIR=$(uv tool dir 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_TOOL_DIR/graphifyy/Scripts/python.exe" "$_TOOL_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
if command -v pipx >/dev/null 2>&1; then
_VENV_DIR=$(pipx environment --value PIPX_LOCAL_VENVS 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_VENV_DIR/graphifyy/Scripts/python.exe" "$_VENV_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
_GRAPHIFY_BIN=$(command -v graphify 2>/dev/null)
if [ -f "$_GRAPHIFY_BIN" ] && IFS= read -r _SHEBANG < "$_GRAPHIFY_BIN"; then
case "$_SHEBANG" in
'#!'*)
_PY=${_SHEBANG#\#!}
case "$_PY" in
*[!a-zA-Z0-9/_.@-]*) ;;
*)
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
;;
esac
;;
esac
fi
for _PY in python3 python; do
if command -v "$_PY" >/dev/null 2>&1 && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
"$_PY" -c "import sys; print(sys.executable.replace(chr(92), '/'))" | tr -d '\r'
return 0
fi
done
return 1
}
PYTHON=$(find_graphify_python) || exit 1
mkdir -p graphify-out
"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
printf '%s' "$PYTHON" > graphify-out/.graphify_python
fi
```

Expand Down
54 changes: 46 additions & 8 deletions graphify/skill-droid.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,53 @@ Before running any subcommand below (`--update`, `--cluster-only`, `query`, `pat

```bash
if [ ! -f graphify-out/.graphify_python ]; then
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
find_graphify_python() {
if command -v uv >/dev/null 2>&1; then
_TOOL_DIR=$(uv tool dir 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_TOOL_DIR/graphifyy/Scripts/python.exe" "$_TOOL_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
if command -v pipx >/dev/null 2>&1; then
_VENV_DIR=$(pipx environment --value PIPX_LOCAL_VENVS 2>/dev/null | tr -d '\r' | tr '\\' '/')
for _PY in "$_VENV_DIR/graphifyy/Scripts/python.exe" "$_VENV_DIR/graphifyy/bin/python"; do
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
done
fi
_GRAPHIFY_BIN=$(command -v graphify 2>/dev/null)
if [ -f "$_GRAPHIFY_BIN" ] && IFS= read -r _SHEBANG < "$_GRAPHIFY_BIN"; then
case "$_SHEBANG" in
'#!'*)
_PY=${_SHEBANG#\#!}
case "$_PY" in
*[!a-zA-Z0-9/_.@-]*) ;;
*)
if [ -x "$_PY" ] && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
printf '%s\n' "$_PY"
return 0
fi
;;
esac
;;
esac
fi
for _PY in python3 python; do
if command -v "$_PY" >/dev/null 2>&1 && "$_PY" -c "from importlib.metadata import version; version('graphifyy'); import graphify" 2>/dev/null; then
"$_PY" -c "import sys; print(sys.executable.replace(chr(92), '/'))" | tr -d '\r'
return 0
fi
done
return 1
}
PYTHON=$(find_graphify_python) || exit 1
mkdir -p graphify-out
"$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
printf '%s' "$PYTHON" > graphify-out/.graphify_python
fi
```

Expand Down
Loading
Loading