본문으로 건너뛰기
Skillpedia
웹 스크레이핑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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/garrytan/gstack/blob/main/browser-skills/hackernews-frontpage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“지금 Hacker News의 상위 30개 글을 점수와 댓글 수와 함께 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 Hacker News 첫 페이지를 열고 글 행을 읽은 뒤, 각 글의 순위, 제목, 링크, 점수, 댓글을 하나의 목록으로 돌려줍니다.

기술 내용 (원본 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