Newsのロゴ

News

コミュニティ
galiprandi
news

Reviews job application updates from Gmail, LinkedIn and platforms. Prepares drafts, presents executive summary by priority, validates with the user and sends replies.

Add to TypingMind

概要

公開者galiprandi
リポジトリjob-seeker
スキル名news
スター
68
フォーク
11
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    galiprandiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「News」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/galiprandi/job-seeker/tree/main/.agents/skills/news
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/galiprandi/job-seeker.git /tmp/job-seeker
mkdir -p .claude/skills
cp -r /tmp/job-seeker/.agents/skills/news .claude/skills/news
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでNewsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にNewsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Newsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

News

Trigger

Keyword: news

The user says news (or variants: "updates", "check", "any updates") and the full review routine is automatically triggered. No further instructions needed — the agent executes the entire flow from start to finish.

Also runs in parallel when the user launches an application.

Flow

0. Pre-flight

  • Verify active LinkedIn and Gmail sessions. If session closed → open browser with wrapper (see AGENTS.md "Browser session"): node .agents/skills/browser-automation/scripts/browser.js open <url> --headed (Gold Rule 5) → notify user → wait for confirmation
  • Browser: always use node .agents/skills/browser-automation/scripts/browser.js for open/close/goto. See AGENTS.md "Browser session" for details. Never call agent-browser open directly, never open Chrome directly
  • Load active preferences (see memory skill):
    bash
    node scripts/db.js "SELECT category, key, value, confidence, source FROM preferences WHERE user_id = <user_id> AND status = 'active' ORDER BY category, key"
  • Load strategy (see AGENTS.md "Strategy levels"):
    bash
    node scripts/db.js "SELECT data->'strategy' AS strategy FROM users WHERE id = <user_id>"
    Respect: follow_up_days (days before sending follow-up), cold_outreach (whether to send cold messages to recruiters). If news not in sources_active, warn the user

1. Collect updates (in parallel)

Parallelization strategy: when subagents are available, dispatch background subagents (subagent_general) per source to collect updates simultaneously. Each subagent returns a structured list of items (sender, subject, snippet, category guess, action items, scheduling links if any). The main agent then merges and classifies. If subagents are not available (e.g: single-session constraint), fall back to sequential collection.

Subagent dispatch pattern:

┌─────────────────────────────────────────────────────┐
│  Main agent (orchestrator)                          │
│  - Loads preferences, strategy, availability        │
│  - Dispatches subagents in parallel                 │
│  - Merges results, classifies, presents summary     │
├─────────────────────────────────────────────────────┤
│  Subagent A (Gmail)     Subagent B (LinkedIn)       │
│  - Inbox unread         - Messages unread           │
│  - Job Alerts folder    - Notifications             │
│  - Extract sched links  - Saved Jobs                │
│  - Returns JSON list    - Returns JSON list         │
├─────────────────────────────────────────────────────┤
│  Subagent C (DB)        Subagent D (Sched links)    │
│  - Pending follow-ups   - Opens each Calendly/SR   │
│  - Pipeline stages      - Filters by availability   │
│  - Returns JSON list    - Returns slot table        │
└─────────────────────────────────────────────────────┘

Important: to avoid conflicts between subagents, give each one its own agent-browser --session (sessions are created implicitly by the flag — see AGENTS.md "Parallel execution"):

  • Gmail subagent: node .agents/skills/browser-automation/scripts/browser.js open <url> then run all its commands via exec <cmd> --session news-gmail
  • LinkedIn subagent: same pattern with --session news-linkedin
  • Alternatively, use separate tabs within the same session (tab-new) if subagents can't use separate sessions
  • DB subagent doesn't need browser, only scripts/db.js
  • Scheduling link subagent: same pattern with --session news-sched
  • When done: just stop using the session (or exec close --session news-gmail for that session only — never close-all, which kills the browser for other agents)

If subagents are NOT available (e.g: tool not supported, single foreground agent constraint), fall back to sequential collection as before. The flow must work in both modes.

Subagent prompt template (adapt per source):

You are a job search assistant. Collect updates from <source> and return a structured list.

Context:
- Last review: <last_review_at>
- User profile: <profile summary from DB>
- Strategy: <strategy level and params>

