Skip to content

feat(gmail): add summary command for AI email digests#26

Merged
SiyuQian merged 5 commits intomainfrom
feat/email-summary-command
Mar 9, 2026
Merged

feat(gmail): add summary command for AI email digests#26
SiyuQian merged 5 commits intomainfrom
feat/email-summary-command

Conversation

@SiyuQian
Copy link
Owner

@SiyuQian SiyuQian commented Mar 9, 2026

Summary

  • Add devpilot gmail summary CLI command that fetches unread emails via Gmail API, summarizes them with Claude, and optionally posts to Slack (--channel or --dm)
  • Remove the old email-assistant skill, replaced by the new native CLI command
  • Archive the OpenSpec change and update specs for gmail-commands and gmail-summary

Test Plan

  • Run make test — all new tests in internal/gmail/summary_test.go pass
  • Verify devpilot gmail summary --help shows correct flags
  • Test with --no-mark-read for preview mode
  • Test Slack integration with --channel and --dm flags

🤖 Generated with Claude Code

SiyuQian added 5 commits March 9, 2026 20:29
- Add proposal, design doc, specs, and tasks for `devpilot gmail summary`
- Single CLI command to fetch, summarize via claude -p, deliver to Slack, and mark-read
- Includes specs for gmail-summary and gmail-commands capabilities
- Tasks cover core implementation, tests, and email-assistant skill cleanup
- Fetch today's unread emails, summarize via Claude CLI
- Support --channel and --dm flags for Slack delivery
- Support --no-mark-read for preview mode
- Batch mark processed emails as read
- Remove .openspec.yaml, design.md, proposal.md
- Remove gmail-commands and gmail-summary spec files
- Change has been implemented and is no longer needed
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 41.60584% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.88%. Comparing base (fa8671f) to head (7ec5938).

Files with missing lines Patch % Lines
internal/gmail/commands.go 0.00% 57 Missing ⚠️
internal/gmail/summary.go 71.25% 23 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   42.93%   42.88%   -0.06%     
==========================================
  Files          44       45       +1     
  Lines        3412     3549     +137     
==========================================
+ Hits         1465     1522      +57     
- Misses       1806     1886      +80     
  Partials      141      141              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SiyuQian SiyuQian merged commit bf37232 into main Mar 9, 2026
1 check passed
@SiyuQian SiyuQian deleted the feat/email-summary-command branch March 9, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants