Install Hackernews Frontpage
Pick your agent. Every command is ready to paste.
npx skills add garrytan/gstack --skill hackernews-frontpageThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads hackernews-frontpage when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the hackernews-frontpage skill”. In Codex, type $hackernews-frontpage.
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.
Tips for Hackernews Frontpage
- • Start a fresh session after installing so your agent picks up the new skill.
- • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
- • It is part of a pack with 67 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Hackernews Frontpage
What does the Hackernews Frontpage skill do?
Scrape the Hacker News front page (titles, points, comment counts).
How do I install Hackernews Frontpage?
Run "npx skills add garrytan/gstack --skill hackernews-frontpage" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Hackernews Frontpage work in Cursor and Codex?
Yes. Hackernews Frontpage uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Hackernews Frontpage free?
Hackernews Frontpage is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Hackernews Frontpage?
Hackernews Frontpage is published by Garry Tan in the garrytan/gstack repository, together with 66 other skills.


