cpojer

HN Digest

知识管理v1.0.1
作者:cpojer更新于 2026-05-18共 2 个版本 · 最新版本发布于 2026-02-02hn-digest@clawhub_cpojer/hn-digest
信息检索#Crypto#Health#News

据 AlphaMoat 统计,截至 2026-10,HN Digest 累计下载 5,056 次、获 1 个星标,按累计下载量在本次参与排名的 5,109 个 AI 技能中排名第 2,784 位,在「知识管理」分类(433 个)中排名第 244 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
5,056
星标
1
全站下载量排名
#2,784
全站前 55% · 「知识管理」前 57%
平台累计下载星标评论
ClawHub ↗4,18611
SkillHub ↗5,0561—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

Fetch and send Hacker News front-page posts on demand. Use when the user asks for HN, says 'hn', 'pull HN', 'hn 10', or specifies a topic like 'hn health', 'hn hacking', or 'hn tech'. Sends N (default 5) posts as individual messages with Title + Link. Exclude crypto.

月度数据趋势

累计下载5,056
3,2764,2325,1882026-05 · 累计下载 3,4082026-06 · 累计下载 3,5432026-07 · 累计下载 3,7682026-08 · 累计下载 3,9182026-09 · 累计下载 4,0922026-10 · 累计下载 5,05626-0526-0926-10
星标1
0122026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 12026-10 · 星标 126-0526-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-105,056—1
2026-094,092—1
2026-083,918+4.0%1
2026-073,768+6.4%1
2026-063,543+4.0%1
2026-053,408—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.5 KB · ClawHub v1.0.1
---
name: hn-digest
description: "Fetch and send Hacker News front-page posts on demand. Use when the user asks for HN, says 'hn', 'pull HN', 'hn 10', or specifies a topic like 'hn health', 'hn hacking', or 'hn tech'. Sends N (default 5) posts as individual messages with Title + Link. Exclude crypto."
---

# HN Digest

## Command format

Interpret a user message that starts with `hn` as a request for a Hacker News front-page digest.
展开全部(共 56 行)

Supported forms:

- `hn` → default 5 posts
- `hn <n>` → n posts
- `hn <topic>` → filter/boost by topic
- `hn <n> <topic>` → both
- If the user asks for “more” after already seeing some (e.g. “show me top 10–15 since we already did top 10”), treat it as an offset request and use `--offset` (e.g. offset 10, count 10).

Topics:

- `tech` (default)
- `health`
- `hacking`
- `life` / `lifehacks`

## Output requirements

- Do **not** send any extra commentary/preamble/epilogue.
- Send results as **individual messages**.
- Each post message must be exactly:
  - first line: the post title
  - second line: `<age> · <commentCount> comments` (age like `45m ago`, `6h ago`, `3d ago`)
  - third line: the Hacker News comments link (`https://news.ycombinator.com/item?id=...`)
- After the post messages, send **one final message** that is the generated image.
  - If the chat provider requires non-empty text for media, use a minimal caption `.`.
- Hard exclude crypto.

## Procedure

1. Parse `n` and `topic` from the user message.
2. Fetch + rank items:
   - Run `node skills/hn-digest/scripts/hn.mjs --count <n> --offset <offset> --topic <topic> --format json`.
   - Default `offset` is 0 unless the user explicitly asks for “more/next” after a previous batch.
3. Send results as **N individual messages** in the required 3-line format.
4. Then generate a **delightful mood image** via Nano Banana, inspired by the posts you just sent:
   - Use `skills/hn-digest/scripts/mood_prompt.mjs` to build a prompt from the JSON items.
   - Add 3–4 subtle Easter eggs derived from the post themes (no text/logos; keep it fun).
   - Generate and attach the image by running:
     - `skills/hn-digest/scripts/generate_mood_nano_banana.sh ./tmp/hn-mood/hn-mood.png <topic> <n> <offset>`
   - Send the generated image as one additional message.

If fetching/ranking fails or returns 0 items:
- Use `https://news.ycombinator.com/` in the browser tool, pick N non-crypto items by judgment, and send them in the same 3-line format.
- Still generate a mood image (general “HN tech deep dives” vibe) with a banana Easter egg.

「知识管理」分类下的热门技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。