Skip to content
Back to skills

Hackernews Frontpage

ASecurity

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

  • 3 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 12, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill hackernews-frontpage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hackernews Frontpage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hackernews Frontpage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-hackernews-frontpage/badge)](https://www.skillsdirectory.com/skills/thedixitjain-hackernews-frontpage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hackernews-frontpage
description: "Scrape the Hacker News front page (titles, points, comment counts)."
category: general-purpose
source_repo: garrytan/gstack
source_path: "browser-skills/hackernews-frontpage/SKILL.md"
source_url: https://github.com/garrytan/gstack/blob/HEAD/browser-skills/hackernews-frontpage/SKILL.md
---
# 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.

---

**Source:** [`garrytan/gstack`](https://github.com/garrytan/gstack) → `browser-skills/hackernews-frontpage/SKILL.md`

Files in this skill

  • SKILL.md1.5 KB
  • _lib/browse-client.ts11.3 KB
  • fixtures/hn-2026-04-26.html5 KB
  • script.test.ts3.8 KB
  • script.ts4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.