hackernews-intel
Skill720 starsChanged 44 days agoMITView on GitHub
Monitors Hacker News for user-configured keywords, deduplicates against a local SQLite cache, and sends Slack alerts for new matching posts. Use when asked to monitor Hacker News for mentions, track keywords on HN, get alerts when something is posted about a topic on Hacker News, or set up HN keyword monitoring. Trigger when a user mentions Hacker News alerts, HN monitoring, keyword tracking on HN, or wants to know when a topic appears on Hacker News.
- Reads credentials
- Installs packages
In this repository64 other files it gives its agents.
- app-store-review-arbitrageSkill
- blog-cover-generatorSkill
- brand-alchemySkill
- claude-md-generatorSkill
- cold-email-verifierSkill
- company-radarSkill
- competitor-pr-finderSkill
- cook-the-blogSkill
- dependency-update-botSkill
- docs-from-codeSkill
- domain-expired-opportunity-finderSkill
- dx-roasterSkill
- email-newsletterSkill
- explain-this-prSkill
- geo-gap-fixerSkill
- gh-issue-to-demand-signalSkill
- github-discussion-to-devrel-contentSkill
- seo-keyword-researchSkill
- graphic-case-studySkill
- graphic-chartSkill
- graphic-ebookSkill
- graphic-gifSkill
- graphic-slide-deckSkill
- human-toneSkill
- hyperframes-product-launch-videoSkill
- kill-the-standupSkill
- linkedin-job-post-to-buyer-pain-mapSkill
- linkedin-post-generatorSkill
- llms-txt-generatorSkill
- map-your-marketSkill
- meeting-brief-generatorSkill
- meta-ads-expertSkill
- meta-tribe-skillSkill
- newsletter-digestSkill
- noise2blogSkill
- noise-to-linkedin-carouselSkill
- npm-downloads-to-leadsSkill
- openverse-sfxSkill
- oss-launch-kitSkill
- outreach-sequence-builderSkill
- podcast-transcript-fetcherSkill
- position-meSkill
- pr-description-writerSkill
- pricing-finderSkill
- pricing-page-psychology-auditSkill
- producthunt-launch-kitSkill
- product-update-loggerSkill
- reddit-icp-monitorSkill
- reddit-post-engineSkill
- schema-markup-generatorSkill
- sdk-adoption-trackerSkill
- show-hn-writerSkill
- store-listing-optimizerSkill
- tweet-thread-from-blogSkill
- twitter-GTM-find-SkillSkill
- vc-curated-matchSkill
- vc-finderSkill
- vid-motion-graphicsSkill
- vid-product-launchSkill
- vid-sizzle-reelSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Check that these are set:
- Distinctive: line 22
If either is missing, stop and tell the user:
- Very specific: line 56
If HN_MIN_POINTS is set, skips posts below that threshold
- Distinctive: line 65
After the script runs, read its stdout output.
- Very specific: line 76
If Posts found: 0 and you expect results, check:
- Very specific: line 81
If Posts alerted: 0 but Posts found: N, the deduplication is working — those posts were seen in a previous run.
- Distinctive: line 89
Add to crontab to run every 4 hours:
- Distinctive: line 95
Add this line (adjust the path to match your install):
- Very specific: line 103
Create .github/workflows/hn-intel.yml in any repo:
- Very specific: line 132
Add HN_KEYWORDS, SLACK_WEBHOOK, and optionally HN_MIN_POINTS as repository secrets.
- Very specific: line 141
Update HN_KEYWORDS in your .env or environment.
- Very specific: line 150
Run node scripts/monitor-hn.js --reset to clear seen_posts and poll_log.
- Very specific: line 153
Run node scripts/monitor-hn.js --dry-run --days=7 to see the last 7 days of matching posts without alerting anyone.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Hacker News Intel
Monitor Hacker News for keywords. On each run, fetch new posts via the HN Algolia API, deduplicate against a local SQLite cache, and send Slack alerts for unseen matches. Run manually or schedule via cron or GitHub Actions.
Step 1: Check Setup
1a. Verify required environment variables
Check that these are set:
HN_KEYWORDS(required): comma-separated list of keywords to monitorSLACK_WEBHOOK(required): Slack Incoming Webhook URL for alerts
If either is missing, stop and tell the user:
HN_KEYWORDS: list the topics you want to monitor, comma-separated. Example:claude code,LLM agents,deno runtimeSLACK_WEBHOOK: create an Incoming Webhook at https://api.slack.com/apps. Select your workspace, enable Incoming Webhooks, and copy the URL.
1b. Verify script dependencies
ls /Users/ksd/Desktop/Varnan_skills/hackernews-intel/node_modules/better-sqlite3 2>/dev/nullIf missing:
cd /Users/ksd/Desktop/Varnan_skills/hackernews-intel && npm installStep 2: Run the Monitor
cd /Users/ksd/Desktop/Varnan_skills/hackernews-intel && node scripts/monitor-hn.jsFlags:
--dry-run: print matches to stdout without sending any Slack alerts. Use this to preview what would be alerted before committing.--days=N: on the first run, look back N days (default: 1). Only applies when the SQLite cache is empty.--reset: clear the cache and start fresh. Use when you change your keyword list significantly.
What the script does:
- Reads
HN_KEYWORDSfrom environment, splits by comma, trims whitespace - Opens (or creates) a SQLite database at the path in
HN_DB_PATH(default:./hn-intel.db) - For each keyword, calls
https://hn.algolia.com/api/v1/search_by_datewithnumericFilters=created_at_i>lastSeen - For each result, checks if the
objectIDis already inseen_posts— skips if yes - If
HN_MIN_POINTSis set, skips posts below that threshold - For new matching posts, sends a Slack alert and inserts the
objectIDinto the cache - Updates
poll_logwith the run summary - Prints a summary to stdout
Step 3: Review Results
After the script runs, read its stdout output. It will report:
Run complete.
Keywords checked: N
Posts found: N
Posts alerted: N
Posts skipped (already seen): N
Errors: NIf Posts found: 0 and you expect results, check:
- Are the keywords specific enough? Very broad terms (e.g. "AI") may return 0 results if HN Algolia returns too many and the time window is narrow
- Is the
--dayswindow large enough for the first run? Try--days=7 - Is the DB cache too aggressive? Try
--resetto clear it and rerun
If Posts alerted: 0 but Posts found: N, the deduplication is working — those posts were seen in a previous run.
Step 4: Schedule the Monitor
Option A: cron (macOS/Linux)
Add to crontab to run every 4 hours:
crontab -eAdd this line (adjust the path to match your install):
0 */4 * * * cd /Users/ksd/Desktop/Varnan_skills/hackernews-intel && node scripts/monitor-hn.js >> /tmp/hn-intel.log 2>&1Option B: GitHub Actions (recommended for teams)
Create .github/workflows/hn-intel.yml in any repo:
name: HN Intel Monitor
on:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
working-directory: hackernews-intel
- name: Run monitor
run: node scripts/monitor-hn.js
working-directory: hackernews-intel
env:
HN_KEYWORDS: ${{ secrets.HN_KEYWORDS }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
HN_MIN_POINTS: ${{ secrets.HN_MIN_POINTS }}Add HN_KEYWORDS, SLACK_WEBHOOK, and optionally HN_MIN_POINTS as repository secrets.
Note: GitHub Actions does not persist files between runs, so the SQLite cache resets each run. This means every run will find all posts within the default 1-day lookback window again. For persistent dedup on GitHub Actions, store the DB in a persistent location (S3, artifact cache, or a dedicated branch).
Step 5: Tune Keywords and Thresholds
Adding or changing keywords:
Update HN_KEYWORDS in your .env or environment. No restart needed — the script reads it fresh each run.
Setting a minimum points threshold:
Set HN_MIN_POINTS=10 to only alert on posts with 10 or more points. This cuts noise for broad keywords.
Including comments (not just stories):
Set HN_INCLUDE_COMMENTS=true to also monitor comments mentioning the keyword. Off by default — comments generate significantly more volume.
Resetting the cache:
Run node scripts/monitor-hn.js --reset to clear seen_posts and poll_log. The next run fetches fresh from the lookback window.
Testing a new keyword:
Run node scripts/monitor-hn.js --dry-run --days=7 to see the last 7 days of matching posts without alerting anyone.
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.

