← ClaudeAtlas

email-agentlisted

Gmail integration via AtrisOS API. Read, send, archive emails. Use when user asks about email, inbox, or wants to send/check messages.
atrislabs/atris · ★ 67 · AI & Automation · score 72
Install: claude install-skill atrislabs/atris
# Email Agent > Drop this in `~/.claude/skills/email-agent/SKILL.md` and Claude Code becomes your email assistant. ## Bootstrap (ALWAYS Run First) Before any email operation, run this bootstrap to ensure everything is set up: ```bash #!/bin/bash set -e # 1. Check if atris CLI is installed if ! command -v atris &> /dev/null; then echo "Installing atris CLI..." npm install -g atris fi # 2. Check if logged in to AtrisOS if [ ! -f ~/.atris/credentials.json ]; then echo "Not logged in to AtrisOS." echo "" echo "Option 1 (interactive): Run 'atris login' and follow prompts" echo "Option 2 (non-interactive): Get token from https://atris.ai/auth/cli" echo " Then run: atris login --token YOUR_TOKEN" echo "" exit 1 fi # 3. Extract token (try node first, then python3, then jq) if command -v node &> /dev/null; then TOKEN=$(node -e "console.log(require('$HOME/.atris/credentials.json').token)") elif command -v python3 &> /dev/null; then TOKEN=$(python3 -c "import json,os; print(json.load(open(os.path.expanduser('~/.atris/credentials.json')))['token'])") elif command -v jq &> /dev/null; then TOKEN=$(jq -r '.token' ~/.atris/credentials.json) else echo "Error: Need node, python3, or jq to read credentials" exit 1 fi # 4. Check Gmail connection status (also validates token) STATUS=$(curl -s "https://api.atris.ai/api/integrations/gmail/status" \ -H "Authorization: Bearer $TOKEN") # Check for token expiry if echo "$STATUS" | grep -q