npx skills add ...
npx skills add vm0-ai/vm0-skills --skill hackernews
Hacker News API for stories and comments. Use when user mentions "Hacker
npx skills add vm0-ai/vm0-skills --skill hackernews
Fetch IDs of the current top 500 stories:
Fetch the best stories (highest voted over time):
Fetch the newest stories:
Fetch "Ask HN" posts:
Fetch "Show HN" posts:
Fetch job postings:
Fetch full details for any item by ID. Replace <item-id> with the actual item ID:
Response fields:
| Field | Description |
|---|---|
id | Unique item ID |
type | story, comment, job, poll, pollopt |
by | Username of author |
time | Unix timestamp |
title | Story title (stories only) |
url | Story URL (if external link) |
text | Content text (Ask HN, comments) |
score | Upvote count |
descendants | Total comment count |
kids | Array of child comment IDs |
Fetch top 5 stories with full details. Replace <item-id> with the actual item ID:
Fetch a story and its top-level comments. Replace <story-id> with the actual story ID:
Then for each comment ID in the kids array, replace <comment-id> with the actual comment ID:
Fetch user details. Replace <username> with the actual username:
Response fields:
| Field | Description |
|---|---|
id | Username |
created | Account creation timestamp |
karma | User's karma score |
about | User bio (HTML) |
submitted | Array of item IDs submitted |
Fetch a user's recent submissions. Replace <username> with the actual username:
Get the current largest item ID (useful for polling new items):
Get recently changed items and profiles (for real-time updates):
| Endpoint | Description |
|---|---|
/v0/topstories.json | Top 500 stories |
/v0/beststories.json | Best stories |
/v0/newstories.json | Newest 500 stories |
/v0/askstories.json | Ask HN stories |
/v0/showstories.json | Show HN stories |
/v0/jobstories.json | Job postings |
/v0/item/{id}.json | Item details |
/v0/user/{id}.json | User profile |
/v0/maxitem.json | Current max item ID |
/v0/updates.json | Changed items/profiles |
url for Ask HN)