hacker-news

star 0

Fetches and displays the latest articles, top stories, and other content from Hacker News. Use when the user asks about Hacker News, wants to see trending tech news, or requests the latest stories from HN.

buluzhai By buluzhai schedule Updated 1/8/2026

name: hacker-news description: "Fetches and displays the latest articles, top stories, and other content from Hacker News. Use when the user asks about Hacker News, wants to see trending tech news, or requests the latest stories from HN." allowed-tools: WebFetch

Hacker News Reader

This skill fetches articles from Hacker News using the Algolia Search API.

API Endpoints (Algolia)

Base URL: https://hn.algolia.com/api/v1/

Type Endpoint Description
Latest Stories search_by_date?tags=story&hitsPerPage=30 Stories sorted by date (newest first)
Top Stories search?tags=story&hitsPerPage=30 Stories sorted by relevance/popularity
Search search?query={keyword}&tags=story Search stories by keyword
Front Page search?tags=front_page Current front page stories

Useful Parameters

  • hitsPerPage: Number of results (default 20, max 1000)
  • page: Page number (0-indexed)
  • tags: Filter by type (story, comment, show_hn, ask_hn, front_page)
  • numericFilters: Filter by points>100, num_comments>50, etc.

Story Object Fields

Each story in the hits array contains:

  • title: Story headline
  • url: Link to the original content
  • author: Username who submitted it
  • points: Upvote count
  • num_comments: Discussion count
  • created_at: ISO timestamp
  • objectID: Unique identifier (use for HN discussion link)

Instructions

  1. Fetch stories: Use the appropriate endpoint based on user request

    • For latest: search_by_date?tags=story&hitsPerPage=30
    • For top/popular: search?tags=story&hitsPerPage=30
  2. AI Filtering: When user requests AI-related news, filter stories by checking if title contains AI-related keywords

  3. Display results: Present in a clean format with title, URL, score, author, and comments

AI News Filtering

When filtering for AI-related news, check if the title contains these keywords (case-insensitive):

Include (Modern/Advanced AI):

  • LLM, GPT, ChatGPT, Claude, Gemini, Llama, Mistral, DeepSeek
  • OpenAI, Anthropic, Google AI, Meta AI
  • transformer, large language model, foundation model
  • AI agent, AI assistant, copilot
  • generative AI, GenAI, AIGC
  • diffusion model, Stable Diffusion, DALL-E, Midjourney, Sora
  • RAG, retrieval augmented, vector database, embedding
  • fine-tuning, RLHF, prompt engineering, chain of thought
  • multimodal, vision language model, VLM
  • neural network (in context of modern AI)
  • AGI, artificial general intelligence

Exclude (Traditional ML - unless combined with above):

  • Pure "machine learning" without LLM context
  • Traditional statistical models
  • Basic classification/regression
  • Old-school NLP (pre-transformer)

Filtering Logic:

  1. Fetch more stories than needed (e.g., 50-100)
  2. Filter by checking title for AI keywords
  3. Return only AI-related stories up to requested count

Example Usage

Fetch Latest AI News

GET https://hn.algolia.com/api/v1/search_by_date?tags=story&hitsPerPage=50

Then filter results where title matches AI keywords.

Fetch Top AI News

GET https://hn.algolia.com/api/v1/search?tags=story&hitsPerPage=50

Then filter for AI-related stories.

Response Format

Present stories in a numbered list:

1. [Story Title](https://example.com/article)
   Score: 150 | By: username | Comments: 42
   [HN Discussion](https://news.ycombinator.com/item?id=12345)

2. [Another Story](https://example.com/another)
   Score: 89 | By: another_user | Comments: 15
   [HN Discussion](https://news.ycombinator.com/item?id=67890)
Install via CLI
npx skills add https://github.com/buluzhai/claude-hn --skill hacker-news
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator