Producthunter

From rayclaw/rayclaw · View interactive version

Producthunter is an AI agent skill from the GitHub repository rayclaw/rayclaw. Fetch today's Product Hunt launches via GraphQL API and generate a daily digest report in Chinese.

How to use this skill

Skill file

Product Hunt Daily Report Skill

Generate a daily digest of Product Hunt launches, sorted by votes, with Chinese commentary.

Configuration

How PH Date Cycle Works

Product Hunt posts go live at 08:01 UTC daily (~12:01 AM Pacific). To fetch "today's" products:

Fetching Products

Run this bash command to fetch today's top 20 PH launches:

POSTED_AFTER=$(date -u -d "yesterday 00:00:00" +%Y-%m-%dT%H:%M:%SZ)

curl -s -X POST https://api.producthunt.com/v2/api/graphql \
  -H "Authorization: Bearer IOsdE9GUWyXdlYRs5EeOFQzESbHqMUF3snQ-wkghP78" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "query { posts(first: 20, order: VOTES, postedAfter: \"'"$POSTED_AFTER"'\") { edges { node { name tagline votesCount commentsCount website url createdAt featuredAt topics { edges { node { name } } } } } } }"
  }' | jq '[.data.posts.edges[].node | {name, tagline, votesCount, commentsCount, url, topics: [.topics.edges[].node.name]}]'

Output Format

Format the result as a Chinese daily report. Take the Top 10 by votes:

🚀 Product Hunt 每日热榜 Top 10(YYYY-MM-DD)

1. 🏆 ProductName — ⬆️ votes | 💬 comments
   📝 Tagline
   🏷️ Topic1, Topic2 | 🔗 PH链接

2. ...

📊 今日洞察:[1-2句话总结当天趋势,如AI工具占比、新兴赛道等]

URL Handling

The API returns tracking URLs like:

https://www.producthunt.com/products/xxx?utm_campaign=...

For cleaner display, strip UTM params or use the base product URL:

https://www.producthunt.com/products/xxx

Error Handling

Notes

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.