← 返回 Skills 市场
gchapim

Hacker News

作者 gchapim · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
3726
总下载
10
收藏
22
当前安装
1
版本数
在 OpenClaw 中安装
/install hackernews
功能描述
Browse and search Hacker News. Fetch top, new, best, Ask HN, Show HN stories and job postings. View item details, comments, and user profiles. Search stories and comments via Algolia. Find "Who is hiring?" threads. Use for any HN-related queries like "what's trending on HN?", "search HN for AI", "show comments on story X", "who is hiring?", "latest Ask HN posts".
使用说明 (SKILL.md)

Hacker News

CLI tool for the Hacker News API. No authentication required.

CLI Usage

Run scripts/hn.sh \x3Ccommand>. All commands support --json for raw JSON output.

Browse Stories

# Top/trending stories (default 10)
scripts/hn.sh top
scripts/hn.sh top --limit 20

# Other lists
scripts/hn.sh new --limit 5     # newest
scripts/hn.sh best --limit 10   # highest rated
scripts/hn.sh ask                # Ask HN
scripts/hn.sh show               # Show HN
scripts/hn.sh jobs               # job postings

View Item Details & Comments

# Full item details (story, comment, job, poll)
scripts/hn.sh item 12345678

# Top comments on a story
scripts/hn.sh comments 12345678
scripts/hn.sh comments 12345678 --limit 10 --depth 2

User Profiles

scripts/hn.sh user dang

Search

# Basic search
scripts/hn.sh search "rust programming"

# With filters
scripts/hn.sh search "LLM" --type story --sort date --period week --limit 5
scripts/hn.sh search "hiring remote" --type comment --period month

Who is Hiring

# Latest "Who is hiring?" job postings
scripts/hn.sh whoishiring
scripts/hn.sh whoishiring --limit 20

Common Workflows

User asks Command
"What's trending on HN?" scripts/hn.sh top
"Latest Ask HN posts" scripts/hn.sh ask
"Search HN for X" scripts/hn.sh search "X"
"Show me comments on story Y" scripts/hn.sh comments Y
"Who is hiring?" scripts/hn.sh whoishiring
"Tell me about HN user Z" scripts/hn.sh user Z

Notes

  • Story lists use parallel fetching for speed
  • HTML in comments/bios is auto-converted to plain text
  • Timestamps shown as relative time ("2h ago", "3d ago")
  • For API details, see references/api.md
安全使用建议
This skill appears to do what it says: a lightweight CLI that reads public Hacker News APIs and Algolia. Before installing or running it, ensure your environment has curl, jq and python3 available (the metadata omitted those). Review the script if you are uncomfortable executing code from an unknown source — it performs network calls to hacker-news.firebaseio.com and hn.algolia.com and writes temporary files under a tmpdir which it then removes. Because it runs shell commands, run in a restricted environment or sandbox if you want to limit risk.
功能分析
Type: OpenClaw Skill Name: hackernews Version: 1.0.0 This skill bundle is benign. The `SKILL.md` provides clear instructions for interacting with Hacker News and does not contain any prompt injection attempts. The `scripts/hn.sh` script uses `curl`, `jq`, and `python3` to fetch and process data from legitimate Hacker News APIs (hacker-news.firebaseio.com and hn.algolia.com). It handles temporary files for parallel fetching and URL-encodes search queries, demonstrating safe practices. There is no evidence of data exfiltration, malicious execution, persistence, or access to sensitive local resources.
能力评估
Purpose & Capability
Name/description match the included code and docs: the script fetches Hacker News lists, items, comments, users, and (per references) uses Algolia for search. One small inconsistency: registry metadata lists no required binaries, but the script clearly uses curl, jq and python3.
Instruction Scope
SKILL.md tells the agent to run the provided scripts/hn.sh CLI and documents commands. The runtime instructions and the script stay within the stated purpose (fetching HN data from public APIs). There are no instructions to read unrelated files, exfiltrate secrets, or contact unexpected endpoints.
Install Mechanism
There is no install spec (instruction-only), so nothing is written to disk at install time. The script will run local commands and temporary files (mktemp). Note: because there is no install step, callers must have curl, jq and python3 available — the registry metadata did not declare these dependencies.
Credentials
The skill requires no environment variables or credentials and only contacts public Hacker News (Firebase) and Algolia endpoints. No sensitive env vars or unrelated service credentials are requested.
Persistence & Privilege
The skill does not request persistent inclusion (always: false) and does not modify other skills or system-wide settings. It relies on executing the provided script when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hackernews
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hackernews 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the Hacker News skill: - Browse top, new, best, Ask HN, Show HN stories, and job postings. - View item details, comments, and user profiles. - Search stories and comments using Algolia. - Find and view "Who is hiring?" threads. - Supports CLI usage for all features with customizable limits and filters. - Outputs clean, readable results with auto-converted text and relative timestamps.
元数据
Slug hackernews
版本 1.0.0
许可证
累计安装 23
当前安装数 22
历史版本数 1
常见问题

Hacker News 是什么?

Browse and search Hacker News. Fetch top, new, best, Ask HN, Show HN stories and job postings. View item details, comments, and user profiles. Search stories and comments via Algolia. Find "Who is hiring?" threads. Use for any HN-related queries like "what's trending on HN?", "search HN for AI", "show comments on story X", "who is hiring?", "latest Ask HN posts". 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3726 次。

如何安装 Hacker News?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hackernews」即可一键安装,无需额外配置。

Hacker News 是免费的吗?

是的,Hacker News 完全免费(开源免费),可自由下载、安装和使用。

Hacker News 支持哪些平台?

Hacker News 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hacker News?

由 gchapim(@gchapim)开发并维护,当前版本 v1.0.0。

💬 留言讨论