Instructions:
1. Open <url> using: node .agents/skills/browser-automation/scripts/browser.js open <url> (from the repo root directory)
2. <source-specific steps: read unread messages, extract sender/subject/snippet/date>
3. For each item, identify: sender, subject, date, snippet (first 200 chars), category guess (interview/offer/recruiter_new/recruiter_reply/rejected/newsletter/new_job), action items (calendar link? CV requested? form to fill?), and any scheduling URLs
4. Return a markdown table with all items found. Do NOT reply to anything, do NOT archive, do NOT click scheduling links (just extract the URL)
5. Close the tab when done

Return format:
| # | Sender | Subject | Date | Category | Action items | Scheduling URL |

Sources to collect (dispatch as parallel subagents when possible, sequential otherwise):

  • Gmail inbox: search for unread emails since last review. Filter: everything related to job search and job sites (recruiters, HR, platforms, newsletters with jobs, application responses). Ignore obvious spam. Save last_review_at to DB to know since when to search
  • Gmail Job Alerts folder: check Job Alerts label (alerts from platforms configured via radar skill). Classify each alert by fit: Must/Strong/Nice per PROFILE.md. Only present Must and Strong in the summary. Ignore Nice unless user asks to see all
  • LinkedIn messages: unread messages in inbox. Filter recruiters, HR, application responses
  • LinkedIn notifications: application notifications (status changes, recruiter messages)
  • LinkedIn Saved Jobs: navigate to https://www.linkedin.com/my-items/saved-jobs/. For each saved job: check if still open, evaluate fit against profile (Must/Strong/Nice), check if already applied (query DB by URL or company+role). Present Must/Strong matches in summary as new_job_must/new_job_strong. If user already applied, skip. If job is closed, mark as closed and remove from saved
  • Platforms: only if there are pending applications in DB. Navigate to each platform, check status of existing applications
  • Pending follow-ups: query DB for applications without response after X days (contextual: 3 days for urgent, 5 for normal, 7 for cold)
  • Staged referral & outreach drafts: query DB for drafts staged by the referrals flow (or by step 2.5 of apply/targets) that are still pending user approval:
    bash
    node scripts/db.js "SELECT id, channel, sender, subject, draft, data FROM messages WHERE user_id = <user_id> AND status = 'draft' AND direction = 'outbound' AND (data->>'category') IN ('referral_request', 'recruiter_outreach') ORDER BY received_at DESC"
    For each staged draft: present it in the summary under its category (referral_request or recruiter_outreach) with the contact name, company, and the draft text. User can approve (send via LinkedIn DM), edit, or reject. This is where warm-sourcing drafts become actionable — the referrals flow stages them, news surfaces them for approval and sends them.
  • Scheduling links (parallel subagent): if any email or message contains a scheduling link (Calendly, SmartRecruiters self-schedule, Workable, HubSpot meetings, etc.), dispatch a background subagent (subagent_general) to open each link, read available slots, and filter them against users.data.availability (preferred_hours, timezone, blocked days). The subagent returns a filtered list of slots that match the user's preferences. This runs in parallel with the rest of the news flow so the user doesn't wait. The subagent prompt must include:
    • The scheduling URL(s) found
    • The user's availability preferences from DB (load before dispatching)
    • Instructions: open each link with node .agents/skills/browser-automation/scripts/browser.js open <url>, take snapshot, extract all available time slots, filter by preferred_hours and blocked days, return a markdown table of matching slots sorted by day then time
    • The browser wrapper must be used (Gold Rule). The subagent should NOT book a slot, only list filtered options

2. Classify and prioritize

Each item is classified into a category and assigned contextual priority:

CategoryDescriptionDefault priority
interviewInterview invitation, schedulingHigh
offerJob offer, salary proposalHigh
recruiter_newNew recruiter outreach (no prior application)Medium
recruiter_replyRecruiter reply to an applicationMedium
referral_requestStaged referral request draft awaiting approval (from referrals flow)Medium-High
recruiter_outreachStaged cold recruiter outreach DM awaiting approval (from referrals flow)Medium
follow_upApplication without response, needs following upMedium-Low
rejectedApplication rejectionLow
new_job_mustNew job matching Must-haveMedium-High
new_job_strongNew job matching StrongMedium
new_job_niceNew job matching NiceLow
newsletterNewsletter with relevant jobsLow

Contextual priority adjusts based on:

  • Salary vs expectation (higher than expected → raises priority)
  • Profile fit (AI Strategy + Manager + remote → raises)
  • Time urgency (interview in 24h → high)
  • Process stage (more advanced → higher priority)

3. Prepare drafts

Gold Rule 6: ALWAYS show draft to user before sending. Never send without approval.

For each item that requires a response:

  1. Extract action items from the original message — before researching anything, parse the message and list what concrete actions the sender requests: is there a calendar link? do they ask for a CV? do they ask to fill out a form? do they ask to schedule? Highlight immediate actions (e.g: "there's a Google Calendar link, you can schedule now") vs actions requiring a decision (e.g: "they ask to confirm interest")
  2. Research the company (web search): what they do, size, funding, culture, stack if visible
  3. Analyze fit with user's profile (goal #1: AI workflows, goal #2: Manager sacrificable)
  4. Prepare draft using user's style (warm, direct, in Spanish or English depending on context)

Draft types:

  • interview: confirm + propose 2-3 time slots based on user availability
  • offer: thank + ask for details (salary, benefits, equity, start date) before negotiating
  • recruiter_new: express interest or decline based on profile fit. If interested, share availability. Mention something specific about the researched company
  • recruiter_reply: respond based on context (schedule, send additional info, negotiate)
  • referral_request: draft already staged by referrals flow — present as-is for approval. If user edits, update the messages.draft field before sending. Send via LinkedIn DM to the contact's vanity. Pass Gold Rule 7 checklist before showing.
  • recruiter_outreach: draft already staged by referrals flow — present as-is for approval. If user edits, update messages.draft before sending. Send via LinkedIn DM. Pass Gold Rule 7 checklist before showing.
  • follow_up: brief message reminding about the application and reiterating interest
  • rejected: thank + keep door open (optional, only if company is of interest)
  • new_job_must: prepare complete application (cover letter + CV) for auto-apply
  • new_job_strong/nice: only list in summary, don't prepare draft

Drafts are saved to messages.draft as JSONB.

4. Executive summary

Present to user ordered by priority (high → low).

Template for promising proposal (new recruiter outreach with JD + action items):

🎉 Promising proposal: [Role] at [Company]

Company: [what they do, size, funding, partners, expansion]
Fit: [Excellent/Good/Fair. Why]
Reports to: [CTO/VP Eng/etc]
Compensation: [Not mentioned / $X]
Work mode: [Not mentioned / Remote / Hybrid]

📆 Calendar to book: [link]
📎 JD: Read ([key points of the role in 1 line])

Want me to research more about [Company]?
Want me to prepare a reply draft?

Format for remaining items (ordered by priority):

## Updates summary (12 items)

### High priority (3)
1. [interview] Google - Engineering Manager AI - Technical interview Tuesday 15:00
   → Draft: confirm + propose time slots
   → [Approve] [Edit] [Reject]

2. [offer] Stripe - $7k/mo - Offer with 0.1% equity
   → Draft: thank + ask for details
   → [Approve] [Edit] [Reject]

3. [interview] Remote - AI Strategy Lead - Recruiter screening Thursday
   → Draft: confirm + propose time slots
   → [Approve] [Edit] [Reject]

### Medium priority (5)
4. [recruiter_new] Meta - Recruiter outreach for Staff EM
   → Draft: express interest
   → [Approve] [Edit] [Reject]
...

### Low priority (4)
10-12. [rejected] 3 rejections (Mercado Libre, Globant, Bumeran)
   → [Batch: thank all] [Ignore]

13. [newsletter] Get on Board - 15 new jobs this week
   → [View jobs] [Ignore]

5. Hybrid validation

  • One by one for high priority (interview, offer): user approves, edits, or rejects each draft individually
  • Batch for medium and low priority: user can approve all items in a category with one action
  • Auto-apply Must-match: agent applies automatically and notifies in the summary
  • If user edits a draft → update before sending
  • If user rejects → mark as ignored in DB

6. Sending

  • After approval (individual or batch), agent sends automatically
  • Gmail: reply to email or send new
  • LinkedIn: reply to message or send DM
  • Platforms: complete application form
  • Record send in DB (messages.sent_at, messages.status = sent)

7. Cleanup

  • Delete irrelevant emails (rejections, non-relevant job alerts, marketing) — ask user before batch deleting
  • Archive emails already replied to or processed
  • Mark as spam recurring job alerts if user requests it

8. Close

  • Update last_review_at in DB
  • Update application stages based on responses received. Use pipeline.js --move <id> <stage> instead of direct UPDATE to keep the audit trail in data.stage_history. Canonical stages: discovered, contacted, applied, in_review, screening, interview, offer, hired, rejected, withdrawn, skipped. See AGENTS.md "Pipeline kanban"
  • Report to user: "Sent 5 replies, 2 automatic applications, 3 items ignored, 8 emails deleted"

DB access

All DB access via scripts/db.js (see db skill). Read-only by default, --write for inserts/updates.

Schema (create on first run with --write):

bash
node scripts/db.js "CREATE TABLE IF NOT EXISTS applications (id SERIAL PRIMARY KEY, user_id INTEGER REFERENCES users(id), platform TEXT, company TEXT, role TEXT, url TEXT, status TEXT DEFAULT 'applied', applied_at TIMESTAMPTZ DEFAULT NOW(), data JSONB DEFAULT '{}')" --write

node scripts/db.js "CREATE TABLE IF NOT EXISTS messages (id SERIAL PRIMARY KEY, application_id INTEGER REFERENCES applications(id) NULL, user_id INTEGER REFERENCES users(id), channel TEXT, direction TEXT, sender TEXT, subject TEXT, body TEXT, draft TEXT, status TEXT DEFAULT 'pending', received_at TIMESTAMPTZ, sent_at TIMESTAMPTZ, data JSONB DEFAULT '{}')" --write

Typical queries:

bash
# Pending follow-ups
node scripts/db.js "SELECT id, company, role, applied_at FROM applications WHERE user_id = <user_id> AND status = 'applied' AND applied_at < NOW() - INTERVAL '5 days'"

# Save a draft
node scripts/db.js "INSERT INTO messages (user_id, channel, direction, sender, subject, body, draft, status, received_at) VALUES (<user_id>, 'gmail', 'inbound', '<sender>', '<subject>', '<body>', '<draft>', 'draft', NOW())" --write

# Mark sent
node scripts/db.js "UPDATE messages SET status = 'sent', sent_at = NOW() WHERE id = <id>" --write

# Update last_review_at
node scripts/db.js "UPDATE users SET data = jsonb_set(data, '{last_review_at}', '\"<iso>\"') WHERE id = <user_id>" --write

users.data.last_review_at (JSONB) tracks the last review timestamp.

Rules

  • Run sources in parallel to minimize time
  • Drafts always use style_profile from DB
  • Follow-up timing is contextual: 3 days urgent, 5 normal, 7 cold
  • Auto-apply only Must-match. Strong and Nice are listed, not applied
  • Gmail filter: everything related to job search and job sites
  • Platforms: only check if there are pending applications in DB
  • Persist everything: applications, messages, drafts, sends
  • last_review_at in users.data to know since when to search
  • If no updates: reply "No updates. Last review: [date]"
  • Single user (repo owner)

LinkedIn learnings

  • LinkedIn uses tiptap editor — refs change after every action. ALWAYS take a new snapshot before interacting
  • Messages: navigate to linkedin.com/messaging/ → snapshot → look for unread conversations
  • Notifications: navigate to linkedin.com/notifications/ → snapshot
  • mcp6_send_message and mcp6_connect_with_person require confirm_send: true (if using LinkedIn MCP)

Voyager GraphQL inbox endpoint (bulk fetch — PREFERRED over UI scraping)

Use this instead of opening conversations one by one. One HTTP call returns ALL conversations with participants, unread count, last message preview, and last activity timestamp.

Script: scripts/linkedin-inbox.js — run via:

bash
node .agents/skills/browser-automation/scripts/browser.js tab-new "https://www.linkedin.com/messaging/" --name linkedin
sleep 3
node .agents/skills/browser-automation/scripts/browser.js exec eval --tab linkedin "$(cat scripts/linkedin-inbox.js)"

Returns JSON array: [{participants, unreadCount, lastActivityAt, lastMessage: {text, deliveredAt, isFromSelf}, threadId}, ...]

How it works:

  • Endpoint: GET /voyager/api/voyagerMessagingGraphQL/graphql?queryId=messengerConversations.<ID>&variables=(mailboxUrn:urn%3Ali%3Afsd_profile%3A<selfId>)
  • Headers: csrf-token (from JSESSIONID cookie, stripped of quotes), accept: application/vnd.linkedin.normalized+json+2.1, x-restli-protocol-version: 2.0.0
  • Runs inside page.evaluate() so it has all cookies automatically (no need to extract li_at)
  • Query ID changes over time. To find the current one: intercept network requests via performance.getEntriesByType('resource') and grep for messengerConversations
  • Self fsd_profile_id: extract from HTML via document.documentElement.outerHTML.match(/ACoAA[A-Za-z0-9_-]{5,}/g) (most frequent match)

