Hacker News

Hacker News is a skill for Claude Code, Codex from wanikua/danghuangshang. It costs 23 tokens per session (744 once invoked), scanned A, original, MIT.

A search and browsing tool for Hacker News, a website where developers share technology stories and discuss them. It can access stories, comments, user profiles, and hiring posts through Hacker News APIs.

In plain words
What is it for?
Use it to find stories by topic, inspect comments and users, retrieve front-page or newest posts, and search hiring, Ask HN, or Show HN discussions.
Why use it?
It avoids manually searching the site or writing separate requests for each kind of content. It supports both live item lookup and full-text search with filters.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to find stories by topic, inspect comments and users, retrieve front-page or newest posts, and search hiring, Ask HN, or Show HN discussions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wanikua/danghuangshang/hacker-news
About the project

danghuangshang is a multi-agent collaboration system that organizes specialized AI agents into a hierarchy modeled on historical Chinese government institutions. Users delegate tasks to these agents through platforms such as Discord or Feishu, with roles for coordination, coding, review, memory, and automation. Its catalogue entries are the project's agents and skills.

wanikua/danghuangshang · 2,715 stars · on GitHub · danghuangshang.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wanikua/danghuangshang --skill hacker-news
Clone the repo
git clone --depth 1 https://github.com/wanikua/danghuangshang

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Hacker News

README.md
[![agentmods](https://agentmods.dev/badge/skills/wanikua/danghuangshang/hacker-news/github.svg)](https://agentmods.dev/skills/wanikua/danghuangshang/hacker-news)
Your own site
<a href="https://agentmods.dev/skills/wanikua/danghuangshang/hacker-news"><img src="https://agentmods.dev/badge/skills/wanikua/danghuangshang/hacker-news/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Hacker News

Your own site · 80×15
<a href="https://agentmods.dev/skills/wanikua/danghuangshang/hacker-news"><img src="https://agentmods.dev/badge/skills/wanikua/danghuangshang/hacker-news.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00744
Opus 5.5 $0.00009 $0.00298
Sonnet 5.5 $0.00005 $0.00149
Haiku 4.5 $0.00002 $0.00074

Measured 3mo ago against content hash 50afa01ae350, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Hacker News scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hacker-news/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quick Reference

Topic File
API endpoints api.md
Search patterns search.md

Core Rules

1. Two APIs Available

API Use Case Base URL
Official HN API Single items, real-time https://hacker-news.firebaseio.com/v0
Algolia Search Full-text search, filters https://hn.algolia.com/api/v1

2. Official API Endpoints

  • /topstories.json — top 500 story IDs
  • /newstories.json — newest 500 story IDs
  • /beststories.json — best stories
  • /askstories.json — Ask HN
  • /showstories.json — Show HN
  • /jobstories.json — job postings
  • /item/{id}.json — story/comment details
  • /user/{username}.json — user profile

3. Algolia Search Syntax

/search?query=TERM&tags=TAG&numericFilters=FILTER

Tags (combinable with AND):

  • story, comment, poll, job, ask_hn, show_hn
  • author_USERNAME — posts by user
  • story_ID — comments on story

Numeric filters:

  • created_at_i>TIMESTAMP — after date
  • points>N — minimum points
  • num_comments>N — minimum comments

4. Common Patterns

Request Endpoint
Frontpage Official /topstories.json → fetch first 30 items
Search posts Algolia /search?query=X&tags=story
User's posts Algolia /search?tags=author_USERNAME
Who is hiring? Algolia /search?query=who is hiring&tags=story,author_whoishiring
Comments on story Algolia /search?tags=comment,story_ID
This week's top Algolia /search?tags=story&numericFilters=created_at_i>WEEK_TS

5. Response Handling

  • Official API returns IDs → batch fetch items (parallelize)
  • Algolia returns full objects with hits[] array
  • Story object: id, title, url, score, by, time, descendants (comment count)
  • Comment object: id, text, by, parent, time

6. Rate Limits

  • Official API: No auth required, generous limits
  • Algolia: 10,000 requests/hour (no key needed)
  • Always paginate large results (page=N, hitsPerPage=N)

Read the full file on GitHub · 75 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 75 lines · 23 tokens per session scan A 50afa01ae350

Subscribe to this mod's changes

Hacker News is a skill published in the GitHub repository wanikua/danghuangshang (2,715 stars, last pushed 6mo ago), licensed MIT. It adds 23 tokens to every session and 744 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Hacker News compared with skills from other repositories

Hacker News next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Hacker Newswanikua/danghuangshangSkill2.7k6mo agoMITA23Claude Code, Codex
setup-discord-multibotLihan-Zhong/claude-code-discord-multibotSkill5yesterdayMITC179Claude Code
kimaki-debugremorses/kimakiSkill1.5kyesterdayMITA95Claude Code, Codex
kimaki-tunnelremorses/kimakiSkill1.5kyesterdayMITA91Claude Code, Codex
switchsandbox-quantum/switchSkill4.9ktodaynoneA135Claude Code, Codex
npm-packageremorses/kimakiSkill1.5kyesterdayMITC78Claude Code, Codex
new-skillremorses/kimakiSkill1.5kyesterdayMITC61Claude Code, Codex