360 Secure SkillHub
360 安全技能中心

Hacker news on topic AI and agent only

通过 Python 脚本调用 Hacker News Algolia 搜索接口,按固定关键词抓取 AI、Agent、Claude 相关帖子,支持默认过去一周、最新模式与分页参数,再由模型把结果整理成含标题、作者、点数和时间的条目式摘要。

分类:搜索
goog
goog
热度 32.66
最近更新 2026-05-11 17:39:08

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add goog/hn-news
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
hn-news
description
Fetch and display Hacker News stories about AI, agents, and Claude. Default is past week. Use when the user asks for HN news, Hacker News AI stories, latest AI news or "what's AI trending on Hacker News".

Hacker News — AI & Agent Stories

Fetch and present the latest Hacker News stories about AI, agents, and Claude.

Source

  • API: HN Algolia search (https://hn.algolia.com/api/v1/search_by_date)
  • Keywords: AI OR "agent" OR claude
  • Type: stories only

Workflow

  1. Run the script to fetch news:
    • Default (past week): python skills/hn-news/hn.py week
    • Latest: python skills/hn-news/hn.py latest
    • Pagination: add --page N (0-based)
  2. Parse the output and reformat into a clean, readable digest

Output Format

Present each story as:

### N. Title

👤 Author · ⭐ Points · 🕒 Time

🔗 [Link]

Separate stories with ---.

Add a brief header with the total count and time range:

📰 Hacker News — AI & Agent Stories (Past Week)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Showing N stories from the past 7 days.

Notes

  • Default to week mode unless user asks for "latest"
  • If there are many results (>20), show the top 20 and mention total count
  • Translate the header to Chinese if the user writes in Chinese
  • Keep titles and metadata in original English