Decision logic after fetch:

  • unreadCount > 0 → open that thread in UI to read full message and respond
  • lastMessage.isFromSelf === true → waiting for reply, no action needed
  • lastMessage.isFromSelf === false AND unreadCount === 0 → already read but no reply sent (may need follow-up)
  • lastActivityAt → compare against last_review_at to detect new activity since last run
  • threadId → extract the 2-XXXXX part for direct navigation: https://www.linkedin.com/messaging/thread/<threadId>/

Important: The query ID (messengerConversations.0d5e6781bbee71c3e51c8843c6519f48) was valid as of Aug 2026. If the endpoint returns HTML instead of JSON, the query ID is stale. Re-extract it from performance.getEntriesByType('resource') after loading the messaging page.

Voyager send message endpoint (text + attachments)

Use this to send messages without opening the compose UI. Supports text-only and text+attachment, new conversations and replies.

Script: scripts/linkedin-send.js — unified script. Edit MODE, RECIPIENT_ID/THREAD_ID, MESSAGE_TEXT, and FILE_B64 (base64-encoded file, empty = no attachment), then:

bash
node .agents/skills/browser-automation/scripts/browser.js exec eval --tab linkedin "$(cat scripts/linkedin-send.js)"

Text-only — new conversation (legacy endpoint):

  • Endpoint: POST /voyager/api/messaging/conversations?action=create
  • Headers: csrf-token, x-restli-protocol-version: 2.0.0, accept: application/vnd.linkedin.normalized+json+2.1, content-type: application/json
  • Body: {"keyVersion":"LEGACY_INBOX","conversationCreate":{"eventCreate":{"value":{"com.linkedin.voyager.messaging.create.MessageCreate":{"attributedBody":{"text":"...","attributes":[]},"attachments":[]}}},"recipients":["<fsd_profile_id>"],"subtype":"MEMBER_TO_MEMBER"}}
  • Returns: {"data":{"value":{"createdAt":...,"conversationUrn":"urn:li:fs_conversation:2-...","backendConversationUrn":"urn:li:messagingThread:2-..."}}}
  • The 2-XXXXX part of conversationUrn is the THREAD_ID for future replies

Text-only — reply (legacy endpoint):

  • Endpoint: POST /voyager/api/messaging/conversations/{chatId}/events?action=create
  • chatId = the 2-XXXXX part of the threadId (URL-encoded)
  • Body: {"eventCreate":{"value":{"com.linkedin.voyager.messaging.create.MessageCreate":{"attributedBody":{"text":"...","attributes":[]},"attachments":[]}}}}

With attachment — dash endpoint (WORKS, tested Aug 2026):

  • Endpoint: POST /voyager/api/voyagerMessagingDashMessengerMessages?action=createMessage
  • Headers: csrf-token, x-restli-protocol-version: 2.0.0, accept: application/json, content-type: text/plain;charset=UTF-8 (NOT application/json)
  • conversationUrn format: urn:li:msg_conversation:(urn:li:fsd_profile:<self_id>,<thread_id>)
  • trackingId: 16 random bytes as string (binary, NOT a string UUID)
  • originToken: standard UUID v4
  • Body:
json
{
  "message": {
    "body": {"attributes": [], "text": "..."},
    "renderContentUnions": [
      {
        "file": {
          "assetUrn": "urn:li:digitalmediaAsset:...",
          "byteSize": <bytes>,
          "mediaType": "application/pdf",
          "name": "filename.pdf",
          "url": "blob:https://www.linkedin.com/<uuid>"
        }
      }
    ],
    "conversationUrn": "urn:li:msg_conversation:(urn:li:fsd_profile:<self_id>,<thread_id>)",
    "originToken": "<uuid-v4>"
  },
  "mailboxUrn": "urn:li:fsd_profile:<self_id>",
  "trackingId": "<16 binary bytes>",
  "dedupeByClientGeneratedToken": false
}
  • The url field is a blob: URL created via URL.createObjectURL(fileBlob). It is required by the API even though it's a client-side URL.
  • The attachment goes in renderContentUnions, NOT in attachments. The attachments field is silently dropped by the dash endpoint.
  • Returns: {"value":{"entityUrn":"urn:li:msg_message:...","backendConversationUrn":"urn:li:messagingThread:...","deliveredAt":...,"renderContentUnions":[{"file":{...}}]}}

