Skip to content
hackernews logo

Hacker News Skill

hackernews

Comprehensive toolkit for fetching, searching, analyzing, and monitoring Hacker News content. Use when Claude needs to interact with Hacker News for (1) Fetching top/new/best/ask/show/job stories, (2) Searching for specific topics or keywords, (3) Monitoring specific users or tracking their activ...

SKILL.md

Full skill instructions

Hacker News Skill

Overview

This skill provides comprehensive access to Hacker News through both the official Firebase API and Algolia Search API. Use the provided scripts to fetch stories, search content, monitor users, and analyze trending topics.

Core Capabilities

1. Fetch Stories

Use scripts/​fetch_stories.py to retrieve stories from different categories.

Available story types:

  • top - Top ranked stories (front page)
  • new - Newest stories
  • best - Best stories (highest quality)
  • ask - Ask HN posts
  • show - Show HN posts
  • job - Job postings

Usage:

cd /​home/​claude/​hackernews/​scripts
python3 fetch_stories.py --type top --limit 10
python3 fetch_stories.py --type ask --limit 20 --detailed

Common patterns:

  • For current front page: Use --type top
  • For latest posts: Use --type new
  • For highest quality: Use --type best
  • For detailed info: Add --detailed flag

2. Search Content

Use scripts/​search_hn.py to search across all HN content using Algolia's search API.

Search types:

  • all - Search everything
  • story - Stories only
  • comment - Comments only
  • ask - Ask HN posts only
  • show - Show HN posts only

Sort options:

  • relevance - Most relevant results (default)
  • date - Most recent results

Usage:

cd /​home/​claude/​hackernews/​scripts
python3 search_hn.py "AI security" --type story --limit 20
python3 search_hn.py "Rust" --sort date --limit 15
python3 search_hn.py "" --author pg --limit 10

Common patterns:

  • For topic search: search_hn.py "topic keywords" --type story
  • For recent discussions: Add --sort date
  • For user activity: Use --author username

3. Monitor Users

Use scripts/​user_monitor.py to track specific users and view their activity.

Usage:

cd /​home/​claude/​hackernews/​scripts
python3 user_monitor.py pjmlp --limit 10
python3 user_monitor.py pg sama dang --limit 5
python3 user_monitor.py username --type story --activity-only

Features:

  • View user profile (karma, account age, about)
  • See recent submissions (stories, comments, etc.)
  • Filter by item type
  • Monitor multiple users at once

Options:

  • --limit - Number of recent items per user
  • --type - Filter by story/​comment/​poll/​job
  • --activity-only - Skip profile, show only activity
  • --profile-only - Show only profile, skip activity

4. Analyze Trends

Use scripts/​analyze_trends.py to identify trending topics and patterns.

Usage:

cd /​home/​claude/​hackernews/​scripts
python3 analyze_trends.py --limit 100 --type top
python3 analyze_trends.py --compare

Provides:

  • Top trending keywords from story titles
  • Most submitted domains
  • Most active authors
  • Overall statistics (avg score, comments)
  • Top stories by score and engagement
  • Comparison across story types (when using --compare)

Typical workflow:

  1. Run with --limit 50-200 for good sample size
  2. Use --type top for current trends
  3. Use --type new for emerging topics
  4. Use --compare for comprehensive analysis

5. Programmatic Access

For custom workflows, import the API modules directly:

import sys
sys.path.append('/​home/​claude/​hackernews/​scripts')

from hn_api import HNClient, format_item
from search_hn import HNSearchClient

# Use Firebase API
client = HNClient()
top_ids = client.get_top_stories(limit=5)
for sid in top_ids:
    item = client.get_item(sid)
    print(format_item(item))

# Use Search API
search = HNSearchClient()
results = search.search_stories("machine learning", num_results=10)
for hit in results['hits']:
    print(hit['title'])

Quick Decision Guide

User asks for current/​top stories? → Use fetch_stories.py --type top

User asks to search for a topic? → Use search_hn.py "topic" --type story

User asks about a specific user? → Use user_monitor.py username

User asks about trending topics? → Use analyze_trends.py --limit 100

User asks for Ask/​Show HN? → Use fetch_stories.py --type ask or --type show

User wants detailed analysis? → Use analyze_trends.py --compare

Important Notes

  1. Always use full paths - Scripts are in /​home/​claude/​hackernews/​scripts
  2. Check for requests dependency - Install with pip install requests if needed
  3. Handle missing data - HN items can be deleted; check for None/​null
  4. Respect rate limits - Algolia allows 10,000 requests/​hour per IP
  5. Cache when possible - HN data updates slowly; cache responses

Additional Resources

  • API Reference: See references/​api_reference.md for complete API documentation
  • Usage Examples: See references/​examples.md for detailed workflow examples

Scripts Reference

All scripts located in /​home/​claude/​hackernews/​scripts/:

  • hn_api.py - Core Firebase API client (can be imported)
  • fetch_stories.py - Fetch stories by type (top/​new/​best/​ask/​show/​job)
  • search_hn.py - Search HN using Algolia API
  • user_monitor.py - Monitor user profiles and activity
  • analyze_trends.py - Analyze trending topics and patterns

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View