Agent skill

Google OAuth Manager

This skill should be used when the user asks about "oauth tokens", "google tokens", "refresh tokens", "token expired", "re-authenticate google", "gmail auth", or needs to manage Google API authentication.

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/ChinchillaEnterprises/ChillSkills/tree/main/google-oauth

SKILL.md

Google OAuth Token Manager

Manage Google OAuth tokens for Gmail and Calendar APIs.

Token Locations

/Users/tori/Desktop/%/AI (Play)/daily-brief/config/tokens/
├── token_jamiepastore_at_gmail_com.json
├── token_jamie_at_peptide_partners.json
└── token_jamie_at_chinchilla-ai_com.json

Health Check

Run token health check:

bash
cd "/Users/tori/Desktop/%/AI (Play)/daily-brief"
./venv/bin/python3 scripts/check_token_health.py

Output:

  • ✅ Valid - Token works
  • ❌ Expired - Needs re-auth
  • ❌ Missing - Token file doesn't exist

Re-Authentication

When tokens expire:

bash
cd "/Users/tori/Desktop/%/AI (Play)/daily-brief"

# Personal account
./venv/bin/python3 scripts/fetch_gmail.py --account jamiepastore@gmail.com --reauth

# Work accounts
./venv/bin/python3 scripts/fetch_gmail.py --account jamie@peptide.partners --reauth
./venv/bin/python3 scripts/fetch_gmail.py --account jamie@chinchilla-ai.com --reauth

Each command opens a browser window - sign in with the correct account.

Token Longevity

Tokens last until:

  • Password change on the Google account
  • Manual revocation in Google account settings
  • Security event (suspicious activity)
  • 6 months of inactivity

Google Cloud Project

Field Value
Project ID sinuous-moment-470219-d5
Project Number 557261198223
Status Production (not Testing)
Budget Alert $1/month limit

Budget Alerts

Budget alert configured:

  • Name: Daily Brief Alert
  • Limit: $1 USD/month
  • Alerts: 50%, 90%, 100%
  • Billing account: 0117CE-AB2F29-E87914

Required APIs

  • Gmail API
  • Google Calendar API
  • Cloud Billing Budget API (for alerts)

OAuth Scopes

python
SCOPES = [
    'https://www.googleapis.com/auth/gmail.readonly',
    'https://www.googleapis.com/auth/calendar.readonly',
    'https://www.googleapis.com/auth/calendar.events'
]

Credentials File

/Users/tori/Desktop/%/AI (Play)/daily-brief/config/google_credentials.json

Common Issues

Issue Solution
Token expired Re-run fetch script with --reauth
Invalid grant Delete token file, re-authenticate
API not enabled Enable in Google Cloud Console
Budget API error Enable billingbudgets.googleapis.com

Expand your agent's capabilities with these related and highly-rated skills.

ChinchillaEnterprises/ChillSkills

Red Team

Use this skill when the user says "red team", "stress test", "attack this", "critique this", "run the models against this", "test this plan", "refine this with AI", or wants to use external AI models to critique, validate, or improve a document, pitch, plan, or idea. Also use when the user wants to save Claude Code usage by offloading analysis to other models.

2 0
Explore
ChinchillaEnterprises/ChillSkills

Upwork Scanner

This skill should be used when the user asks to "scan upwork", "find upwork jobs", "check upwork", "run the scanner", "look for jobs", or mentions finding freelance projects for Chinchilla AI.

2 0
Explore
ChinchillaEnterprises/ChillSkills

Polymarket Arb Scanner

This skill should be used when the user asks to "scan polymarket", "find arb opportunities", "check polymarket arbs", "run arb scanner", "polymarket arbitrage", or mentions detecting price inefficiencies on Polymarket.

2 0
Explore
ChinchillaEnterprises/ChillSkills

captain-update

2 0
Explore
ChinchillaEnterprises/ChillSkills

Polymarket Copy Trader

This skill should be used when the user asks to "copy trade", "telegram bot polymarket", "follow traders", "copy polymarket", or mentions building a copy trading bot for Polymarket.

2 0
Explore
ChinchillaEnterprises/ChillSkills

Architecture Diagram

This skill should be used when the user asks to "generate a diagram", "create an architecture diagram", "make a diagram", "draw a system diagram", or needs a branded Chinchilla AI technical diagram for proposals or documentation.

2 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results