К основному содержанию
скилл CX Codex

reddit · acedatacloud — скилл для Claude Code: что делает и как установить

Скилл для Claude Code ищет обсуждения на Reddit, читает правила сабреддитов, отвечает и публикует посты. Работает с тредами и профилем через OAuth или cookies.

Apache-2.0 212 установок ★ 17 обновлён 2026-10-25

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add AceDataCloud/Skills --skill reddit -a claude-code
Открыть на GitHub

Что делает reddit

Скилл ищет треды по запросу, показывает правила сабреддита и читает публикации, комментарии и данные профиля. Он умеет отвечать на посты и комментарии, а также отправлять текстовые и ссылочные посты. Для работы использует скрипт reddit.py и команды search, subreddit-info, comment, submit-text и submit-link.

Доступ подключается через официальный OAuth-токен REDDIT_TOKEN или массив cookies REDDIT_COOKIES. Перед публикацией нужно проверить правила сабреддита и показать пользователю точный текст; запись выполняется только с финальным флагом --confirm. Публичный ответ без этого флага останется пробным запуском, а повторная отправка после тайм-аута может создать дубль.

Какие задачи решает

  • найти обсуждения по ключевому запросу
  • проверить правила выбранного сабреддита
  • подготовить ответ на конкретный тред
  • опубликовать текстовый или ссылочный пост
  • просмотреть свои публикации и комментарии

Примеры запросов агенту

  • Найди на Reddit свежие обсуждения про suno api, отфильтруй их по релевантности и проверь правила подходящих сабреддитов.
  • Покажи тред с fullname, подготовь ответ в reply.md и дождись моего подтверждения перед отправкой комментария.
  • Проверь мои публикации и комментарии, затем подготовь текстовый пост из post.md для сабреддита test без публикации.

Как установить reddit

1Через Skills CLI (Vercel)

npx skills add AceDataCloud/Skills --skill reddit -a claude-code

2Вручную: положить файлы

~/.claude/skills/reddit/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/reddit/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о reddit

Как установить reddit в Claude Code?

Выполните npx skills add AceDataCloud/Skills --skill reddit -a claude-code, затем используйте файл ~/.claude/skills/reddit/SKILL.md.

Что делает reddit?

Скилл ищет треды, читает правила сабреддитов, отвечает на посты и комментарии, публикует текстовые или ссылочные посты и показывает данные профиля.

Что нужно для работы reddit и как защищены публикации?

Нужен REDDIT_TOKEN для OAuth или REDDIT_COOKIES для входа через cookies. Команды записи работают в пробном режиме без финального --confirm, а перед публикацией нужно подтвердить точный текст.

Исходный текст

SKILL.md · Apache-2.0
---
name: reddit
description: 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.
when_to_use: |
  Trigger when the user wants to find relevant Reddit threads, reply to a
  post or comment, submit a post to a subreddit (link or self/text post),
  or read their own Reddit identity and submissions. Commenting and posting
  are public and subject to that subreddit's rules / karma requirements —
  confirm the target and the exact text before writing.
connections: [reddit]
allowed_tools: [Bash, publish_artifact]
license: Apache-2.0
metadata:
  author: acedatacloud
  version: "2.1"
  connection_method_preferences:
    reddit/reddit: [oauth, cookie]
---

# 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 includes `reddit_session` and 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:

```sh
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

```sh
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.**

```sh
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.

```sh
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.

