Email monitor

From leopu00/job-hunter-team · View interactive version

Email monitor is an AI agent skill from the GitHub repository leopu00/job-hunter-team. Day-start sourcing from the team's DEDICATED mailbox (the user forwards their own job alerts to it). Highest-accuracy source: the alert is already pre-filtered on the user's intent. IMAP poll of ANY platform (LinkedIn/Glassdoor/Indeed + national/city/niche boards), creates positions with the source

How to use this skill

Skill file

email-monitor — reading forwarded job alerts, at day start

The user creates a dedicated email address (e.g. name.jht@gmail.com) and

sets up forwarding rules in their own client that send us the job alerts

(LinkedIn, Glassdoor, Indeed and any other platform that notifies by mail).

You read that mailbox and turn the alerts into positions. It is the most

accurate source (the alert is already filtered on the target by the user) and

the most token-cheap one (no blind scraping).

📍 Optional but recommended. If it is not configured, the team works as

before (web sourcing). Nothing is blocked.

When

scraping. Overnight alerts are already there.

alerts do not arrive more often). Do not poll more frequently.

<agent> email:<box>` — one Scout only per mailbox, no collisions.

Procedure

1. Is it configured?

python3 /app/shared/skills/email_monitor.py status

configured=false → the mailbox is not there: skip, do normal web sourcing.

admission=whole_mailbox means the entire dedicated inbox is read (every

sender the user forwards); admission=allowlist means only the senders the user

allowed. Either way the mailbox lives in the secrets broker, not in a file you

can open: security mail (password resets, codes, sign-in alerts) is withheld,

and links come back without tracking or tokens. A {"withheld": N} line on

stderr after poll is normal, not an error.

2. Estimate the VOLUME (cheap, no body fetch)

python3 /app/shared/skills/email_monitor.py count

Returns new_total + by_sender. It tells you and the Captain whether this

is a manageable volume or a flood. On a flood, **the Captain (C-16) tells you

how many / which ones to ingest: the goal is that positions reach a score**,

not to pile up 200 that are never evaluated.

3. Poll → leads

python3 /app/shared/skills/email_monitor.py poll --since-days 1

Every JSONL line is a lead: {"url","source","subject","sender","received_at"}.

providers, email:<domain> for any other platform (generic extraction).

re-run does not reprocess the same alerts.

4. For every lead → the 5 gates of `position-insert`

Treat each url exactly like a web hit: dedup (scout_dedup.py) → check the

link is live → fetch the JD → 4 Scout filters → INSERT into positions

(status=new). Keep the lead's --source tag (linkedin-email,

email:<domain>): it is what makes per-source accuracy measurable on the

dashboard. JD is mandatory (SC-02): if you cannot retrieve it, do not invent it.

Balancing (Captain's judgement, C-16)

Reading is free (poll/count), processing up to the score costs. The

decision-maker is the Captain, not a formula:

metadata alone (free): (1) match with the user's profile/target (role or

keyword in the subject/title) and (2) freshness (most recent

received_at). The rest are picked up in the following windows.

thresholds — the Captain decides how many based on the budget.

Anti-patterns

inflates the queue with positions that will never reach a score.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.