SKILL.md
Gmail Manager Skill
This skill provides comprehensive Gmail integration through lightweight CLI scripts. All operations are token-efficient and composable.
First-Time Setup
Before using this skill, you must set up OAuth authentication:
-
Install dependencies:
cd ~/.claude/skills/gmail-skill && npm install -
Set up Google Cloud credentials:
- Follow the guide in
docs/google-cloud-setup.md - Download
credentials.jsonand save toscripts/auth/credentials.json
- Follow the guide in
-
Authenticate:
cd ~/.claude/skills/gmail-skill && npm run setup
This will open a browser for Google OAuth and save your token locally.
Multi-Account Support
The Gmail skill supports multiple accounts (e.g., personal and work email):
Add Additional Accounts
# Add a second account (from skill directory)
npm run setup -- --account work
# Add a third account
npm run setup -- --account personal
Each account needs separate OAuth authentication.
Manage Accounts
# List all configured accounts
node scripts/manage-accounts.js --list
# Set default account (used when --account is not specified)
node scripts/manage-accounts.js --set-default work
# Remove an account
node scripts/manage-accounts.js --remove old-account
Using Specific Accounts
All Gmail operations support the --account parameter:
# Send email from work account
node gmail-send.js --account work --to "[email protected]" --subject "..." --body "..."
# Send from personal (or omit --account to use default)
node gmail-send.js --account personal --to "[email protected]" --subject "..." --body "..."
# Search work emails
node gmail-search.js --account work --query "is:unread"
