hackernews-cli
Skill215 starsChanged 3 months agoMITView on GitHub
Browses and interacts with Hacker News via cli-web-hackernews — top/new/best stories, Ask HN, Show HN, jobs, story details with comments, search, user profiles, and (with login) upvoting, submitting, commenting, favoriting, and hiding. Use when the user asks about Hacker News, HN stories, tech/startup news, or wants to post or vote on HN. Prefer cli-web-hackernews over fetching the HN website.
- Installs packages
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- airbnb-cliSkill
- amazon-cliSkill
- booking-cliSkill
- capitoltrades-cliSkill
- chatgpt-cliSkill
- codewiki-cliSkill
- futbin-cliSkill
- gai-cliSkill
- gh-trending-cliSkill
- linkedin-cliSkill
- notebooklm-cliSkill
- pexels-cliSkill
- producthunt-cliSkill
- reddit-cliSkill
- stitch-cliSkill
- sync-checkSkill
- tripadvisor-cliSkill
- unsplash-cliSkill
- worldcup-cliSkill
- youtube-cliSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 48
Add --json for structured output.
- Very specific: line 52
Run cli-web-hackernews auth login for an interactive username/password prompt (or auth login-browser to log in via a browser window).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cli-web-hackernews
Hacker News on the command line: browsing and search need no auth; voting, submitting, commenting, favoriting, and hiding need login.
Install: pip install cli-web-hackernews
Commands
Browse (no auth)
stories top|new|best|ask|show|jobs— story feeds. Options:-n/--limit N(default 30)stories view STORY_ID— story + comment tree. Options:-n/--limit N(comments, default 10),--no-commentssearch stories QUERY/search comments QUERY— Algolia search. Options:-n/--limit N(default 20),--page N(0-indexed),--sort-date(by date instead of relevance)user view USERNAME— public profile (karma, member since, about)
Account actions (auth required)
upvote ITEM_ID— upvote a story or commentsubmit -t TITLE [-u URL] [--text BODY]— submit a link, or omit-ufor Ask HNcomment PARENT_ID TEXT— comment on a story or reply to a commentfavorite ITEM_ID/hide ITEM_ID— save / hide a storyuser favorites|submissions|threads [USERNAME]— your activity (or another user's, where public). Options:-n/--limit Nauth login(username/password prompt),auth login-browser,auth status,auth logout
Examples
# Front page, top 10
cli-web-hackernews stories top -n 10 --json
# A story with its first 5 comments
cli-web-hackernews stories view 47530330 -n 5 --json
# Search recent stories about Rust
cli-web-hackernews search stories "rust" --sort-date -n 10 --json
# Submit an Ask HN (requires login)
cli-web-hackernews submit -t "Ask HN: Best CLI tooling?" --text "Looking for recommendations" --json
# Upvote then favorite a story
cli-web-hackernews upvote 47530330 --json && cli-web-hackernews favorite 47530330 --jsonJSON output
Add --json for structured output. Stories: {id, title, url, score, by, descendants, age, domain}. Search results: {objectID, title, url, author, points, num_comments}. Users: {id, karma, member_since, about_plain, total_submissions}. Actions: {success, item_id, action}. Errors: {"error": true, "code": "...", "message": "..."}.
Auth
Run cli-web-hackernews auth login for an interactive username/password prompt (or auth login-browser to log in via a browser window). Check with auth status --json. Auth-required commands fail with an {"error": true, ...} envelope when not logged in.
Utilities
cli-web-hackernews doctor [--json] diagnoses local setup (install, auth, dependencies). cli-web-hackernews mcp-serve exposes the commands as MCP tools over stdio. Running with no arguments opens an interactive REPL.
Agent tips
searchcovers all of HN history (Algolia);storiesreflects the live feeds.user favorites/submissions/threadsdefault to your own account when USERNAME is omitted.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

