Use hackernews-frontpage to retrieve the current top 30 Hacker News front-page stories as JSON, including each story’s rank, title, URL, points, and comment count.
Suggested template by Skill Leaderboard, grounded in the linked source. Task evidence ↗
SKILL.md
name: hackernews-frontpagedescription: Scrape the Hacker News front page (titles, points, comment counts).host: news.ycombinator.comtrusted: truesource: humanversion: 1.0.0args: []triggers: - scrape hacker news frontpage - scrape hn frontpage - get hn top stories - latest hacker news stories
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.
Navigates to https://news.ycombinator.com via the daemon.
Reads the page HTML.
Parses each story row (HN's stable tr.athing structure) into a typed
Story record.
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.