本文へスキップ
Skillpedia
Webスクレイピング139k · #687

hackernews-frontpage

できること

このスキルは、Hacker Newsのトップページを読み、上位30件の記事を構造化されたデータとして返します。そこで話題になっているものを、整理された一覧で手早く知りたい人向けです。

使う場面

  • ✓Hacker Newsの現在の上位記事がほしいとき。
  • ✓記事のタイトル、リンク、ポイント数の一覧がほしいとき。
  • ✓Hacker Newsでどの記事が上位にあるかを追いたいとき。

スキルのリンク

https://github.com/garrytan/gstack/blob/main/browser-skills/hackernews-frontpage/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/garrytan/gstack/blob/main/browser-skills/hackernews-frontpage/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“今のHacker Newsの上位30件の記事を、ポイントとコメント数とともに教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、Hacker Newsのトップページを開き、記事の行を読み、各記事の順位、タイトル、リンク、ポイント、コメントを1つの一覧として返します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

よくある質問

何件の記事を返しますか?

説明によると、上位30件の記事を返します。

各記事にはどんな情報がありますか?

順位、タイトル、リンク、ポイント、コメント数です。

ログインが必要ですか?

いいえ。スキルは、認証なしで動くと述べています。

詳細

作者による元の説明

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

repo: garrytan/gstack

人気

GitHubのスター
139k
ランキング
#687
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル