Contact context

From tmargolis/career-navigator · View interactive version

Contact context is an AI agent skill from the GitHub repository tmargolis/career-navigator. Surfaces prior email and Google Calendar / M365 calendar context when tools allow—read-only, user-approved. Includes past and upcoming meetings with a contact for meeting-history awareness and warm-networking identification (e.g. scheduled sync = warm relationship signal). If the user says they sent

How to use this skill

Skill file

Gather evidence-backed context from Gmail / Microsoft 365 (and calendar when the host exposes it) so draft-outreach and writer do not guess about prior conversations.

Meeting history awareness (warm networking identification): When calendar tools are used, retrieve past and scheduled (upcoming) events involving this contact. An upcoming meeting on the calendar is a strong signal the relationship is warm (not cold)—outreach can reference the scheduled time or avoid redundant “first touch” framing. A past meeting without a future one still supports warm follow-up. Label uncertainty in caveats if attendee matching is fuzzy.

Gate (run first)

  1. Connectors: If no Gmail/M365 (inbox) tools and no host calendar tools (e.g. Google Calendar, Outlook/Teams calendar via Microsoft 365) appear in this session, stop and point to CONNECTORS.md and /career-navigator:launch Step 6—do not invent inbox or calendar access.
  2. Explicit approval: Ask once before calling tools—cover what is available, e.g.

> “I can search your mail for threads involving {name or company} [and check your calendar for past and upcoming meetings with them / their email]—read-only. Approve for this request?”

(Include the bracketed calendar sentence only when calendar tools exist and the user wants meeting context.)

If the host exposes only mail or only calendar, ask only for that scope. If no, exit with a short note—no fabricated summaries.

Inputs (ask if missing)

User said they sent — trust them (default)

If the user says they sent an email (or it bounced / failed / wrong address), believe them. Do not spend the session trying to prove delivery or find a bounce/NDR via the Gmail MCP — it is a poor fit for that (operators often don’t apply; results can look like random Inbox/Sent).

Instead, pivot immediately to helping them find a correct email address (or a short list of evidence-backed candidates) for this contact:

  1. tracker.json / profile.md — any stored email, title, or company for this person. Addresses live in the company contacts file, not in tracker.json: find the company's summary row, load {user_dir}/CareerNavigator/ + its contacts_file, and filter contacts[] to entries whose application equals that row's application label. Check every application at that company before concluding nothing is on file, and dedupe by name.
  2. Mail search that does work on MCP: plain Firstname Lastname, company, to: / from: with a simple address or domain (one clause at a time). Look at Sent and Inbox for real threads (signatures, forwards, calendar invites), not mailer-daemon unless the user explicitly asks you to hunt a bounce.
  3. Reasonable variants — alternate domains (parent vs subsidiary), first.last, firstlast, flast — label each as guess vs cited from a source.
  4. Ask the user to paste an address from LinkedIn, the company site, or a prior reply when the connector can’t confirm.
  5. Put candidates and confidence in email_address_notes; explain in search_method_notes that bounce search was skipped (MCP limitation) and the user’s send attempt is taken at their word.

Optional bounce lookup: Only if the user explicitly asks you to find the bounce message and approves spending time on it: try from:mailer-daemon (single token) and read a few recent system messages for this address/name — but do not treat “no result” as proof of anything. Prefer the user pasting the bounce from Gmail web if needed.

Name search (when the thread isn’t found)

If step 2 (below) doesn’t surface a clear thread, search mail for the contact’s full name as plain text (e.g. Jordan Kim), then name + company. Prefer All Mail / broad scope when the tool allows.

Workflow

Application data uses the split layout defined in references/tracker-schema.md — read it before any read or write.

  1. Read {user_dir}/CareerNavigator/profile.md, tracker.json (summary rows), the matching company contacts file, and networking.json (networking[], recruiter_relationships[]) for any known facts about this person—do not contradict tracker evidence.

