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.
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.
- AI reads both skill files to learn available commands
- Searches Gmail for emails with attachments using
gws - Classifies each email — invoice, contract, photo, spam, etc.
- Downloads invoice PDFs, organizes by vendor in local folders
- Uploads the folder to MEGA using
mega-put - Creates an encrypted share link using
mega-export - Emails the link + spending summary to your accountant using
gws
No scripts. No generated code. Just CLI commands from the skill files.
- GWS CLI —
npm install -g @googleworkspace/cli - Gmail account authenticated:
gws gmail users getProfile --params '{"userId": "me"}'



