Hackernews Frontpage

Scrape the Hacker News front page (titles, points, comment counts).

141,991 stars 20,959 forksData & Analytics

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add garrytan/gstack --skill hackernews-frontpage
Manual install
git clone --depth 1 https://github.com/garrytan/gstack.git /tmp/gstack
mkdir -p ~/.claude/skills
cp -r /tmp/gstack/browser-skills/hackernews-frontpage ~/.claude/skills/hackernews-frontpage

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Hacker News front-page scraper

Scrapes the Hacker News (`news.ycombinator.com`) front page and returns the
top 30 stories as JSON. Each story has its rank, title, link URL, point count,
and comment count.

## Usage

```
$ $B skill run hackernews-frontpage
{
  "stories": [
    { "rank": 1, "title": "...", "url": "...", "points": 412, "comments": 87 },
    ...
  ],
  "count": 30
}
```

## How it works

1. Navigates to `https://news.ycombinator.com` via the daemon.
2. Reads the page HTML.
3. Parses each story row (HN's stable `tr.athing` structure) into a typed
   `Story` record.
4. Emits a single JSON document on stdout.

## Why this is the reference skill

`hackernews-frontpage` is the smallest interesting browser-skill: no auth,
stable HTML, deterministic output, file-fixture-friendly. Every Phase 1
component (SDK, scoped tokens, three-tier lookup, spawn lifecycle) is
exercised by `$B skill run hackernews-frontpage` and the bundled
`script.test.ts`.

When the HN HTML rotates and our selectors break, the test fails against the
captured fixture before users notice. That's the point.
Read the full skill on GitHub

Details

Skill name
hackernews-frontpage
Path
browser-skills/hackernews-frontpage/SKILL.md
License
MIT
Repo updated
18 November 2026

FAQ

What does the Hackernews Frontpage skill do?

Scrape the Hacker News front page (titles, points, comment counts).

How do I install the Hackernews Frontpage skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add garrytan/gstack --skill hackernews-frontpage. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Hackernews Frontpage popular?

It lives in garrytan/gstack, which has 141,991 GitHub stars and 20,959 forks, and is included in 2 curated skill lists.

Related skills

Browse the most popular Claude skills, all data & analytics skills, or write your own with the skills generator.