Agent Skillsgarrytan/gstack › hackernews-frontpage

hackernews-frontpage

GitHub

抓取 Hacker News 首页前30条故事数据,解析为包含排名、标题、链接、积分和评论数的 JSON 格式输出。

browser-skills/hackernews-frontpage/SKILL.md garrytan/gstack

Trigger Scenarios

需要获取 Hacker News 热门话题列表 分析当前 HN 社区关注趋势 监控特定文章在 HN 的排名变化

Install

npx skills add garrytan/gstack --skill hackernews-frontpage -g -y
More Options

Non-standard path

npx skills add https://github.com/garrytan/gstack/tree/main/browser-skills/hackernews-frontpage -g -y

Use without installing

npx skills use garrytan/gstack@hackernews-frontpage

指定 Agent (Claude Code)

npx skills add garrytan/gstack --skill hackernews-frontpage -a claude-code -g -y

安装 repo 全部 skill

npx skills add garrytan/gstack --all -g -y

预览 repo 内 skill

npx skills add garrytan/gstack --list

SKILL.md

Frontmatter
{
    "args": [],
    "host": "news.ycombinator.com",
    "name": "hackernews-frontpage",
    "source": "human",
    "trusted": true,
    "version": "1.0.0",
    "triggers": [
        "scrape hacker news frontpage",
        "scrape hn frontpage",
        "get hn top stories",
        "latest hacker news stories"
    ],
    "description": "Scrape the Hacker News front page (titles, points, comment counts)."
}

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.

Version History

  • a325940 Current 2026-07-25 11:04

Same Skill Collection

autoplan/SKILL.md
benchmark/SKILL.md
browse/SKILL.md
careful/SKILL.md
context-restore/SKILL.md
design-consultation/SKILL.md
design-html/SKILL.md
design-review/SKILL.md
design-shotgun/SKILL.md
diagram/SKILL.md
freeze/SKILL.md
guard/SKILL.md
investigate/SKILL.md
ios-clean/SKILL.md
ios-design-review/SKILL.md
ios-sync/SKILL.md
landing-report/SKILL.md
make-pdf/SKILL.md
open-gstack-browser/SKILL.md
openclaw/skills/gstack-openclaw-ceo-review/SKILL.md
openclaw/skills/gstack-openclaw-investigate/SKILL.md
openclaw/skills/gstack-openclaw-office-hours/SKILL.md
openclaw/skills/gstack-openclaw-retro/SKILL.md
pair-agent/SKILL.md
plan-design-review/SKILL.md
plan-devex-review/SKILL.md
plan-tune/SKILL.md
qa/SKILL.md
setup-browser-cookies/SKILL.md
setup-deploy/SKILL.md
setup-gbrain/SKILL.md
ship/SKILL.md
skillify/SKILL.md
spec/SKILL.md
sync-gbrain/SKILL.md
test/fixtures/context-bill/tree-a/alpha/SKILL.md
test/fixtures/golden/claude-ship-SKILL.md
test/fixtures/golden/codex-ship-SKILL.md
test/fixtures/golden/factory-ship-SKILL.md
unfreeze/SKILL.md
benchmark-models/SKILL.md
canary/SKILL.md
codex/SKILL.md
context-save/SKILL.md
cso/SKILL.md
devex-review/SKILL.md
document-release/SKILL.md
gstack-upgrade/SKILL.md
health/SKILL.md

Metadata

Files
0
Version
28d59ad
Hash
1a4e91d0
Indexed
2026-07-25 11:04

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:18
浙ICP备14020137号-1 $Гость$