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 activity, (4) Analyzing trending topics and patterns, (5) Getting story details, comments, or user profiles, or (6) Any other task involving Hacker News data retrieval or analysis.
Best use case
hackernews is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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 activity, (4) Analyzing trending topics and patterns, (5) Getting story details, comments, or user profiles, or (6) Any other task involving Hacker News data retrieval or analysis.
Teams using hackernews should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/hackernews/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How hackernews Compares
| Feature / Agent | hackernews | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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 activity, (4) Analyzing trending topics and patterns, (5) Getting story details, comments, or user profiles, or (6) Any other task involving Hacker News data retrieval or analysis.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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:**
```bash
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:**
```bash
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:**
```bash
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:**
```bash
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:
```python
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 patternsRelated Skills
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
humanizer-ko
Detects and corrects Korean AI writing patterns to transform text into natural human writing. Based on scientific linguistic research (KatFishNet paper with 94.88% AUC accuracy). Analyzes 19 patterns including comma overuse, spacing rigidity, POS diversity, AI vocabulary overuse, and structural monotony. Use when humanizing Korean text from ChatGPT/Claude/Gemini or removing AI traces from Korean LLM output.
huggingface-accelerate
Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.
hr-pro
Professional, ethical HR partner for hiring, onboarding/offboarding, PTO and leave, performance, compliant policies, and employee relations. Ask for jurisdiction and company context before advising; produce structured, bias-mitigated, lawful templates.
hive-mind-advanced
Advanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory
hire
Interactive hiring wizard to set up a new AI team member. Guides the user through role design via conversation, generates agent identity files, and optionally sets up performance reviews. Use when the user wants to hire, add, or set up a new AI agent, team member, or assistant. Triggers on phrases like "hire", "add an agent", "I need help with X" (implying a new role), or "/hire".
hic-tad-calling
This skill should be used when users need to identify topologically associating domains (TADs) from Hi-C data in .mcools (or .cool) files or when users want to visualize the TAD in target genome loci. It provides workflows for TAD calling and visualization.
helix-memory
Long-term memory system for Claude Code using HelixDB graph-vector database. Store and retrieve facts, preferences, context, and relationships across sessions using semantic search, reasoning chains, and time-window filtering.
heath-ledger
AI bookkeeping agent for Mercury bank accounts. Pulls transactions, categorizes them (rule-based + AI), and generates Excel workbooks with P&L, Balance Sheet, Cash Flow, and transaction detail. Use when the user wants to do bookkeeping, generate financial statements, categorize bank transactions, connect Mercury, or produce monthly/quarterly/annual books. Triggers on: bookkeeping, P&L, profit and loss, balance sheet, cash flow, financial statements, Mercury bank, categorize transactions, generate books, monthly close.
health-chat
Unified health conversation entry point - automatically loads all health data for each conversation, supports natural language queries, and intelligently routes to appropriate health data processing
GSTD A2A Network
Decentralized Agent-to-Agent Autonomous Economy. Connects hardware and agents for distributed compute, hive memory access, and economic settlement.
Ground Truth Management
Comprehensive guide to creating, managing, and maintaining ground truth datasets for AI evaluation including annotation, quality control, and versioning