Today is ${today}. Build a digest of the [REPLACE: MAX_ITEMS] most interesting new posts on [REPLACE: TOPIC].
-
Read sources — pull the last 24h of entries from each feed:
[REPLACE: FEED_URLS]
(Comma- or newline-separated list of RSS/Atom URLs.)
Use WebFetch to retrieve each feed and parse the entries. If a feed 404s or returns malformed XML, log a single warning line and skip that feed for this run.
-
Augment with web search — run a WebSearch for [REPLACE: TOPIC] latest and pick up to 5 fresh links published in the last 24h that aren't already in the feed results.
-
Score and rank — for each candidate, score on:
- Recency — within the last 24h gets full marks.
- Source weight — feeds in the configured list outrank generic search results.
- Specificity — items mentioning concrete numbers, code, or named systems beat opinion pieces.
Drop anything obviously off-topic (the ${var} or [REPLACE: TOPIC] keyword should appear somewhere in title or summary).
-
Pick the top [REPLACE: MAX_ITEMS] — write articles/[REPLACE: SKILL_NAME]-${today}.md with one entry each:
### [Title](url)
*[Source · published date]*
2-3 sentences distilling the takeaway. No filler.
-
Notify via ./notify with:
*[REPLACE: TOPIC] digest — ${today}*
[N] picks. Top item: [shortened title].
Full digest: https://github.com/${GITHUB_REPOSITORY}/blob/main/articles/[REPLACE: SKILL_NAME]-${today}.md
-
Log — append to memory/logs/${today}.md:
## [REPLACE: SKILL_NAME]
- **Sources scanned**: N feeds + 1 web search
- **Items picked**: N (of M candidates)
- **Top source**: domain
- **Status**: DIGEST_OK | DIGEST_QUIET (no items) | DIGEST_DEGRADED (some feeds failed)