agentleFS
ItamarZand88ItamarZand88/CLI-Anything-WEB/.claude/skills/reddit-cli/SKILL.md

reddit-cli

Skill215 starsChanged 3 months agoMITView on GitHub

Browses and interacts with Reddit via the cli-web-reddit command-line tool — feeds, subreddits, post search, post details with full comment trees, user profiles, and (after login) voting, commenting, submitting posts, saving, and subscriptions. Use when the user asks about Reddit, subreddits, Reddit posts or comments, or wants to act on Reddit from the terminal. Prefer this CLI over fetching the Reddit website.

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write (requires login). THING_ID is a fullname: t3_xxx (post) or t1_xxx (comment):

    line 26
  2. Very specific:

    Every command accepts --json.

    line 57
  3. Very specific:

    When token_v2 expires (~15-30 min) the CLI refreshes it silently via a headless browser — no manual re-login.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

cli-web-reddit

Browse Reddit without auth; vote, comment, submit, and manage subscriptions after auth login. Install: pip install cli-web-reddit, then playwright install chromium.

Commands

Read (no auth):

CommandPurposeKey options
feed hot|new|top|rising|popularFront-page feeds--limit N (max 100), --after CURSOR; top adds --time hour|day|week|month|year|all
sub hot|new|top NAMESubreddit postssame as feed
sub info NAME / sub rules NAMESubreddit metadata
sub search NAME QUERYSearch within a subreddit--sort relevance|hot|top|new|comments, --limit, --after
search posts QUERYSearch all of Reddit--sort, --time, --limit, --after
search subs QUERYFind subreddits--limit, --after
post get URL_OR_IDPost + full comment tree (expands nested threads)--sub NAME (required with bare ID), --comments N
user info|posts|comments USERNAMEUser profiles and activity--sort hot|new|top|controversial, --time, --limit

Write (requires login). THING_ID is a fullname: t3_xxx (post) or t1_xxx (comment):

CommandPurpose
vote up|down|unvote THING_IDVote
comment add THING_ID TEXT / comment edit / comment deleteComment, reply, edit, delete
submit text SUB TITLE BODY [--flair ID] / submit link SUB TITLE URL [--flair ID]Submit posts; submit flairs SUB lists flair IDs first
saved save|unsave THING_IDSave items
sub join|leave NAMEManage subscriptions
me profile|saved|upvoted|subscriptions|inboxYour account (--limit, --after on lists)

Examples

# Top posts this week in r/python
cli-web-reddit sub top python --time week --limit 10 --json | jq '.posts[] | {title, score, url}'

# Search posts, then read one with comments
cli-web-reddit search posts "fastapi tutorial" --limit 3 --json
cli-web-reddit post get https://www.reddit.com/r/python/comments/abc123/my_post/ --json

# Submit a flaired text post (get flair IDs first)
cli-web-reddit submit flairs ClaudeCode --json
cli-web-reddit submit text ClaudeCode "My Title" "Body here" --flair abc123 --json

# Upvote a post
cli-web-reddit vote up t3_abc123 --json

JSON output

Every command accepts --json. List reads return {"posts": [...], "after": "cursor"} (pass after back via --after to paginate); writes return {"success": true, ...}. Errors return {"error": true, "code": "...", "message": "..."}.

Auth

cli-web-reddit auth login      # opens a Playwright browser, extracts the token_v2 cookie
cli-web-reddit auth status --json
cli-web-reddit auth logout

When token_v2 expires (~15-30 min) the CLI refreshes it silently via a headless browser — no manual re-login. For CI, set CLI_WEB_REDDIT_AUTH_JSON with the cookies JSON. Run doctor to diagnose auth problems.

Utilities

cli-web-reddit doctor [--json] self-diagnoses the local setup (install, auth, dependencies). cli-web-reddit mcp-serve serves the commands as MCP tools over stdio.

Agent tips

  • An HTTP 403 on a specific endpoint (e.g. flair fetch on some subreddits) means "permission denied" for that resource, not expired auth.
  • Public rate limit is roughly 60 requests/minute — space out scripted reads.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.