# News Fetcher

> Fetches AI news from Gmail Google Alerts; invoke via invoke_agent only. Returns date-prioritized list of title and url.

- Skill: `chinkan/news-fetcher` (Agent Skill)
- Install (CLI): `npx skillmds@latest add chinkan/news-fetcher`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chinkan/news-fetcher/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: chinkan (https://skillmd.com/u/chinkan)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/chinkan/news-fetcher

---


# News Fetcher

Single job: Query Gmail for Google 快訊 emails and return a list of news items with **title** and **url**, **date-prioritized**.

## Gmail query

Use the Gmail MCP tool (`mcp_google-workspace_query_gmail_emails`) with query:

```
subject:Google 快訊 newer_than:2d
```

(Syntax may vary by MCP; use the equivalent that limits to last 2 days and subject containing "Google 快訊".)

## Date priority

- Return **current date** (today) URLs only.
- If there are no results for today, return **yesterday's** URLs only.
- Do **not** mix dates in one response.

Use each message's date to filter: first try today; if none, use yesterday.

## Per-email steps

For each matching email:

1. Get full message (subject, snippet, body if needed).
2. Extract the news title (from subject or first line).
3. Extract the link (e.g. "Read more" / 快訊 link); normalize to one URL per item.

## Output contract

Return **only** a single block the main agent can parse. No prose before or after.

Use one of:

- JSON array: `[{"title":"...","url":"..."},{"title":"...","url":"..."}]`
- Or numbered markdown list with title and URL per line, e.g. `1. Title — URL`

No commentary. No "Here are the results". Just the list.