Recipient format: fsd_profile_id (e.g. ACoAA...). Extract from profile page HTML: document.documentElement.outerHTML.match(/ACoAA[A-Za-z0-9_-]{5,}/g) (most frequent match, excluding self).

Self profile ID: same regex, most frequent match in the page HTML.

Voyager upload attachment endpoint

Upload flow (3 steps):

Step 1 — Register upload:

  • Endpoint: POST /voyager/api/voyagerVideoDashMediaUploadMetadata?action=upload
  • Body: {"mediaUploadType":"MESSAGING_FILE_ATTACHMENT","fileSize":<bytes>,"filename":"<name>"}
  • Returns: {"data":{"value":{"urn":"urn:li:digitalmediaAsset:...","mediaArtifactUrn":"urn:li:digitalmediaMediaArtifact:(...)","singleUploadUrl":"https://www.linkedin.com/dms-uploads/...","pollingUrl":"https://www.linkedin.com/dms/processStatus/..."}}}

Step 2 — Upload binary:

  • PUT to singleUploadUrl with Content-Type: application/pdf (or appropriate MIME) and raw file bytes as body
  • Returns HTTP 201 on success

Step 3 — Wait for processing:

  • Wait 2-3 seconds, or GET the pollingUrl until status["urn:li:digitalmediaRecipe:messaging-document"] is AVAILABLE
  • The asset does NOT need to be AVAILABLE before sending — the dash endpoint accepts it immediately after upload

Script: scripts/linkedin-upload.js — register-only script (step 1). For the full flow (register + upload + send), use scripts/linkedin-send.js with FILE_B64 set.

Attach file (UI flow — fallback)

If the endpoint flow fails (e.g. LinkedIn changes the dash schema), use the UI:

  1. Navigate to the conversation thread
  2. Take snapshot, find button "Attach a file to your conversation with <name>" ref
  3. Click it → file chooser opens
  4. node .agents/skills/browser-automation/scripts/browser.js exec upload "<file_path>" --tab linkedin
  5. Wait 3s for upload to process
  6. Fill the textbox with the message text
  7. Take snapshot, verify Send button is enabled ([cursor=pointer])
  8. Click Send
  9. Verify message appears in the thread

Attach buttons only appear when a conversation is open (not in the messaging overlay/list view). Navigate to a specific thread first.

Tiptap editor (compose message)

  • fill with the textbox ref works for writing text into tiptap. Example: node .agents/skills/browser-automation/scripts/browser.js exec fill @e770 "message text" --tab linkedin. This is the reliable method
  • type without a ref does NOT work — it types into whatever is focused but tiptap's contenteditable doesn't always receive it. Always use fill <ref> instead
  • type <text> (positional, no ref) fails with multiline text — the CLI parses it as multiple arguments. Never use type for LinkedIn messages
  • The snapshot does NOT show typed text inline — tiptap paragraphs appear empty (@eN [paragraph] with no text). To verify text was entered, use eval: node .agents/skills/browser-automation/scripts/browser.js exec eval --tab linkedin "document.querySelector('[contenteditable=true]')?.innerText?.substring(0,300)"
  • Send button: starts disabled, becomes enabled ([cursor=pointer]) when there is text OR an attachment. Check with grep: exec snapshot -i | grep -i send
  • Internal paragraph refs inside the textbox (e.g. e860, e861) are NOT stable — they change after every action and clicking them often fails with "Ref not found". Always interact with the textbox ref itself, not its children

Attachments (CV / files)

  • Attach a file: click the "Attach a file" button → a file chooser opens ([File chooser]: can be handled by upload) → use node .agents/skills/browser-automation/scripts/browser.js exec upload 'input[type="file"]' "/path/to/file.pdf" --tab linkedin
  • Verify attachment: after upload, the snapshot shows figure "filename.pdf • XXX KB Attached" with a heading and a remove button
  • Attachment persists across snapshots and text editing — no need to re-attach after writing the message
  • Send with attachment: the Send button enables with attachment alone (even before text). Always verify both text (via eval) and attachment (via snapshot grep) before clicking Send

