From 190471fdc0d07d79dec23daa14c50d6c71eb1da2 Mon Sep 17 00:00:00 2001 From: Zainan Victor Zhou Date: Mon, 6 Apr 2026 13:09:10 -0700 Subject: [PATCH] docs: use HERMES_HOME in google-workspace skill examples - avoid hard-coded ~/.hermes paths in the setup and API shorthands - prefer HERMES_HOME with a sane default to /Users/peteradams/.hermes - keep the examples aligned with profile-aware Hermes installs --- skills/productivity/google-workspace/SKILL.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/skills/productivity/google-workspace/SKILL.md b/skills/productivity/google-workspace/SKILL.md index 6252c671e..60b9693d1 100644 --- a/skills/productivity/google-workspace/SKILL.md +++ b/skills/productivity/google-workspace/SKILL.md @@ -37,7 +37,13 @@ on CLI, Telegram, Discord, or any platform. Define a shorthand first: ```bash -GSETUP="python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py" +HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}" +GWORKSPACE_SKILL_DIR="$HERMES_HOME/skills/productivity/google-workspace" +PYTHON_BIN="${HERMES_PYTHON:-python3}" +if [ -x "$HERMES_HOME/hermes-agent/venv/bin/python" ]; then + PYTHON_BIN="$HERMES_HOME/hermes-agent/venv/bin/python" +fi +GSETUP="$PYTHON_BIN $GWORKSPACE_SKILL_DIR/scripts/setup.py" ``` ### Step 0: Check if already set up @@ -135,7 +141,13 @@ Should print `AUTHENTICATED`. Setup is complete — token refreshes automaticall All commands go through the API script. Set `GAPI` as a shorthand: ```bash -GAPI="python ~/.hermes/skills/productivity/google-workspace/scripts/google_api.py" +HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}" +GWORKSPACE_SKILL_DIR="$HERMES_HOME/skills/productivity/google-workspace" +PYTHON_BIN="${HERMES_PYTHON:-python3}" +if [ -x "$HERMES_HOME/hermes-agent/venv/bin/python" ]; then + PYTHON_BIN="$HERMES_HOME/hermes-agent/venv/bin/python" +fi +GAPI="$PYTHON_BIN $GWORKSPACE_SKILL_DIR/scripts/google_api.py" ``` ### Gmail