Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.59 KB

File metadata and controls

44 lines (28 loc) · 1.59 KB

Gmail → MEGA: Organize Invoices

One prompt: AI scans your Gmail for invoices, downloads them, organizes by vendor in MEGA with end-to-end encryption, creates a share link, and emails a summary to your accountant.

Prompt

Read skills/megacmd.md and skills/gws-gmail.md for available CLI tools.

Search Gmail for emails with "invoice" in the subject from the past 3 months.
Download the invoice PDFs, organize them by vendor in MEGA under /Tax/2026/.
Create a share link and email it with a summary to my accountant at you@example.com.

Demo

Local

Local demo

Local demo result

Cloud

Cloud demo

Cloud demo result

How It Works

  1. AI reads both skill files to learn available commands
  2. Searches Gmail for emails with attachments using gws
  3. Classifies each email — invoice, contract, photo, spam, etc.
  4. Downloads invoice PDFs, organizes by vendor in local folders
  5. Uploads the folder to MEGA using mega-put
  6. Creates an encrypted share link using mega-export
  7. Emails the link + spending summary to your accountant using gws

No scripts. No generated code. Just CLI commands from the skill files.

Additional Requirements

  • GWS CLInpm install -g @googleworkspace/cli
  • Gmail account authenticated: gws gmail users getProfile --params '{"userId": "me"}'