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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
- Navigates to
https://news.ycombinator.comvia the daemon. - Reads the page HTML.
- Parses each story row (HN's stable
tr.athingstructure) into a typedStoryrecord. - 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
Comments
- …
More skills from this repository
autoplan
139kHelps your agent review a plan from several angles in one run, covering product, design, engineering and developer experience.
benchmark
139kHelps your agent detect web performance regressions by measuring a page's speed before and after a change.
browse
139kHelps your agent open a real web browser, click through a page flow, take screenshots and check for console errors.
captain
139kHelps your agent coordinate a group of coding agents from one controller, which collects their work, merges it and reports back.
Similar skills
tavily
394kHelps your agent search the web with Tavily and pull the text from specific web pages, with options for depth, domains, and dates.
blogwatcher
394kLets your agent follow blogs and RSS or Atom feeds, check them for new articles, and mark the ones you have read.
data-scraper-agent
280kHelps your agent automatically collect data from any public source. It can be scheduled, enrich information, and save results. Useful for monitoring or tracking online data.