Hacker news

From clawic/skills · View interactive version

Hacker news is an AI agent skill from the GitHub repository clawic/skills. Search and browse Hacker News with API access to stories, comments, users, and hiring threads.

How to use this skill

Skill file

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

3. Algolia Search Syntax

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

Tags (combinable with AND):

Numeric filters:

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

6. Rate Limits

7. Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.