Ask your agent
What it does
This skill merges duplicate coverage, removes repeats, ranks the gathered candidates by importance, selects up to seven stories, and saves the ranked hand-off to the Selected stories tab in the ledger.
SKILL.md
---
name: ai-daily-brief-select
description: Select step of the AI Daily Brief email automation. Takes the de-duplicated candidate pool from the Gather step, merges any remaining duplicate coverage of the same story into one item, ranks the stories by importance (major model or product launches, research breakthroughs, big funding rounds or acquisitions, regulation and policy, notable safety or industry shifts), picks 5-7 (fewer if fewer genuinely new stories exist), and saves the ranked list to the "Selected stories" tab of the Google Sheets ledger so the Summarize step knows which stories to pull, summarize and send. Use this whenever the AI Daily Brief, daily AI news digest, or daily tech email brief task needs to rank candidates, choose the top stories, or decide what goes into today's digest, even if the user only says "select", "pick the top stories" or "run the second step".
---
# AI Daily Brief: Select
This is step 2 of the AI Daily Brief pipeline (Gather, Select, Summarize, Send). Its job is to turn the candidate pool from Gather into a short, ranked list of the stories that deserve a place in today's digest, and to save that list where the next step can find it. It does not search the web, write summaries, or send anything. Keeping it narrow means the ranking logic (criteria, weights, variety rules) can be extended later without touching the other steps.
## Ledger reference
- Spreadsheet: "Ledger - Daily Tech Email Brief"
- spreadsheetId: `1IkdHmxwQRi1N5iJZZV2zX9-GToePOjYP_qj2tYwrnEQ`
- URL: https://docs.google.com/spreadsheets/d/1IkdHmxwQRi1N5iJZZV2zX9-GToePOjYP_qj2tYwrnEQ/edit
- Tab "Stories" (sheetId 0): one row per story **sent**. Columns A-F: Date sent | News Headline | Source name | Source URL | Story key | Topic tags. Select only reads this tab (for a safety check). It never writes to it, because that tab means "story was sent" and is written only after a digest actually goes out.
- Tab "Selected stories" (written by this step): the hand-off to Summarize. One row per selected story per run. Columns A-L, in this order:
- A: Run date and time (YYYY-MM-DD HH:MM, US Eastern), taken from the Gather output. Every row from one run shares this value; it is the run identifier.
- B: Rank (1 = most important)
- C: Headline (working headline in your own words)
- D: Source name (primary source link's outlet)
- E: Source URL (the one link Summarize should read first)
- F: Story key (short event label, same style as the Stories tab)
- G: Topic tags (same vocabulary as the Stories tab, for example "AI models, hardware")
- H: Update (yes or no)
- I: What is new (one line, only when Update is yes)
- J: Why it matters (one sentence on why it earned its rank)
- K: Other coverage (extra links to the same story, separated by spaces)
- L: Status ("Selected"; later steps may change it)
Row 1 is a header row. If the tab does not exist yet, create it in step 5.
- Always use column positions, never header text, because headers may be renamed.
- Sheets tools (`get_values`, `append_values`, `update_values`, `update_spreadsheet`, `get_spreadsheet`) may be deferred. If a call fails with a schema error, load them with ToolSearch (`select:mcp__Google_Sheets__get_values`, and so on) and retry.
## Input
Use the Gather step's output from this session: run time, ledger status, the "Already covered" list, and the numbered candidates (each with headline, source, URL, published time, story key, update flag, notes). Gather has already removed repeats of earlier digests, so every candidate is either new or an explicit update.
If the Gather output is not available in this session, stop and say so rather than guessing. Running Gather first is the fix; Select cannot invent a candidate pool.
## Steps
### 1. Merge duplicates inside today's batch
Gather lists a story once and puts extra links in Notes, but two candidates can still describe the same event (for example the same launch reported by two outlets under different working headlines). Merge those into one item:
- keep the most primary link as the main URL (an official blog or the original reporter beats an aggregator or a rewrite),
- keep the other links as "Other coverage",
- keep one Story key, using the more specific label,
- if one of the duplicates is flagged as an update, the merged item stays flagged.
Judge by the event, not the wording. Merging matters because two slots spent on one event push out a story readers have not seen.
### 2. Safety check against the ledger
Compare each remaining candidate's Story key and URL with the "Already covered" list once more. This should find nothing, since Gather already did it. It is a cheap guard against a Gather bug or a hand-edited pool. Drop a candidate that is a plain repeat. Keep a candidate flagged as an update only if it describes a significant new development with its own, more specific Story key. When unsure, drop it: a missed update costs less than a repeat.
### 3. Rank by importance
Place each candidate in a tier, then order within tiers.
**Tier 1, top of the digest.** Stories that change what practitioners, businesses or the public should pay attention to:
- a major model or product launch from a leading lab or platform (new frontier model, a widely available new product, a significant capability or price change),
- a research breakthrough with credible evidence (a peer-reviewed result, a strong benchmark jump, a new technique others will adopt),
- a large funding round, acquisition or merger (judge by strategic weight as well as dollar size),
- regulation, litigation or policy with broad effect (a law passed, a court ruling, an enforcement action, export controls),
- a notable safety or industry shift (a serious incident, a major lab changing its safety approach, a large reorganisation or leadership change at a leading lab).
**Tier 2, notable.** The same kinds of stories at narrower scale: a smaller company's launch, a niche research result, a mid-size funding round, a proposed rule, an industry trend piece with new data.
**Tier 3, minor.** Incremental feature updates, opinion pieces, small announcements, anything where the news is mostly the company's own framing.
**Within a tier, order by:**
1. breadth of impact (how many people or organisations are affected),
2. novelty (genuinely new versus an incremental step on a known story),
3. source strength (official announcement or original reporting over a rewrite),
4. recency inside the 24-hour window.
**Variety guard.** Importance comes first, but avoid a digest where one company or one theme takes more than about two slots unless the day's news truly is dominated by it. Readers want a picture of the whole field. When two stories are close in rank, prefer the one that adds a topic the list does not yet cover.
An update story (flagged by Gather) is ranked on the importance of the new development, not of the original event.
### 4. Pick 5-7
- Take up to 7 stories from the top of the ranking. Stop earlier if the next candidates are Tier 3 and at least 5 are already chosen: a shorter digest of stories that matter is better than a padded one.
- If fewer than 5 candidates are Tier 1 or 2, fill up to 5 with the best remaining genuinely new stories, even if they are Tier 3.
- If fewer than 5 genuinely new stories exist at all, select all of them. A short digest is fine; do not pad with repeats, stale stories, or items outside the 24-hour window.
- If zero stories survive, select none and say so plainly (see step 5 for what to write).
For each pick, write the one-sentence "Why it matters" in your own words. It is the reason it earned its rank, and it gives Summarize a starting point. Paraphrase; never copy sentences from articles.
### 5. Save the ranked list to the ledger spreadsheet
Write the list before returning it, so the hand-off survives even if a later step fails.
1. Check whether the "Selected stories" tab exists (`get_spreadsheet` on the spreadsheetId). If it is missing, create it with `update_spreadsheet` (an addSheet request titled "Selected stories") and write the header row in A1:L1 with `update_values`: Run date and time | Rank | Headline | Source name | Source URL | Story key | Topic tags | Update | What is new | Why it matters | Other coverage | Status.
2. Build one row per selected story in rank order, using the run time from the Gather output (YYYY-MM-DD HH:MM, US Eastern) in column A of every row.
3. Add all rows in a single `append_values` call to `'Selected stories'!A:L`. Appending, not overwriting, keeps earlier runs as a history, and a re-run of the same day simply adds a new block with a new run time. Summarize reads the block with the latest run time.
4. **Zero stories:** append a single row with Rank `0`, Headline "No new stories", and Status "None selected" so the next step can tell a quiet day from a failed run.
5. If the write fails, retry once. If it still fails, set `selection_log_status: failed` in the output. Do not stop: the ranked list still goes back in the conversation so the orchestrating task can continue, but the failure has to be visible so it can be reported.
Never write to the "Stories" tab here.
## Output (hand-off to Summarize)
Return this structure in the conversation (and as a file if the orchestrating task asks for one):
```
Run time: <run time from Gather>
Selection log status: saved to "Selected stories" tab (<n> rows) | failed
Stories selected: <n> of <n> candidates (merged <n> duplicates, dropped <n> as repeats)
Selected (ranked):
1. Headline: <working headline>
Source: <source name>
URL: <main link>
Story key: <short event label>
Topic tags: <tags>
Update: no | yes (summary must start with "Update:"; what is new: <one line>)
Why it matters: <one sentence>
Other coverage: <links or "none">
Not selected (for audit):
- <headline> | <tier> | <reason: lower rank, same event as #<n>, repeat, outside window>
Notes for next step: <for example "only 4 genuinely new stories today", "ledger was unavailable", or "none">
```
Carry forward anything Gather flagged (ledger unavailable, sources skipped) in the notes so the Send step can mention it in the digest footer.
1 file
- SKILL.md10.0 KB