# hackernews

Fetches stories, comments, and user profiles from Hacker News using the Firebase API. Useful for monitoring tech discussions directly in your terminal.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3200 installs · ★ 81
- Author: okou-ai
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/okou-ai/okou-skills/tree/HEAD/hackernews/SKILL.md
- Updated: 2026-10-20
- HTML: https://affpapa.org/en/nevibecode/skills/hackernews

## What it does

The skill instructs the agent to query the official Hacker News Firebase API using `curl` and `jq`. It fetches lists for top and new stories alongside Ask HN feeds. The agent queries endpoints like `/v0/topstories.json` to inspect current tech discussions. You need `curl` and `jq` installed.

Item details require separate lookups through the `/v0/item/<item-id>.json` endpoint. Comment trees require multiple steps because parent items only provide arrays of child IDs. The API documents no request limits. Even so, the skill advises caching responses and pacing bulk queries.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add okou-ai/okou-skills --skill hackernews -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/hackernews/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/hackernews/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add okou-ai/okou-skills --skill hackernews -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/hackernews/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add okou-ai/okou-skills --skill hackernews -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/hackernews/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install okou-ai/okou-skills hackernews
```

2. **Manually: put the files in place**
- File: `.github/skills/hackernews/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add okou-ai/okou-skills --skill hackernews -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/okou-ai/okou-skills --path hackernews
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/hackernews/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add okou-ai/okou-skills --skill hackernews -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/okou-ai/okou-skills/tree/HEAD/hackernews/SKILL.md

## When to use it
- retrieve current top or best stories from Hacker News
- filter posts by keyword or minimum score threshold
- fetch comments for a specific story identifier
- inspect user karma and recent submissions

## Example prompts
- Show the top 10 stories on Hacker News with their scores
- Find Hacker News posts about LLMs with at least 100 points
- Fetch details and top comments for <story-id>

## Similar
- [pp-hackernews](https://affpapa.org/en/nevibecode/skills/pp-hackernews.md) — skill · 993 installs
- [gif-search](https://affpapa.org/en/nevibecode/skills/gif-search.md) — skill · 379 installs
- [anki-connect](https://affpapa.org/en/nevibecode/skills/anki-connect.md) — skill · 891 installs
- [yc-reader](https://affpapa.org/en/nevibecode/skills/yc-reader.md) — skill · 2800 installs
- [context7](https://affpapa.org/en/nevibecode/skills/netresearch-dtt-gmbh-context7.md) — skill · 1900 installs
- [api-smoke-testing](https://affpapa.org/en/nevibecode/skills/api-smoke-testing.md) — skill · 495 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