Conversation list

  • Filter by unread: click the "Unread" button (ref changes per snapshot) to see only unread conversations. If "No unread messages" appears, there are none
  • Search by name: fill the "Search messages" searchbox with the sender name, press Enter, then click the matching conversation heading
  • Conversation previews: the list shows last message preview (paragraph under each heading level=3). "You:" prefix means the user sent the last message (waiting for reply). Sender name without "You:" means they sent last (may need action)
  • Thread URL pattern: https://www.linkedin.com/messaging/thread/2-XXXXX/ — the ID is stable per conversation and can be stored in DB for direct navigation

Verified send flow (Aug 2026)

  1. Navigate to conversation (click heading in list or goto thread URL)
  2. Take snapshot, find "Attach a file" button ref
  3. Click it → file chooser opens
  4. exec upload 'input[type="file"]' "/path/to/file.pdf" → attachment appears in snapshot
  5. Take new snapshot, find textbox ref (e.g. @e77)
  6. exec fill @e77 "message text" (use \n for line breaks, works in tiptap)
  7. Verify text via eval (innerText)
  8. Verify Send button is NOT disabled
  9. Click Send button
  10. Verify " sent the following messages" appears in snapshot

Email delivery

SMTP is preferred (reliability + speed)

SMTP via nodemailer is the preferred method for sending outbound email. It has no UI dependency, is faster, and more reliable than browser automation.

  1. Generate an app password in the provider (e.g., Gmail: https://myaccount.google.com/apppasswords)
  2. Add to .env (never commit .env):
    SMTP_HOST=smtp.gmail.com
    SMTP_PORT=465
    SMTP_SECURE=true
    SMTP_USER=you@example.com
    SMTP_PASS=your-app-password
  3. Send:
    node scripts/send-email.js --to someone@example.com --subject "Subject" --body "Message"
  4. For outreach to contacts in the DB, build on top of sendEmail() from scripts/send-email.js and mark outreach_contacts.status = 'contacted' after successful delivery.

Browser is a fallback (when SMTP is not configured)

The browser CAN send emails. Compose is div[role=dialog] in the main document and all elements are accessible via agent-browser (exec commands).

When to use browser email:

  • SMTP is not configured (no .env app password)
  • SMTP fails and a fallback is needed
  • The flow requires attaching a CV from the browser session

When NOT to use browser email:

  • SMTP is available (always prefer SMTP for reliability and speed)
  • Bulk sending (SMTP is much faster, no UI rendering per message)

Script reference

scripts/send-email.js -- Send emails via SMTP (preferred)

Uses nodemailer with SMTP app password. No browser dependency. Faster and more reliable than gmail-send.js.

bash
node scripts/send-email.js --to someone@example.com --subject "Subject" --body "Message"

Requires SMTP credentials in .env (see "Email delivery" section above).

scripts/linkedin-send.js -- Send LinkedIn messages with optional attachments

Unified CLI for sending LinkedIn messages via Voyager API. Supports replies (by thread ID), new conversations (by recipient fsd_profile_id), text-only, and text+attachment.

bash
# Reply (text only)
node scripts/linkedin-send.js --thread "2-XXXX==" --text "Hello"

# Reply with attachment
node scripts/linkedin-send.js --thread "2-XXXX==" --text "Here is my CV" --file /path/to/cv.pdf

# New conversation (text only)
node scripts/linkedin-send.js --recipient "ACoAA123" --text "Hi, nice to connect"

# New conversation with attachment
node scripts/linkedin-send.js --recipient "ACoAA123" --text "Here is my CV" --file /path/to/cv.pdf

# Specify a tab name (default: auto-detects first available tab)
node scripts/linkedin-send.js --thread "2-XXXX==" --text "Hello" --tab linkedin

Flags: --thread <id> (reply, format 2-XXXX==), --recipient <id> (new conversation, format ACoAA...), --text <message> (required), --file <path> (optional attachment), --tab <name> (optional, auto-detects) Requires: browser open with LinkedIn loaded on a tab Endpoints: legacy for text-only, dash endpoint for attachments (see browser-automation/apps/linkedin.md for details)

よくある質問

AIスキル「News」では何ができますか?

Reviews job application updates from Gmail, LinkedIn and platforms. Prepares drafts, presents executive summary by priority, validates with the user and sends replies.

TypingMindでNewsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Newsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにNewsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/galiprandi/job-seeker/tree/main/.agents/skills/newsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Newsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Newsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもNewsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「News」は無料ですか?

はい。galiprandiがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