Skip to main content

hackernews-frontpage

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

설치로 이동

소스 정보

저장소
garrytan/gstack
최근 소스 활동
2026년 8월 17일 02:34
감지된 SKILL.md 언어
영어
스타
133,425
포크
19,886

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
5 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
hackernews-frontpage
description
Scrape the Hacker News front page (titles, points, comment counts).
host
news.ycombinator.com
trusted
true
source
human
version
1.0.0
args
[]
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. ## 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.
GitHub에서 보기