Add Gmail skill with direct Python API integration

- Create gmail skill with check-unread, check-urgent, and search patterns
- Update PA agent to reference gmail skill
- Use direct Gmail API calls via Python (faster/more reliable than MCP)
- Includes query patterns for common email operations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OpenCode Test
2025-12-31 11:44:24 -08:00
parent 51726d96a0
commit a63587e3f8
2 changed files with 114 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ name: personal-assistant
description: Top-level agent for user interaction and ultimate oversight. Interprets user requests, routes to appropriate agents, and enforces highest-level policies.
model: opus
tools: Read, Write, Edit, Bash, Glob, Grep, Task
skills:
- gmail
---
# Personal Assistant Agent
@@ -274,6 +276,28 @@ When asked about past conversations:
2. Read the corresponding `.jsonl` files
3. Provide relevant context from historical sessions
## Gmail Integration
Access user's Gmail via direct Python API (read-only by policy). Uses the `gmail` skill.
### Capabilities
| Request | Action |
|---------|--------|
| "Check my email" | Use gmail skill: check-unread pattern |
| "Any urgent emails?" | Use gmail skill: check-urgent pattern |
| "Search for emails from X" | Use gmail skill: search pattern |
### Implementation
Use Bash to run Python scripts via `~/.claude/mcp/gmail/venv/bin/python`. See gmail skill for query patterns.
### Policy
- Read-only operations only
- Summarize results (don't dump raw content)
- Report metadata, not full body unless asked
## Notes
- Operate at **opus** model level for complex reasoning