@xynogen/pix-skills 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skills/graphify.md +8 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-skills",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -39,36 +39,19 @@ Follow these steps in order. Do not skip steps.
39
39
  ### Step 1 - Ensure graphify is installed
40
40
 
41
41
  ```bash
42
- PYTHON=""
43
- GRAPHIFY_BIN=$(which graphify 2>/dev/null)
44
- if [ -z "$PYTHON" ] && command -v uv >/dev/null 2>&1; then
45
- _UV_PY=$(uv tool run graphifyy python -c "import sys; print(sys.executable)" 2>/dev/null)
46
- if [ -n "$_UV_PY" ]; then PYTHON="$_UV_PY"; fi
47
- fi
48
- if [ -z "$PYTHON" ] && [ -n "$GRAPHIFY_BIN" ]; then
49
- _SHEBANG=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!')
50
- case "$_SHEBANG" in
51
- *[!a-zA-Z0-9/_.-]*) ;;
52
- *) "$_SHEBANG" -c "import graphify" 2>/dev/null && PYTHON="$_SHEBANG" ;;
53
- esac
54
- fi
55
- if [ -z "$PYTHON" ]; then PYTHON="python3"; fi
56
- if ! "$PYTHON" -c "import graphify" 2>/dev/null; then
57
- if command -v uv >/dev/null 2>&1; then
58
- uv tool install --upgrade graphifyy -q 2>&1 | tail -3
59
- _UV_PY=$(uv tool run graphifyy python -c "import sys; print(sys.executable)" 2>/dev/null)
60
- if [ -n "$_UV_PY" ]; then PYTHON="$_UV_PY"; fi
61
- else
62
- "$PYTHON" -m pip install graphifyy -q 2>/dev/null \
63
- || "$PYTHON" -m pip install graphifyy -q --break-system-packages 2>&1 | tail -3
64
- fi
42
+ if ! python3 -c "import graphify" 2>/dev/null; then
43
+ echo "graphify is not installed. See https://github.com/safishamsi/graphify for install instructions."
44
+ echo "Quick install, then re-run this command:"
45
+ echo " uv tool install graphifyy # recommended"
46
+ echo " # or: pip install graphifyy"
47
+ exit 1
65
48
  fi
66
49
  mkdir -p graphify-out
67
- "$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
50
+ python3 -c "import sys; open('graphify-out/.graphify_python', 'w', encoding='utf-8').write(sys.executable)"
68
51
  echo "$(cd . && pwd)" > graphify-out/.graphify_root
69
52
  ```
70
53
 
71
- If the import succeeds, print nothing and move straight to Step 2.
54
+ If the import succeeds, print nothing and move straight to Step 2. If it prints the install message, stop and tell the user to install graphify (see https://github.com/safishamsi/graphify) before retrying — do not attempt to install it yourself.
72
55
 
73
56
  **In every subsequent bash block, replace `python3` with `$(cat graphify-out/.graphify_python)` to use the correct interpreter.**
74
57