一键导入
google-workspace-setup
Properly set up Google Workspace OAuth2 authentication for Hermes agent, handling Python environment and module dependencies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Properly set up Google Workspace OAuth2 authentication for Hermes agent, handling Python environment and module dependencies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Integrates Caveman templating engine with RTK (Rust Token Killer) for token-optimized output formatting. Provides a wrapper script and patterns for using Caveman templates to compress CLI output.
Optimize Hermes context usage — expand RTK coverage, prune sessions, manage memory, set up auto-prune cron. Use when token usage is high or RTK coverage is low.
Set up SSH authentication for custom Git hosts (non-standard ports, custom domains, VPN-dependent hosts) with verification workflow and troubleshooting for common connectivity issues.
Manages MySQL services via Homebrew with RTK integration for token optimization. Provides easy start/stop/restart/status commands and monitoring capabilities.
Install and configure Syncthing for folder sync between macOS and Android devices. Covers brew install, service setup, web UI automation for folder creation, device ID extraction, and cross-device pairing instructions. Use when user needs to sync folders between Mac and phone/tablet.
Synchronize Zenith Finance ledger and transactions to Google Sheets with automatic updates. Creates/maintains a spreadsheet with Dashboard (summary, charts) and History (full transaction log) sheets.
| name | google-workspace-setup |
| description | Properly set up Google Workspace OAuth2 authentication for Hermes agent, handling Python environment and module dependencies. |
| version | 1.0.0 |
This skill provides a reliable method to set up Google Workspace OAuth2 authentication for the Hermes agent, addressing common issues with Python module imports and environment configuration.
The standard Google Workspace setup script (setup.py) fails with ModuleNotFoundError: No module named 'hermes_constants' when run directly because:
Always activate the Hermes virtual environment and run the setup script from the hermes-agent directory.
# Copy your downloaded client secret to Hermes Google Workspace skill directory
cp /path/to/downloaded/client_secret_*.json ~/.hermes/skills/productivity/google-workspace/google_client_secret.json
# Change to Hermes agent directory and activate virtual environment
cd ~/.hermes/hermes-agent
source venv/bin/activate
# Run the setup script with your client secret
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --client-secret ~/.hermes/skills/productivity/google-workspace/google_client_secret.json
# You should see: "OK: Client secret saved to /Users/yourname/.hermes/google_client_secret.json"
# Still in the same terminal session (venv activated, in hermes-agent directory)
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --auth-url
# Copy the entire URL output and open it in your browser
# Still in the same terminal session
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --auth-code "PASTE_THE_ENTIRE_URL_FROM_STEP_5_HERE"
# You should see: "OK: Token saved to /Users/yourname/.hermes/google_token.json"
# Still in the same terminal session
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --check
# Should output: "AUTHENTICATED"
After successful setup, you can test Google Workspace access:
# Test Gmail access
python ~/.hermes/skills/productivity/google-workspace/scripts/google_api.py gmail search "is:unread" --max 5
# Test Calendar access
python ~/.hermes/skills/productivity/google-workspace/scripts/google_api.py calendar list
~/.hermes/google_token.json and refreshes automatically--revoke flag then repeat from Step 3ModuleNotFoundError again, you likely left the hermes-agent directory or deactivated the venvOnce Google Workspace is authenticated, the market_alpha_scout skill can successfully:
Common errors and solutions:
ModuleNotFoundError: No module named 'hermes_constants' → Not in hermes-agent directory or venv not activatedFileNotFoundError for client secret → Check file path and permissionsinvalid_grant → Token expired, redo authorization flow403: Insufficient Permission → Missing API scopes, redo OAuth flow with all required APIs enabled