scan-inbox

Solid

Classify unscanned mailbox messages, fuzzy-match each to an existing application, and write the proposal back. The user approves in /inbox.

AI & Automation 38 stars 11 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Scan Inbox - Review Pending Email Classify recent email and link each thread to an existing `Application` when there's a confident match. This skill does **not** write `ApplicationEvent` rows or mutate `Application.status` - the user approves from `/inbox`, that's where state changes happen. ## Setup Follow `../../shared/setup.md`. ```bash JOBPILOT_API="${JOBPILOT_API:-https://jobpilot.suxrobgm.net}" ``` ## Phase 1: Confirm Mailbox Connected ```bash curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" "$JOBPILOT_API/api/email/account" ``` If `.connected === false`, stop: > No email account is connected. Open `/profile` → **Email** and connect a Gmail account, then re-run `scan-inbox`. ## Phase 2: Pick the Queue **One message** - an id was passed (a re-scan from the inbox table). Fetch just it and classify it again even if it's already classified or reviewed: ```bash curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" "$JOBPILOT_API/api/email/messages/<id>" ``` **All pending** - no argument. Sync, then pull the unscanned queue: ```bash curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" -X POST "$JOBPILOT_API/api/email/sync" curl -fsS -H "authorization: Bearer $JOBPILOT_API_TOKEN" "$JOBPILOT_API/api/email/messages?reviewStatus=pending&classification=null" ``` If `data` is empty: **"Inbox is already reviewed. Nothing new to classify."** and exit. The rest of the skill runs over whatever you fetched. A re-scan overwrites the classification and rese...

Details

Author
suxrobGM
Repository
suxrobGM/jobpilot
Created
4 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category