hn-summarize
하는 일
이 스킬은 Hacker News 첫 페이지 기사나 지정한 기사를 댓글 스레드와 함께 읽고 요약을 씁니다. 기술 뉴스와 토론을 빠르게 훑어보고 싶은 사람들을 위한 것입니다.
사용하는 경우
- ✓오늘 Hacker News 상위 10개 기사의 요약을 원할 때.
- ✓특정 Hacker News 기사에 대해 사람들이 무슨 말을 했는지 알고 싶을 때.
- ✓특정 주제에 관한 최근 Hacker News 기사를 찾고 싶은 경우.
스킬 링크
https://github.com/ykdojo/claude-code-tips/blob/main/skills/hn-summarize/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Hacker News 상위 10개 기사를 요약하고, 댓글의 주요 내용도 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 웹 페이지 대신 공식 Hacker News 데이터 피드를 사용해 기사와 점수, 댓글 수를 가져옵니다. 그다음 연결된 글과 댓글 스레드를 읽어 요약을 씁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
HN Summarize
hckrnews.com is a JavaScript-rendered front end - curling it returns an empty shell, so do not scrape it. Instead use the official Hacker News APIs (Firebase + Algolia), which give the same stories with points, comment counts, and full comment trees. These APIs return plain JSON, so plain curl works fine.
1. Current top stories (the "top 10")
topstories.json returns 500 story IDs in front-page rank order. Take the first N and look up each item.
curl -sL 'https://hacker-news.firebaseio.com/v0/topstories.json' -o /tmp/top.json
python3 -c "
import json,urllib.request
ids=json.load(open('/tmp/top.json'))[:10]
for i,sid in enumerate(ids,1):
d=json.load(urllib.request.urlopen(f'https://hacker-news.firebaseio.com/v0/item/{sid}.json'))
print(f\"{i}. {d.get('title')} | {d.get('score')} pts | {d.get('descendants',0)} comments | id {sid}\")
print(f\" {d.get('url','(text post)')}\")
"
2. Find a specific story by topic (Algolia search)
curl -sL 'https://hn.algolia.com/api/v1/search?query=YOUR+QUERY&tags=story' -o /tmp/s.json
python3 -c "
import json
for h in json.load(open('/tmp/s.json'))['hits'][:8]:
print(h['objectID'], '|', h.get('points'), 'pts |', h.get('num_comments'), 'comments |', h['title'])
print(' ', h.get('url'))
"
- Add
&numericFilters=created_at_i>UNIXTSto restrict to recent stories (avoids matching an old duplicate of the same headline). searchranks by relevance;search_by_dateranks by recency.- Pick the
objectIDwith the highest points/comments - that's the live front-page discussion.
3. Fetch a story + its comment tree
curl -sL 'https://hn.algolia.com/api/v1/items/OBJECT_ID' -o /tmp/hn.json
The response is a nested tree: top-level children are root comments, each with their own children. Flatten and print root comments in thread order (HN's default ranking ≈ this order):
python3 -c "
import json,re
d=json.load(open('/tmp/hn.json'))
def clean(t):
t=re.sub('<[^>]+>',' ',t)
for a,b in [(''',chr(39)),('>','>'),('<','<'),('&','&'),('"','\"')]:
t=t.replace(a,b)
return re.sub(' +',' ',t).strip()
for c in d.get('children',[])[:15]:
if c.get('text'):
print(f\"{c.get('author')}: {clean(c['text'])[:550]}\")
print('---')
"
Note: Algolia's per-comment points field is now always null, so sort by thread order (already roughly HN's ranking) rather than by points. For deeper threads, recurse into children and track depth.
4. Fetch the linked article
Fetch the story's article with curl -sL <url>, then strip tags with sed 's/<[^>]*>//g' to extract readable text, or grep for the key sentences. If the page is JS-heavy or paywalled, try a Wayback Machine snapshot:
curl -sL 'http://archive.org/wayback/available?url=ARTICLE_URL' -o /tmp/wb.json
python3 -c "import json;print(json.load(open('/tmp/wb.json'))['archived_snapshots'].get('closest',{}).get('url'))"
Then fetch the snapshot URL the same way. If the host blocks outbound curl requests, fetch through a container or proxy you have available.
Summary format
For each story give: title, points, comment count, source, a few sentences on what the article says, then comment themes - group the discussion into 3-6 recurring threads (agreement, rebuttals, tangents) rather than listing comments one by one. Note when the top thread is a critical/contrarian take, since that's common on HN.
자주 묻는 질문
hckrnews.com 사이트를 직접 읽지 않는 이유는 무엇인가요?
그 사이트는 JavaScript로 로드되므로, 스킬은 일반 데이터를 돌려주는 공식 피드를 사용합니다.
주제로 검색할 수 있나요?
네. Hacker News를 검색해 주제에 맞는 기사를 보여 줄 수 있습니다.
댓글도 요약하나요?
네. 기사의 전체 댓글 스레드를 읽고 토론 내용을 요약합니다.
상세 정보
작성자의 원본 설명
Fetch and summarize Hacker News / hckrnews.com top stories, articles, and their comment threads. Use when asked to summarize HN front-page stories, a specific HN story plus its discussion, or "the top N from hckrnews".
repo: ykdojo/claude-code-tips
인기도
- GitHub 스타
- 10k
- 순위
- #11901
- 라이선스
- —
- 업데이트
- 2026. 9. 25.
댓글
- …
이 저장소의 다른 스킬
gha
10k에이전트가 GitHub Actions 워크플로가 실패한 이유와 같은 작업이 계속 실패하는지 알아보도록 돕습니다.
half-clone
10k에이전트가 긴 채팅의 뒤쪽 절반을 새 세션으로 복사해, 최근 작업은 남기고 토큰 사용을 줄이도록 돕습니다.
handoff
10k에이전트가 새 채팅이 목표, 진행 상황, 다음 단계를 분명히 이어받을 수 있도록 인수인계 문서를 쓰도록 돕습니다.
private-github-search
10k에이전트가 로컬 사본과 빠른 텍스트 검색을 사용해, 비공개 저장소를 포함한 모든 GitHub 저장소를 검색하도록 돕습니다.
비슷한 스킬
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.
notcrawl
394k에이전트가 저장된 Notion 워크스페이스 사본을 검색하고, 페이지와 데이터베이스를 찾아보며, 페이지를 Markdown 파일로 내보내도록 돕습니다.
knowledge-entities
394k에이전트가 사람, 회사, 프로젝트가 무엇인지 식별한 뒤, Knowledge 볼트에 출처가 있는 프로필 페이지를 작성하도록 돕습니다.