memory_search("interests topics preferences technology news")
Do this first, before fetching stories — the results determine how stories are ranked. Extract any topics, technologies, or themes found. If nothing relevant comes back, fall back to HN ranking order.
python3 skills/hn-morning-brief/scripts/fetch_hn.py --limit 20
(Path is relative to the project root — openclaw installs this skill at skills/hn-morning-brief/.)
Returns JSON with: title, article_url, hn_url, domain, author, points, num_comments.
Score each story by combining two signals:
Surface the 8–12 highest-scoring stories. If memory search returned no clear interests, rank by points only.
## HN Morning Brief — {today's date}
{N} stories picked for you
1. **{Title}** `{domain}` · ⬆ {points} · 💬 {num_comments}
{one-line context or why this is interesting}
→ [Article]({article_url}) · [HN Discussion]({hn_url})
2. ...
---
Say "dive deeper into #N" or "tell me more about [title]" to get a full summary.
When the user picks a story:
{article_url}{hn_url} (often where the most interesting debate happens)article_url is the original article. hn_url is the HN discussion thread. Never swap them — linking to the HN page when the user wants the article is a bad experience.memory_search returns no clear interests, rank by points and don't guess — invented interests will surface irrelevant stories.共 1 个版本