360 Secure SkillHub
360 安全技能中心

Hacker news on topic AI and agent only

核心功能是调用HN Algolia API,搜索AI、Agent、Claude相关的故事,支持近一周默认模式、最新模式及分页查询。典型场景为用户询问Hacker News的AI新闻、AI趋势等需求时使用。输出为结构化摘要,每条含标题、作者等信息,中文请求时头部转译,结果超20条仅展示前20条并标注总数。

goog
goog
热度 54.86
最近更新 2026-05-11 17:39:08
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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