Contacts lookup (do this, not applications[].contacts[] — that array no longer exists):

1. In tracker.json, find the summary row(s) for the contact's company.

2. Take contacts_file from the row and load {user_dir}/CareerNavigator/ + that path (contacts/<company-slug>.json). Never derive the slug yourself; a row with no contacts_file has no contacts on file.

3. Filter the file's contacts[] to entries whose application equals that row's application label ("<company> — <role>"). One company file serves every application at that company, so unfiltered entries belong to other roles.

4. When the contact may span several applications at the company, gather the matches across each relevant row and dedupe by name before presenting or summarizing—the same person gets one entry per application.

5. Pull title, relationship, notes, and prior interactions[] (dates, types) from the matched entries as the known facts baseline.

For stage or note context (e.g. "we met at the onsite"), read the row's detail_file (applications/<application_id>.json) — and only for the applications actually in play. The row's latest_stage, latest_stage_date, notes_count, and stage_count usually answer the question without opening anything.

If inbox tools are missing in this session, skip mail search below and note in caveats. If calendar tools are missing, skip the calendar step and set calendar_notes, upcoming_meetings, and warm_networking to "—" or not searched — no calendar tools as appropriate.

  1. With approval, use host Gmail / Microsoft 365 tools to search and read relevant threads (by address, domain, company, plain name). Read-only: do not send, draft, or delete mail. Skip if step 1 determined there are no inbox tools.
  2. Calendar (when tools exist and approval includes calendar): Use Google Calendar and/or Microsoft 365 calendar tools to find events where the contact appears as attendee (email match) or title/description/location plausibly reference the person or company. Cover:

Read-only: do not create, move, or delete events unless the user explicitly asks outside this skill’s scope.

  1. If the user says they sent mail (failed delivery, wrong address, or “I already emailed them”): follow “User said they sent — trust them (default)” above — address resolution first; no mandatory bounce/NDR hunt via MCP.
  2. Name fallback: If mail search did not surface a clear thread and the user did not frame this as “I sent / bad address,” run “Name search (when the thread isn’t found)” above.
  3. Summarize neutrally: who wrote last, dates, commitments, open loops, tone; plus any calendar findings (past calls/interviews; upcoming scheduled meetings—highlight these for warm identification). Quote sparingly; prefer bullets.
  4. Emit a ContactContextBrief (markdown block below) for writer / draft-outreach.
  5. Offer: “Want draft-outreach next with this context folded in?” If yes, pass the brief into the next step (user can run /career-navigator:draft-outreach or continue in chat).

ContactContextBrief (output block)

## ContactContextBrief
- **contact:** {name or best label}
- **company:** {company or "—"}
- **sources_used:** gmail | microsoft_365 | calendar | none (list all that were actually queried)
- **as_of:** {YYYY-MM-DD}
- **summary:** {2–6 bullets: substance of prior exchanges and, if used, calendar context}
- **calendar_notes:** {**Past** meetings with this contact—dates, titles, commitments from descriptions—or "—" if none}
- **upcoming_meetings:** {**Scheduled** future events with this contact—date, time if known, title—or "—" if none / not searched}
- **warm_networking:** {one line: e.g. `warm — upcoming meeting scheduled` | `warm — past 1:1 only` | `uncertain — calendar partial` | `cold — no calendar match`}
- **open_loops:** {promises, unanswered threads, deadlines mentioned—in mail or calendar; include prep/follow-up for **upcoming** meetings when relevant}
- **hooks_for_writer:** {3 bullets—factual, safe to reference in outreach}
- **email_address_notes:** {candidate addresses for this contact—evidence-backed vs tentative—or "—"}
- **search_method_notes:** {e.g. user confirmed they sent mail; bounce hunt skipped; MCP limits—or "—"}
- **caveats:** {e.g. partial search, connector limits}

Constraints

Scheduling

Optional /schedule before high-stakes outreach weeks; usually on-demand before draft-outreach.

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.