跳到正文
cccskills
免费在 GitHub 公开

reddit

Read Reddit posts, comment threads, subreddit listings, and search results through a logged-in session cookie. Use when given a reddit.com link, or when asked to check what people say on Reddit (r/liftosaur, r/fitness, r/weightroom, r/boostcamp, etc).

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur星标 761(GitHub 761 + cccskills 0)
集成工具Reddit

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Read Reddit

Target: $ARGUMENTS

Reddit blocks anonymous requests and WebFetch. Every request here sends the logged-in cookie from lambda/scripts/reddit_cookie.txt and a desktop Chrome User-Agent. Without both, Reddit returns 403 or an HTML page.

A single post with its comments

Use lambda/scripts/fetch_reddit.ts. It appends .json to the URL and prints the post and the full comment tree as Markdown.

REDDIT_COOKIE="$(cat lambda/scripts/reddit_cookie.txt)" npm run r lambda/scripts/fetch_reddit.ts "<post-url>" 2>/dev/null
  • Pass the post permalink: https://www.reddit.com/r/<sub>/comments/<id>/<slug>/. Share links (/s/<code>) and redd.it/<id> must be resolved first: curl -sLI -o /dev/null -w '%{url_effective}' "<url>".
  • Strip query strings (?utm_source=...) from the URL before passing it. The script appends .json to the end of the string.
  • 2>/dev/null hides the ts-node punycode warning. Drop it when the output is empty, to see the Failed: <status> line.
  • The script only handles post URLs. A subreddit or search URL prints nothing.
  • Long threads: pipe through head -n 300 first, then read more if needed.

Subreddit listings and search

The script does not handle listings. Call the JSON API with curl and the same headers:

UA="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36"
reddit() { curl -s -A "$UA" -H "Accept: application/json" -H "Cookie: $(cat lambda/scripts/reddit_cookie.txt)" "$1"; }
LIST='.data.children[].data | "\(.created_utc | todate | .[:10])  \(.score)↑ \(.num_comments)c  r/\(.subreddit)  \(.title)\n    https://www.reddit.com\(.permalink)"'

reddit "https://www.reddit.com/r/liftosaur/new.json?limit=25" | jq -r "$LIST"
reddit "https://www.reddit.com/r/liftosaur/top.json?t=month&limit=25" | jq -r "$LIST"
reddit "https://www.reddit.com/search.json?q=liftosaur&sort=new&limit=25" | jq -r "$LIST"
reddit "https://www.reddit.com/r/fitness/search.json?q=liftosaur&restrict_sr=1&sort=new&limit=25" | jq -r "$LIST"
  • Sort options: new, hot, top (with t=day|week|month|year|all), relevance and comments for search.
  • Paging: take .data.after from the response and pass &after=<value>. The maximum limit is 100.
  • A user's posts and comments: https://www.reddit.com/user/<name>/submitted.json and /comments.json. Comments have .body and .link_permalink in place of .title and .permalink.
  • To read a thread from a listing, pass its permalink to fetch_reddit.ts.

When requests fail

  • 403, or HTML where JSON was expected: the cookie expired. Ask Anton to paste a fresh Cookie header from a logged-in reddit.com tab (DevTools → Network → any reddit.com request → Request Headers → cookie) into lambda/scripts/reddit_cookie.txt.
  • 429: rate limited. Wait a minute and make fewer requests. Never loop over many threads in parallel.
  • 404: the post was deleted, or the subreddit is private or banned.

Rules

  • Read only. Never post, vote, comment, or send messages with this cookie. It is Anton's personal account.
  • Never print the cookie value into the chat or into any file other than reddit_cookie.txt.
  • When summarizing a thread, quote users by u/<name> and link the permalink, so Anton can open the source.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add a new built-in exercise to Liftosaur end-to-end — image (gymvisual.com → S3), catalog registration, description page, and the LLM/MCP exercise list. Use when adding one or more built-in exercises to the app catalog.

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur7612026年10月26日 更新

add-page

免费

Add a new server-rendered page to the Liftosaur website. Use when creating new public-facing pages with routing, SSR, and client hydration.

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur7612026年10月26日 更新

Create a 30%-off coupon for an affiliate or creator on iOS and Android, and draft the reply that tells them how to use it. Use when asked to create, set up or send a coupon or promo code for an affiliate, influencer or creator.

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur7612026年10月26日 更新

Interactively investigate a production Rollbar error. Accepts an occurrence id, item id, item counter, or Rollbar URL. Fetches the error data, assesses how widespread it is, drills into affected users (events, logs, storage, captured state), and works with the developer toward a fix or ignore decision. Use for collaborative debugging; use /fix-rollbar for a straight fetch-and-fix of a single occurrence.

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur7612026年10月26日 更新

Investigate a user-reported issue using server logs, user events, storage snapshots, and Rollbar. Use when given a user id or email plus an issue description (e.g. from a support email).

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur7612026年10月26日 更新

feature

免费

Build a feature end to end — decide worktree vs here, design the architecture and debate it with codex, get the user's approval on a one-pass-readable plan, state the API/state contract, implement with visible diffs, then run two codex reviews (bugs + architecture) and document the result. Use when asked to build/implement/add a feature or do a refactor that involves design decisions.

中文简介正在准备中。当前显示原文说明。

astashov/liftosaur7612026年10月26日 更新

查看 astashov 的全部技能

报告此技能的问题