```sh
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_session` or 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-info` first. 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
  reflected credential material.
- Do not retry a write automatically. A timeout may occur after Reddit accepted
  it, and replaying could create a duplicate.
- Respect rate limits and never bulk-submit or bulk-comment. Use `r/test` only
  for a deliberate end-to-end validation.
- Cookie mode drives Reddit's first-party web JSON endpoints and may drift when
  Reddit changes its site. Report unexpected HTML or route errors as upstream
  drift instead of guessing another private endpoint.

## Self-promotion — read this before marketing anything

Reddit bans accounts for promotion patterns, not for individual links. When the
user's goal is promoting their own product:

- **Answer the question first.** A reply must stand on its own as useful even if
  the product link were removed. If it does not, do not send it.
- **Disclose the affiliation** ("I build X") — undisclosed promotion is the
  fastest route to a ban.
- **One link at most, at the end**, and never in a post title.
- **Do not blanket-reply.** A handful of genuinely relevant threads beats volume,
  and volume is exactly what spam detection keys on.
- If a subreddit has a dedicated self-promo / "Showoff" thread, use it — that is
  the sanctioned channel.
- A low-karma or new account will have posts auto-removed by AutoModerator in
  most active subreddits. Check `whoami` karma and warn the user rather than
  burning the account on a post that will be silently filtered.


## Record the output

After you successfully publish a post **or a comment** and obtain the live result
URL, call the built-in `publish_artifact` tool ONCE so the user can track this
deliverable in **My Outputs**:

```
publish_artifact(kind="message", channel="reddit", title="<title>", url="<the REAL returned URL>", status="delivered")
```

Use the real returned URL — never fabricate one. Call it once per published item,
only after delivery is confirmed; skip it (or use `status="failed"`) if publishing failed.
See `_shared/artifacts.md`.

© acedatacloud · Apache-2.0 · AceDataCloud/Skills

Похожие скиллы

Все скиллы по теме «Браузер и парсинг» →

Сначала — reddit от других авторов.

reddit ReScienceLab Ищет материалы на Reddit через публичный JSON API: посты, комментарии, сведения о сообществах и профили пользователей. CX Codex +1 3 500установок reddit-api alinaqi Скилл reddit-api для интеграции Reddit в приложение: посты, комментарии, сабреддиты и данные пользователей через PRAW или Snoowrap. CX Codex +1 322установок reddit-mcp-server jordanburke MCP-сервер даёт агенту читать Reddit, искать по нему и публиковать посты и ответы от вашего аккаунта. Нужны OAuth-ключи Reddit. CX Codex +1 ★ 343звёзд репо reddit-marketing-agent reason-machines Скилл reddit-marketing-agent для Claude Code и Codex: ищет обсуждения на Reddit по ключевым словам и готовит черновики ответов для ведения сообщества и продвижения продукта. CX Codex +1 896установок reddit-ads alinaqi Помогает автоматизировать работу с Reddit Ads API: управлять кампаниями, настраивать группы объявлений и авторизацию через OAuth 2.0. CX Codex +1 287установок reddit-automation flowkit-labs Скилл reddit-automation находит треды на Reddit, где людям нужен ваш продукт, и пишет короткие полезные ответы с раскрытием, что вы связаны с продуктом. CX Codex +1 1 500 000установок Reddit Ads get-mcp-ads Локальный MCP-сервер для чтения отчётов и таргетинга в Reddit Ads API v3, а также создания кампаний с предварительным просмотром. CX Codex +1

Из того же набора67

Весь набор →
slack Ищет сообщения в открытых каналах Slack и отправляет ответы бота после подтверждения пользователя. CX Codex +1 215установок notion Скилл подключает Claude Code к Notion через REST API: он ищет, читает и изменяет страницы, а также работает с базами данных. CX Codex +1 215установок onepage-pdf Скилл onepage-pdf рендерит HTML-документ в один непрерывный высокий PDF-лист без разрывов страниц через headless Chrome и обрезает пустоту с помощью PyMuPDF. CX Codex +1 214установок devto Публикует статьи на dev.to, обновляет посты и собирает статистику просмотров и реакций через Forem API v1 прямо из терминала. CX Codex +1 213установок cos-upload Скилл cos-upload загружает локальные файлы в CDN AceData Cloud и возвращает публичную ссылку для передачи в другие API. CX Codex +1 211установок substack Скилл ведёт ваш настоящий аккаунт Substack через логин-куки: показывает основную публикацию, выгружает посты со статистикой и публикует новый материал. CX Codex +1 207установок discord Интегрирует аккаунт Discord с ИИ-агентом: читает профиль и список серверов по OAuth либо отправляет сообщения через токен пользователя. CX Codex +1 189установок telegram Управляет личным аккаунтом Telegram через Telethon и MTProto. Помогает читать непрочитанные сообщения, искать переписки, скачивать медиа и отправлять ответы. CX Codex +1 189установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой