atrislabs/atris/email-agent
Claude Code and agent skill by atrislabs/atris
- community
Checking that the SKILL.md file is still in the repository.
Gmail integration via AtrisOS API. Read, send, archive emails. Use when user asks about email, inbox, or wants to send/check messages.
Install
npx vskill@latest install atrislabs/atris/email-agentSKILL.md
Email Agent
Drop this in~/.claude/skills/email-agent/SKILL.mdand Claude Code becomes your email assistant.
choosing a google account
Run atris google accounts to see connected accounts and defaults. Use atris google connect [name] for one sign-in, and add --only mail,calendar,drive to choose products. Use atris google use <name-or-email> to save a default, or add --business <slug> to choose the account for a business. Use atris google disconnect <name-or-email> --approved to disconnect after confirmation, with --only to remove selected products.
For direct api calls, pass account_id as a query parameter on reads and deletes, or in the json body on writes. Pass the business id or slug in the X-Business-Id header when working for a business. Calendar reads without an account include all accounts; account_id=all also requests all calendars. Calendar writes need one account. The old sign-in and api examples below still work on older servers.
Bootstrap (ALWAYS Run First)
Before any email operation, run this bootstrap to ensure everything is set up:
Important: Run this script ONCE before email operations. If it exits with instructions, follow them, then run again.
API Reference
Base: https://api.atris.ai/api/integrations/gmail
All requests require: -H "Authorization: Bearer $TOKEN"
Get Token (after bootstrap)
List Emails
Query syntax (Gmail search):
in:inbox: inbox onlyin:inbox newer_than:1d: today's emailsis:unread: unread onlyfrom:someone@example.com: from specific sendersubject:invoice: subject contains wordhas:attachment: emails with attachments
Read Single Email
Send Email
With CC/BCC:
Reply in thread (IMPORTANT: use this for all replies):
To reply within an existing email thread, you MUST pass thread_id and reply_to_message_id. Without these, Gmail creates a new thread.
thread_id: The thread ID from the original message. Tells Gmail which thread to add this to.reply_to_message_id: The message ID you're replying to. The backend uses this to setIn-Reply-ToandReferencesheaders so Gmail threads it correctly.subject: Must match the original subject with "Re: " prefix.
With attachments:
Drafts
List drafts:
Read a draft:
Create a draft:
Supports same fields as send: cc, bcc, attachments, plus thread_id to attach to an existing thread.
Update a draft:
Send a draft:
Delete a draft:
Mark as Read / Unread
Archive Email
Trash Email
Check Status
Disconnect Gmail
Workflows
"Check my emails"
- Run bootstrap
- List messages:
GET /messages?query=in:inbox%20newer_than:1d&max_results=20 - Display: sender, subject, snippet for each
"Send email to X about Y"
- Run bootstrap
- Draft email content
- Show user the draft for approval
- On approval:
POST /sendwith{to, subject, body} - Confirm: "Email sent!"
"Reply to this email"
- Run bootstrap
- Read the message:
GET /messages/{message_id}, extractid,thread_id,from,subject - Draft reply content
- Show user the reply for approval
- On approval:
POST /sendwith{to, subject: "Re: ...", body, thread_id, reply_to_message_id} - Verify: response
thread_idmatches original thread_id (if it doesn't, something went wrong)
"Clean up my inbox"
- Run bootstrap
- List:
GET /messages?query=in:inbox&max_results=50 - Identify archivable emails (see rules below)
- Show user what will be archived, get approval
- Batch archive:
POST /batch-archive
"Show my drafts"
- Run bootstrap
- List drafts:
GET /gmail/drafts?max_results=20 - Display: to, subject, snippet for each
"Draft an email to X about Y"
- Run bootstrap
- Compose email content
- Show user the draft for review
- On approval:
POST /gmail/draftswith{to, subject, body} - Confirm: "Draft saved! You can find it in Gmail."
"Send draft about X"
- Run bootstrap
- List drafts:
GET /gmail/drafts - Find matching draft by subject/recipient
- Show user the draft content, confirm they want to send it
- Send:
POST /gmail/drafts/{draft_id}/send
"Archive all from [sender]"
- Run bootstrap
- Search:
GET /messages?query=from:{sender} - Collect message IDs
- Confirm with user: "Found N emails from {sender}. Archive all?"
- Batch archive
Auto-Archive Rules
Safe to suggest archiving:
- From:
noreply@,notifications@,newsletter@,no-reply@ - Subject contains: digest, newsletter, notification, weekly update, daily summary
- Marketing: promotional, unsubscribe link present
NEVER auto-archive (always keep):
- Subject contains: invoice, receipt, payment, urgent, action required, password, verification, security
- From known contacts (check if user has replied to them)
- Flagged/starred messages
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingatris/skills/email-agent/SKILL.md
Popularity
- Repository stars
- 58
- Repository forks
- 2
- Repository npm downloads, 7 days
- 256
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/atrislabs/atris/email-agent)