hackernews-frontpage

hackernews-frontpage is a skill for Claude Code, Codex from garrytan/gstack. It costs 21 tokens per session (379 once invoked), scanned A, original, MIT.

A scraper for the Hacker News front page, a website that lists technology news and discussions. It returns the top 30 stories with their rank, title, link, points, and comment count as JSON.

In plain words
What is it for?
Use it to collect the current Hacker News front page, inspect story popularity, or test browser-scraping tools against a stable example.
Why use it?
It turns a web page into structured data that scripts and tests can use directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect the current Hacker News front page, inspect story popularity, or test browser-scraping tools against a stable example.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/garrytan/gstack/hackernews-frontpage
About the project

gstack is a set of opinionated tools that gives a coding agent workflows associated with roles such as product leadership, design, engineering management, release management, documentation, and quality assurance. It is for developers who want one coding agent to support more parts of the software delivery process.

garrytan/gstack · 143,034 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add garrytan/gstack --skill hackernews-frontpage
Clone the repo
git clone --depth 1 https://github.com/garrytan/gstack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hackernews-frontpage

README.md
[![agentmods](https://agentmods.dev/badge/skills/garrytan/gstack/hackernews-frontpage/github.svg)](https://agentmods.dev/skills/garrytan/gstack/hackernews-frontpage)
Your own site
<a href="https://agentmods.dev/skills/garrytan/gstack/hackernews-frontpage"><img src="https://agentmods.dev/badge/skills/garrytan/gstack/hackernews-frontpage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hackernews-frontpage

Your own site · 80×15
<a href="https://agentmods.dev/skills/garrytan/gstack/hackernews-frontpage"><img src="https://agentmods.dev/badge/skills/garrytan/gstack/hackernews-frontpage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk warn 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00379
Opus 5.5 $0.00008 $0.00152
Sonnet 5.5 $0.00004 $0.00076
Haiku 4.5 $0.00002 $0.00038

Measured 3mo ago against content hash 1a4e91d00ffd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hackernews-frontpage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (_lib/browse-client.ts, script.test.ts, script.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

browser-skills/hackernews-frontpage/SKILL.md · 53 lines

What it actually says

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.

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 53 lines · 21 tokens per session scan A 1a4e91d00ffd

Subscribe to this mod's changes

hackernews-frontpage is a skill published in the GitHub repository garrytan/gstack (143,034 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 379 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

hackernews-frontpage compared with skills from other repositories

hackernews-frontpage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hackernews-frontpagegarrytan/gstackSkill143ktodayMITA21Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code