daily-cowork-backup
Installation
SKILL.md
Back up all Cowork-related folders to Google Drive.
Session path note: Cowork VM session names change every run. Do NOT hardcode a session name like
loving-gracious-allen. Instead, discover the active session dynamically (Step 1).
Step 1: Discover session path and read GDrive config
import json, os, glob, sys
# Discover the active session that has the credentials file
candidates = glob.glob('/sessions/*/mnt/Claude/credentials/cowork-gdrive-config.json')
if not candidates:
print('STATUS:NOT_FOUND')
sys.exit(1)
cfg_path = candidates[0]
session_mnt = cfg_path.replace('/Claude/credentials/cowork-gdrive-config.json', '') # e.g. /sessions/abc-xyz/mnt