Skip to content
Skillpedia
Web scraping139k · #687

hackernews-frontpage

What it does

This skill reads the Hacker News front page and returns the top 30 stories as structured data. It is for anyone who wants a quick, organized list of what is trending there.

When to use it

  • ✓When you want the current top stories from Hacker News.
  • ✓When you want a list of story titles, links and point counts.
  • ✓When you want to track which stories rank highest on Hacker News.

Skill link

https://github.com/garrytan/gstack/blob/main/browser-skills/hackernews-frontpage/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/garrytan/gstack/blob/main/browser-skills/hackernews-frontpage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Give me the top 30 stories on Hacker News right now with their points and comment counts.”

5 new skills a week. 1 minute to read.

How it works

It opens the Hacker News front page, reads the story rows, and returns each story's rank, title, link, points and comments as a single list.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.

FAQ

How many stories does it return?

The description says it returns the top 30 stories.

What information is included for each story?

Rank, title, link, points and comment count.

Does it need a login?

No. The skill says it works without authentication.

Details

Original description by the author

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

repo: garrytan/gstack

Popularity

GitHub stars
139k
Ranking position
#687
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills