agentleFS
pomexplicapomexplica/pomlabs/skills/community-research/SKILL.md

community-research

Skill0 starsChanged 5 days agoMITView on GitHub

Gets Reddit posts and comments as JSON from subreddits, post links, user profiles or a search across Reddit, with date filters going back years and a flag on what moderators removed. Use when the user wants to know what people say about a product, problem or topic on Reddit, wants real user quotes, complaints, feature requests or reviews, wants the threads of a subreddit over a period, the comments of a thread, or a user's history. Runs on Apify with the user's own APIFY_TOKEN; pay per item, no Reddit login or API key.

  • Sends data out

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    2. API token and curl: When those tools are not available, use the setup and the curl calls below.

    line 26
  2. Distinctive:

    If the token is missing, stop and tell the user exactly that.

    line 38
  3. Very specific:

    Check isRemoved before quoting: a removed post may still carry its original text (originalTextKept), and the user should know it was …

    line 82

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

Community research (Reddit)

One Apify Actor by Pom Labs returns Reddit posts and comments. This skill is written and maintained by Pom Labs, the author of the Actor.

Quick reference

Actorpomlabs~reddit-posts-comments-scraper
Price$0.002 per post or comment delivered ($2 per 1,000); $0.02 per subreddit or user report
AuthAuthorization: Bearer $APIFY_TOKEN. No Reddit account or API key is used
Typical time10 to 30 s for up to 100 items

Prices are the ones on the Actor's page; check https://apify.com/pomlabs/reddit-posts-comments-scraper if they matter to the user.

Two ways to run it

1. Apify connector (use this when it is there). If the Apify tools call-actor and get-dataset-items are available (the plugin version of this skill declares the connector https://mcp.apify.com, and Apify is also in Claude's connector directory), call call-actor with actor set to the Actor name from the table, written with / instead of ~ (for example pomlabs/reddit-posts-comments-scraper), and input set to the same JSON shown in the examples below. call-actor waits up to 45 s (waitSecs); if it answers with status RUNNING, call get-actor-run with the runId until the status is SUCCEEDED. Then call get-dataset-items with the dataset id found at storages.datasets.default.id. To cap what a run can cost, pass callOptions with maxTotalChargeUsd. The user signs in to Apify once in the browser, and no token is handled here.

2. API token and curl. When those tools are not available, use the setup and the curl calls below.

Both ways bill the user's own Apify account at the prices in the table.

Setup for the token path (once)

The user needs an Apify account and an API token from https://console.apify.com/account/integrations, exported as APIFY_TOKEN. Never print the token and never put it in a URL.

test -n "$APIFY_TOKEN" || echo "APIFY_TOKEN is not set: ask the user to create one at https://console.apify.com/account/integrations"

If the token is missing, stop and tell the user exactly that. Do not fall back to scraping the page yourself.

Get posts and comments

maxItems is the cost cap: always set it. Keep each call to 500 items or fewer so it finishes inside the 300 s sync limit.

# What a subreddit said about a topic since a date, with the comments
curl -sS -X POST \
  "https://api.apify.com/v2/acts/pomlabs~reddit-posts-comments-scraper/run-sync-get-dataset-items?timeout=280" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"startUrls":["https://www.reddit.com/r/webscraping"],"keyword":"proxy","dateFrom":"2026-01-01","includeComments":true,"maxCommentsPerPost":20,"maxItems":100}'
# Search all of Reddit (up to 25 posts per search, by relevance)
curl -sS -X POST \
  "https://api.apify.com/v2/acts/pomlabs~reddit-posts-comments-scraper/run-sync-get-dataset-items?timeout=280" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"searchQuery":"best youtube transcript api","includeComments":true,"maxCommentsPerPost":10,"maxItems":100}'

The response is a JSON array of items; posts and comments are separate items.

Input fields

FieldMeaning
startUrlsSubreddit URLs (or r/name), post URLs and user profile URLs, mixed freely. Leave empty to only search
searchQuerySearches all of Reddit by relevance, up to 25 posts per search
keywordOnly posts of the given subreddits whose title or text contains these words (last 12 months unless dateFrom is set)
dateFrom, dateToYYYY-MM-DD
sortOrder of posts read from subreddits and users; default newest
maxItemsTotal posts plus comments, default 100
maxPostsPerSourcePosts per subreddit, user or search, default 100
includeComments, maxCommentsPerPost, maxCommentDepthComments as separate items; depth 0 is top-level only
removedFilterDefault all. Every item says whether it was removed and by whom
includeSubredditReport, includeUserReportOne extra item with rules and top posters of a subreddit, or the totals and subreddits of a user ($0.02 each)

Output fields worth keeping

submissionType (post, comment or a report type), title, bodyText, author, subreddit, score, upvoteRatio, numComments, submittedAt, submissionUrl, postFlair, isRemoved, removedBy, isEdited.

  • Posts come from an archive, so score is the score at capture time (scoreCapturedAt), not always today's.
  • Check isRemoved before quoting: a removed post may still carry its original text (originalTextKept), and the user should know it was removed.
  • Quote exactly, link each quote with submissionUrl, and say how many items were read.

When something fails

What you seeMeaningWhat to do
HTTP 401Token missing or wrongAsk the user for a valid APIFY_TOKEN
HTTP 402 or a message about usage limitsThe Apify account is out of creditTell the user; do not retry
HTTP 408, or the call runs past 280 sBatch too large for a sync callSplit into smaller batches and retry once
A single item with status: "error" (message such as Timeout. Maybe slow down a bit)The archive behind the Actor was busy; it happens now and thenWait a few seconds and retry the same call once
An item with status: "no_results" for a subreddit or userThe name may not exist or be misspelled, or nothing matched the filters; the run still succeeds and this item is not chargedCheck the name with the user; do not retry the same name
Empty arrayNo post matched the keyword, dates or searchWiden the dates or drop keyword; say what was searched
Only 25 posts from a searchThat is the search limitUse startUrls with the relevant subreddits plus keyword for more

Cost check before big batches

Cost is at most maxItems x $0.002, plus $0.02 per report. Above 2,500 items ($5), tell the user the estimate and wait for a yes.

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.