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 bypoints>100,num_comments>50, etc.
Story Object Fields
Each story in the hits array contains:
title: Story headlineurl: Link to the original contentauthor: Username who submitted itpoints: Upvote countnum_comments: Discussion countcreated_at: ISO timestampobjectID: Unique identifier (use for HN discussion link)
Instructions
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
- For latest:
AI Filtering: When user requests AI-related news, filter stories by checking if title contains AI-related keywords
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:
- Fetch more stories than needed (e.g., 50-100)
- Filter by checking title for AI keywords
- 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)