Search subreddits, read rules, reply to threads, and submit posts (link or text) to Reddit using either official OAuth or your own Reddit login cookies. Use…
от AceDataCloud★ 17 звёзд на GitHubОб этом скилле
Reddit — OAuth or login-cookie access
The connector injects exactly one of these credentials:
REDDIT_COOKIES: JSON cookie array captured by the ACE browser extension. It includesreddit_sessionand grants full account access. Secret — never echo, print, log or return it.REDDIT_TOKEN: official OAuth bearer token (identity read submit).
The helper automatically prefers official OAuth when present and otherwise uses Cookie.
It sends Reddit's required descriptive User-Agent and never forwards cookies
outside reddit.com.
Script resolution
Bash calls do not share shell variables. Resolve the helper inside every fenced Bash invocation before using it:
R="${SKILL_DIR:-}/scripts/reddit.py"; [ -f "$R" ] || R=$(find /tmp -maxdepth 8 -path '*/skills/*/reddit/scripts/reddit.py' -print -quit 2>/dev/null)
[ -f "$R" ] || { echo "reddit script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$R" whoami
If authentication fails, ask the user to reconnect at https://studio.acedata.cloud/console/connectors. Do not loop-retry a blocked or expired session.
Read
R="${SKILL_DIR:-}/scripts/reddit.py"; [ -f "$R" ] || R=$(find /tmp -maxdepth 8 -path '*/skills/*/reddit/scripts/reddit.py' -print -quit 2>/dev/null)
[ -f "$R" ] || { echo "reddit script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$R" whoami
python3 "$R" submissions --limit 10
python3 "$R" comments --limit 10
comment verifies itself: when Reddit answers in a shape it cannot parse, it
looks the comment up via comments before reporting anything. If it still says
the write likely failed, re-check with comments yourself before resending.
Find threads and check the rules
search returns each hit's fullname (t3_…), which is what comment --parent
takes. subreddit-info returns the subreddit's rules — read them before
writing anything there.
R="${SKILL_DIR:-}/scripts/reddit.py"; [ -f "$R" ] || R=$(find /tmp -maxdepth 8 -path '*/skills/*/reddit/scripts/reddit.py' -print -quit 2>/dev/null)
[ -f "$R" ] || { echo "reddit script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$R" search --query "suno api" --time week --limit 10
python3 "$R" search --query "image generation api" --subreddit SideProject
python3 "$R" subreddit-info --subreddit SideProject
--sort defaults to relevance. Reddit's new sort ignores keyword relevance
— it returns recent posts that often do not contain the query terms at all. Use
--sort new only to scan a specific subreddit's recent activity, never to find
threads by keyword.
Reply to a thread — GATED
--parent accepts a fullname (t3_… post, t1_… comment) or a reddit.com
permalink. Show the target thread and the exact reply text, then obtain
explicit confirmation. Without a trailing --confirm this is a dry run.
R="${SKILL_DIR:-}/scripts/reddit.py"; [ -f "$R" ] || R=$(find /tmp -maxdepth 8 -path '*/skills/*/reddit/scripts/reddit.py' -print -quit 2>/dev/null)
[ -f "$R" ] || { echo "reddit script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$R" comment --parent t3_1r9yrtn --body-file reply.md
python3 "$R" comment --parent t3_1r9yrtn --body-file reply.md --confirm
Submit a post — GATED
Posting is public. Always show the subreddit, final title and final body/URL,
then obtain explicit confirmation. Without a trailing --confirm, both write
commands are dry-runs and make no network request.
R="${SKILL_DIR:-}/scripts/reddit.py"; [ -f "$R" ] || R=$(find /tmp -maxdepth 8 -path '*/skills/*/reddit/scripts/reddit.py' -print -quit 2>/dev/null)
[ -f "$R" ] || { echo "reddit script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
# Text post: use a file for long Markdown.
python3 "$R" submit-text --subreddit test --title "My title" --text-file post.md
python3 "$R" submit-text --subreddit test --title "My title" --text-file post.md --confirm
# Link post.
python3 "$R" submit-link --subreddit test --title "My title" --url "https://example.com"
python3 "$R" submit-link --subreddit test --title "My title" --url "https://example.com" --confirm
--confirm is honored only when it is the final argument. A title or body that
contains the text --confirm can never trigger a write.
Safety and failure handling
- Never print
REDDIT_COOKIES,REDDIT_TOKEN,reddit_sessionor the modhash. - Do not vote, send private messages, evade bans, or cross-post identical content. This skill intentionally exposes none of those operations.
- Never post the same reply text to more than one thread. Reddit treats repeated identical comments as spam and actions the account, not the comment. Write each reply against the specific thread it answers.
- Follow each subreddit's rules — run
subreddit-infofirst. Account age, karma and flair requirements can reject a post or comment; report the rejection without exposing Reddit's raw authenticated response, which may contain refle
Установить reddit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл reddit?
Search subreddits, read rules, reply to threads, and submit posts (link or text) to Reddit using either official OAuth or your own Reddit login cookies. Use when the user mentions Reddit, posting to a subreddit, replying or commenting on a thread, submitting a link or self-post, or checking their Reddit profile / submissions.
Как установить скилл reddit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл reddit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub