{"id":50411590,"url":"https://github.com/cskwork/reddit-skill","last_synced_at":"2026-05-31T04:01:37.138Z","repository":{"id":355390677,"uuid":"1227920769","full_name":"cskwork/reddit-skill","owner":"cskwork","description":"Reddit MCP server with proper post-flair support, plus a standalone PRAW poster CLI.","archived":false,"fork":false,"pushed_at":"2026-05-26T13:16:03.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T15:20:29.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cskwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-03T10:51:48.000Z","updated_at":"2026-05-26T13:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cskwork/reddit-skill","commit_stats":null,"previous_names":["cskwork/reddit-mcp","cskwork/reddit-skill"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cskwork/reddit-skill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Freddit-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Freddit-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Freddit-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Freddit-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cskwork","download_url":"https://codeload.github.com/cskwork/reddit-skill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Freddit-skill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33718446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-31T04:01:36.678Z","updated_at":"2026-05-31T04:01:37.120Z","avatar_url":"https://github.com/cskwork.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reddit-skill\n\nA Claude **skill** (`reddit-poster`) for posting to Reddit the way a careful human would: discover the sub's flair and conventions, draft in a story-first style instead of marketing copy, dry-run, and stop for your approval before anything irreversible. Under the hood it's a Reddit **CLI** (`reddit-post`) with **proper flair handling** — built because the popular Reddit MCP servers either don't expose `flair_id` at all or pass the flair text where Reddit's API expects an ID.\n\n- **Skill** (primary): the bundled `reddit-poster` Claude skill runs a discover → draft → dry-run → approve flow so posts read human and land with the right flair.\n- **CLI**: `reddit-post post|flairs|get|edit|delete|reply|comments|search` — the engine the skill calls; works standalone too, no MCP client required.\n- **MCP server** (optional): the same tools over stdio, for people who prefer the MCP transport over the skill.\n\n## Install\n\n```bash\ngit clone https://github.com/cskwork/reddit-skill\ncd reddit-skill\nuv sync\n```\n\n## Claude Code skill — `reddit-poster` (the main way to use this)\n\nThe bundled skill at [`skills/reddit-poster/SKILL.md`](skills/reddit-poster/SKILL.md) is the recommended entry point. It teaches Claude to post like a person, not a bot: discover flairs and read the sub's top posts first, draft in a human (lowercase, story-first) style instead of marketing copy, dry-run before posting, follow Reddit's Responsible Builder Policy on disclosure, and stop for explicit user approval before any irreversible action (post, edit, delete).\n\nInstall:\n\n```bash\n# Windows\nmkdir \"$env:USERPROFILE\\.claude\\skills\\reddit-poster\"\ncopy skills\\reddit-poster\\SKILL.md \"$env:USERPROFILE\\.claude\\skills\\reddit-poster\\SKILL.md\"\n\n# macOS / Linux\nmkdir -p ~/.claude/skills/reddit-poster\ncp skills/reddit-poster/SKILL.md ~/.claude/skills/reddit-poster/SKILL.md\n```\n\nThen restart Claude Code and ask to post on Reddit; the skill loads automatically and drives the CLI for you — you mostly review drafts and approve the live submit.\n\n## Credentials\n\nResolution order: **env vars → `.env` (walked up from cwd) → `~/.claude.json` `mcpServers.reddit.env` (fallback)**.\n\nThe recommended setup is a `.env` at your project (or repo) root:\n\n```bash\ncp .env.example .env\n# then edit .env with your values\n```\n\n`.env` keys (all required):\n\n```\nREDDIT_CLIENT_ID\nREDDIT_CLIENT_SECRET\nREDDIT_USERNAME\nREDDIT_PASSWORD\n```\n\nGet the client id/secret from \u003chttps://www.reddit.com/prefs/apps\u003e by creating a \"script\" app. If your account uses 2FA, generate an app password instead of using your account password. `.env` is already in `.gitignore`.\n\nThe `~/.claude.json` fallback exists for backward compatibility with users who already configured Reddit credentials inside an MCP block — it keeps working, but new setups should prefer `.env`.\n\n## CLI (the engine the skill drives)\n\nYou can also call the CLI directly for one-off use without the skill:\n\n```bash\n# Discover what flairs r/ClaudeCode requires\nuv run reddit-post flairs ClaudeCode\n\n# Dry run — resolve flair id and print the plan without posting\nuv run reddit-post post --subreddit ClaudeCode \\\n  --title \"My new tool\" --body \"Body in markdown\" --flair Showcase --dry-run\n\n# Real post\nuv run reddit-post post --subreddit ClaudeCode \\\n  --title \"My new tool\" --body-file notes.md --flair Showcase\n```\n\n`stdin` works too: `cat notes.md | uv run reddit-post post --subreddit X --title Y --flair Z`.\n\n### Reply to a post or comment\n\n```bash\n# Reply to a post (top-level comment) — auto-detected from a submission URL\nuv run reddit-post reply https://www.reddit.com/r/X/comments/POST_ID/slug/ \\\n  --body-file reply.md --dry-run\n\n# Reply to a specific comment — auto-detected from a comment URL\nuv run reddit-post reply https://www.reddit.com/r/X/comments/POST_ID/slug/COMMENT_ID/ \\\n  --body \"thanks for the question — short answer is...\"\n\n# Force interpretation when passing a bare ID (defaults to post otherwise)\nuv run reddit-post reply abc123 --body \"...\" --kind comment\n```\n\nReturns `{id, fullname, url, parent_id, body, replied_to, parent_url}`. If Reddit accepts the request but returns no comment (rate-limit or shadow-block), the call raises with a clear message instead of silently succeeding.\n\n### List comments (to find an id to reply to)\n\n`reply` needs a comment's URL or `t1_` id, but a bare post URL doesn't hand those out. List them first:\n\n```bash\n# Top-level comments of a post: id, thing_id (t1_, ready for reply), author, score, body\nuv run reddit-post comments \u003cpost-url-or-id\u003e --sort new --limit 50\n\n# Replies under a specific comment instead of a post's top level\nuv run reddit-post comments \u003ccomment-url-or-id\u003e --kind comment\n```\n\nTake a `thing_id` straight to `reddit-post reply \u003ct1_id\u003e --kind comment`.\n\n### Edit and delete\n\nReddit only allows editing the **body** of self posts, not the title.\n\n```bash\nuv run reddit-post edit \u003curl\u003e --body-file new_body.md\nuv run reddit-post delete \u003curl\u003e\n```\n\nTitle-only changes require delete + repost. The original URL dies; warn anyone with inbound links before doing this.\n\n## Optional: use as an MCP server\n\nIf you'd rather call these tools from Claude Code / Claude Desktop's MCP integration than use the skill or CLI, add this to your MCP config (e.g. `~/.claude.json` `mcpServers`):\n\n```json\n{\n  \"reddit\": {\n    \"type\": \"stdio\",\n    \"command\": \"uv\",\n    \"args\": [\"--directory\", \"/absolute/path/to/reddit-skill\", \"run\", \"reddit-mcp\"],\n    \"env\": {\n      \"REDDIT_CLIENT_ID\": \"...\",\n      \"REDDIT_CLIENT_SECRET\": \"...\",\n      \"REDDIT_USERNAME\": \"...\",\n      \"REDDIT_PASSWORD\": \"...\"\n    }\n  }\n}\n```\n\nRestart Claude Code. Eight tools become available: `create_post`, `edit_post`, `delete_post`, `reply`, `get_comments`, `list_flairs`, `get_post`, `search_reddit`.\n\nThe MCP path is functionally equivalent to the CLI — same package, same PRAW under the hood, same flair resolution. The skill is still the recommended way in because it adds the discover-and-draft discipline the raw tools don't; MCP just changes where the tools are called from.\n\n### `create_post(subreddit, title, body, flair_text=None, is_self=True)`\n\nIf the subreddit requires flair, pass `flair_text` — the server fetches `subreddit.flair.link_templates`, matches by display text (exact first, then unique substring, case-insensitive), and submits with the resolved `flair_id`. If the match is ambiguous or missing, you get back the list of valid flairs in the error.\n\n## Why this exists\n\nTwo problems, one package:\n\n1. **Posting like a bot.** Most tooling makes it trivial to dump marketing copy into a sub and get removed (or downvoted) for it. The `reddit-poster` skill encodes the discipline a careful poster uses — read the room first, draft story-first, disclose, get approval — so the output reads human.\n2. **Broken flair handling.** The widely shipped Reddit MCP servers either expose no flair param at all (can't post to subs that require flair — most large communities), or accept a flair param but pass the text where Reddit expects an ID, silently dropping it. This package does the lookup correctly: text in, ID resolved, post submitted.\n\nThe skill is the primary surface; the CLI is the engine underneath; the MCP wrapper is there for those who want it inside Claude's tool-use loop.\n\n## Responsible Builder Policy\n\nThis package respects [Reddit's Responsible Builder Policy](https://support.reddithelp.com/hc/en-us/articles/42728983564564-Responsible-Builder-Policy):\n\n- Don't post identical content across subreddits — use it for one place at a time, rewrite per audience.\n- Don't manipulate votes, karma, or send unsolicited DMs.\n- Disclose bot/automation when posting on behalf of an LLM.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcskwork%2Freddit-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcskwork%2Freddit-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcskwork%2Freddit-skill/lists"}