Agent skill
stats
This skill should be used when the user asks for "email stats", "inbox stats", "email analytics", "how many unread", or wants to see inbox metrics. Shows unread count, top senders, oldest unread, and volume trends.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/stats-data-wise-himalaya-mcp
SKILL.md
/email:stats - Inbox Statistics
Get a quick overview of your inbox: unread count, volume, top senders, and oldest unread.
Usage
/email:stats # Current inbox snapshot
/email:stats --weekly # Include week-over-week comparison
/email:stats --folder Sent # Stats for a specific folder
When Invoked
- Call
list_emailswithpage_size: 50to get recent emails - Call
search_emailswithnot flag Seento get unread count - Compute statistics from the results:
- Total unread count
- Today's email count
- Yesterday's email count
- Top senders (by frequency in recent emails)
- Oldest unread email (date and sender)
- If
--weeklyflag: calllist_emailsfor previous week and compare - Display formatted statistics
MCP Tools Used
list_emails— to get recent envelopes and countssearch_emails— to filter by unread status and date ranges
Output Format
📊 Inbox Stats
Unread: 47 (12 today, 8 yesterday)
Total recent: 156 emails (last 7 days)
Top senders:
1. [email protected] — 6 emails
2. [email protected] — 4 emails
3. [email protected] — 3 emails
4. github@notifications — 3 emails
5. [email protected] — 2 emails
Oldest unread: 12 days ago
From: [email protected]
Subject: Benefits enrollment deadline
→ "Read oldest unread" to view it
→ "/email:triage" to classify unread
→ "/email:manage archive" to bulk archive
Weekly Comparison (--weekly)
📊 Inbox Stats (Weekly)
This week Last week Change
Received: 47 52 ↓ 10%
Unread: 12 8 ↑ 50%
Sent: 23 19 ↑ 21%
Top senders this week:
1. [email protected] — 6 emails
...
→ Unread trending up — consider /email:triage
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?