/subscope:subscope-runfrom subscope
Fetches and surfaces pain-post candidates from configured subreddits, scores by intent and freshness, classifies via Claude Haiku, deduplicates, and emits inline markdown with optional Notion sync. Useful for daily Reddit trend monitoring.
Ships in subscope. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Daily Reddit surfacing orchestrator. Python (under engine/) does fetch + gate + score + SQLite + JSON output. This skill is the Claude-side wrapper: it invokes the engine, optionally syncs to Notion (if configured), and prints the inline list to chat.
~/.config/subscope/subreddits.yml. If missing, the engine still runs using bundled generic defaults, but results will be off-target. Recommend /subscope-onboard (one conversation, ~5 min, includes the first scan) with a one-line nudge:
(no personal targeting found, scanning with generic defaults. /subscope-onboard for sharper results.)
Proceed with the run unless user explicitly cancels.cd "$CLAUDE_PLUGIN_ROOT" && PYTHONPATH=engine python3 -m subscope.cli fetch-score --candidates
Engine output: a single JSON document on stdout with run_id, status, fetched, surfaced, buyer_count, authority_count, subs_skipped_rate_limit, fetch_stats, dropped_counts, surfaces[], inline_table, inline_markdown, and (with --candidates) a candidates[] array plus candidate_count / candidate_total.
candidates[] is the recall pre-filter: every fetched post that cleared the absolute rejects (NSFW, removed/locked, vendor-spam, off-topic-sub, tier-3), each with deterministic features: title, body, url, sub, tier, age_h, kw_hits, matched_kw, names_brand (matched against the user's brand_anchor), question_intent, pain_intent, engagement_available, soft_reason. The engine deliberately does NOT decide relevance for these. You do, in Step 3.5. The engine's own surfaces[]/inline_table are the older lexical-gate output; under judge-first they are a secondary signal, not the chat output.
The status field tells you why a run produced few or no surfaces, so you never show the wrong message:
status: "ok" and surfaced > 0 -> normal run, render the table (Step 4).status: "ok" and surfaced == 0 -> Reddit was reachable, today was just quiet. Show the EMPTY-DAY copy below.status: "rate_limited" -> Reddit rate-limited this run (HTTP 429). Some subreddits may have been skipped (subs_skipped_rate_limit says how many), so the list can be partial or empty. This is transient. Render any surfaces you DID get, then show the RATE-LIMITED copy below. Do NOT call this "blocked".status: "blocked" -> every Reddit feed request failed for a non-rate-limit reason (Reddit's edge returned 403, or the network was down). The scan could not read anything. Show the BLOCKED copy below.Dual-track surfaces. Results are split into two tracks. surfaced is the combined total; buyer_count and authority_count break it down. Every entry in surfaces[] carries a track field:
track: "buyer" = Buyer signals. The post names a specific tool or brand AND shows buying intent. A reply here moves a deal.track: "authority" = Authority plays. On-topic, answerable question with no buyer present yet. A reply here builds presence and credibility, it does not close a sale.The inline_markdown and inline_table fields already render both tracks as two labeled sections (BUYER SIGNALS first, then AUTHORITY PLAYS). When the authority track is empty, only the buyer section renders. The authority track can be toggled in weights.yml under authority_track.enabled. When disabled, the run reverts to buyer-only output exactly.
Read ~/.config/subscope/notion.yml. Branch on the mode field:
Branch A: mode: mcp (recommended path, auth via Notion MCP)
mcp__*notion* tool. If absent, print one line:
(Notion MCP not connected, skipping sync. Install with: claude mcp add --transport http notion https://mcp.notion.com/mcp) and skip to Step 4.notion-search tool with query=<database_name from notion.yml>. If multiple matches, prefer one with object: database. If no match, print (Notion DB "<name>" not found, skipping sync) and skip to Step 4.notion-create-pages tool with parent={"database_id": <resolved_id>} and the property map below.Branch B: api_key + database_id (legacy SDK path)
Property map (both branches):
Title, Tier, Subreddit, Score, Upvotes, Comments, Posted (ISO date), Pain, Fit, URL (verbatim from engine output, never hand-compose Reddit URLs), Surfaced on (today, ISO)Pattern = the mode that produced the surface (default: run)Track ← read from surface.track (buyer or authority). Buyer = a reply moves a deal; authority = a reply builds presence, no buyer yet. Skip this property if the Notion DB has no Track column (it is optional, added with dual-track surfaces).State = Drafting if cooling queue active, else HotOP score ← read from surface.op_score (string like "2y old · 4.2k karma · 12% wrong-audience")If notion.yml is missing, skip silently.
If ~/.config/subscope/slack.json exists OR SLACK_WEBHOOK_URL env is set, the engine pushes a formatted message to that webhook at the end of fetch-score. This skill does NOT need to do anything. The integration is in engine/subscope/lib/slack.py and silently no-ops if no webhook is configured. To suppress for one run, pass --no-slack to fetch-score.
Under judge-first, you decide what surfaces by judging each candidate against the user's offer. The engine's lexical gate is only a recall pre-filter; never rely on keyword density for precision. This step is what guarantees a first-run user does not get spammy or off-topic results.
Load the offer context once (read whichever exist):
~/.config/subscope/offer.yml (if present: what_offering, who_to_reach, pain)~/.config/subscope/example-pains.yml (pain posts in the ICP's voice, a strong offer proxy)~/.config/subscope/brand-anchor.yml (competitors / tools the ICP touches)~/.config/subscope/keywords.yml (category terms)From those, hold a one-paragraph offer model in mind: WHAT they sell, WHO buys it, and the PAIN that signals a buyer.
Judge every candidate in candidates[]. Assign exactly one verdict:
Hard rules (this is what keeps the list clean):
names_brand: true is NOT a pass.weights.yml daily_output, default ~10). Rank BUYER above AUTHORITY, then by strength of buying intent.url verbatim (read it from the JSON; NEVER hand-compose a Reddit URL). A surfaced row without its clickable link is a defect.This judge is the same decision the optional classify.py path makes headlessly when a user supplies an LLM key; here you are the judge because the Claude session is the LLM.
Read ~/.config/subscope/surface.yml if it exists:
modes: [table] # or [notion], [table, notion], []
default_render: table # which surface /subscope-run prints first in chat
Rendering rules:
If surface.yml is missing → default to modes: [table].
If modes contains table → render the judged output as two separate markdown tables, the BUYER SIGNALS table first, then the AUTHORITY PLAYS table. Each table uses exactly these columns:
### BUYER SIGNALS
| Subreddit | Thread | Why it matters | Age |
|---|---|---|---|
| [r/<sub>](https://www.reddit.com/r/<sub>) | [<post title>](<url>) | <one-line reason> | <age> |
Cell rules:
[r/<sub>](https://www.reddit.com/r/<sub>); the subreddit name is the link text.url verbatim from the JSON. NEVER hand-compose a Reddit URL (one wrong character can resolve to an unrelated, possibly NSFW post). Trim a very long title to ~70 chars but keep the link intact, and escape any | in the title as \|.age_h, hours when under 24h (e.g. 14h), else days (e.g. 6d).Omit a table entirely when its track has no surfaces. This two-table layout, not the engine's inline_table, is the chat surface under judge-first. (inline_table remains in the JSON as the lexical-gate fallback.)
If modes contains notion → do the Notion sync above. If the user picked BOTH table and notion, render the table in chat AND sync to Notion.
If modes is empty [] → don't print anything beyond JSON (for piping).
The inline_markdown field stays in the JSON for backwards compatibility (the older verbose format). Prefer inline_table for chat unless the user explicitly asks for the long form.
If Notion sync was attempted and failed, append exactly one line: (Notion sync failed: <reason>).
url directly from the JSON. Post IDs are globally unique; a single typo can resolve to a completely unrelated (potentially NSFW) post.surfaced.post_id PK in SQLite enforces this).All configs live under ${SUBSCOPE_CONFIG:-~/.config/subscope/}:
| File | Purpose |
|---|---|
llm.json | LLM provider preference |
subreddits.yml | Active sub list, copied from a preset at setup |
keywords.yml | Active keyword bucket |
weights.yml | Score weights + gate thresholds |
notion.yml (optional) | Notion DB ID + integration |
obsidian.yml (optional) | Vault path for pulse digests |
dataforseo.yml (optional) | DataForSEO credentials |
firecrawl.yml (optional) | Firecrawl API key |
State (SQLite, logs) lives under ${SUBSCOPE_DATA:-~/.local/share/subscope/}.
Branch on the engine's status field (read it from the JSON):
status: "ok" and the judge surfaced >= 1 (the normal case): render the two judged sections per Step 4. Do NOT add a preamble. If Notion sync was attempted and failed, append exactly one line noting the reason.
status: "ok" and the judge surfaced 0 (Reddit was reachable, you judged every candidate REJECT): NEVER print a bare "nothing found". Print the empty-state LADDER so the user always sees the run did real work and what to do next:
Scanned <fetched> posts across <the subs scanned>. None cleared the buyer or authority bar today.
Closest <=3 (you judge if they are worth a glance):
- <title> (r/sub): <why it was on-topic but did not clear the bar>
Widen options:
- run again later, fresh posts land through the day
- /subscope-profile to add a subreddit or loosen targeting
- broader cross-subreddit keyword search is coming in a future update
Build the "Closest" list from the highest-ranked candidates you judged REJECT-but-near (on-topic adjacent, not clinical/career/spam). If there were literally zero on-topic candidates (e.g. the subs were all clinical/patient noise that day), say that plainly in one line and point to /subscope-profile, and skip the "Closest" block. This empty-state is a feature, not an error: a clear niche must never see a dead end.
status: "rate_limited" (Reddit returned HTTP 429 this run): if there ARE surfaces, render them first per Step 4 (they are real, just a partial list). Then print this copy verbatim:
Reddit rate-limited this run, so some subreddits were skipped. Any posts above are real, the list is just partial.
This is temporary, not a block. subscope reads Reddit's public RSS feeds with no login or API key. Reddit caps how fast a single machine can pull feeds, and this run hit that cap. Run /subscope-run again in a minute to pick up the rest.
Do NOT call this "blocked" and do NOT suggest any Reddit login, API key, or OAuth setup. Re-running shortly is the fix.
status: "blocked" (every Reddit feed request failed): print this copy verbatim, nothing else:
Could not read Reddit this run. Every feed request was blocked or unreachable.
What this is NOT: this is not a setup or credentials problem. subscope uses Reddit's public RSS feeds and needs no login, no API key, and no account. Do not add one.
If a SINGLE re-run a minute later also returns zero feeds, treat it as a real fault, not a blip. When every request fails the same way, it is almost always one of these (in order of likelihood):
- subscope is out of date and Reddit's edge changed how it fingerprints requests (the common case). Update the plugin to the latest version and re-run.
- a network issue on this machine (check your connection, then re-run once).
- Reddit throttling this IP for a short window (wait a few minutes, re-run once).
Do not keep blindly re-running. If one update + one re-run still returns zero, open an issue with the stderr lines starting `[reddit]`: github.com/dancolta/subscope/issues
Do NOT, under any circumstances, tell the user to configure Reddit OAuth, add a Reddit API key, or run a Reddit auth setup step. No such step exists. The fetch path is keyless RSS by design.
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/subscope-build-vs-buySurface explicit build-vs-buy debate threads with numeric arguments (engineering hours, TCO, payback). OP is rationalizing the decision publicly — your worldview is the answer. Triggers on "build vs buy", "/subscope-build-vs-buy", "find build-vs-buy debates", "in-house vs SaaS", "make-or-buy decisions"./subscope-churnSurface high-intent Reddit posts where someone explicitly says they are canceling, switching from, or fed up with a named SaaS vendor. Pure buying intent. Triggers on "churn signals", "/subscope-churn", "find churn posts", "who's canceling", "switching from posts", "churn-signals scan"./subscope-judgeInteractive classifier for a single Reddit surface. Reads one post by surface ID (or pasted URL/title/body), runs the bulk-classifier prompt against it, and returns a verdict + reply angle. Uses your Claude Code subscription, NOT a separate API key — costs nothing extra beyond what you already pay. Triggers on "judge surface 3", "classify post/subscope-onboardMandatory first-run setup for subscope. One conversation, three plain questions, one confirmation, optional integrations, first scan. Paste URLs, answer what-you-sell / who-buys-it / what's-the-pain, confirm the targeting card, pick integrations to connect (DataForSEO, Firecrawl, Notion, Slack, Obsidian), scan. No fast path. Every install passes through this. Triggers on "onboard", "/subscope-onboard", "set up subscope", "first time setup", "configure subscope", "get started with subscope", "install subscope"./subscope-op-vetScore a Reddit user's profile before replying. Returns karma, account age, sub-activity breakdown, and a GO / HOLD / SKIP verdict. Useful when you spot a thread that looks promising but want to confirm OP is a real operator (not a throwaway, karma farmer, or hustle-bro). Triggers on "op vet", "/subscope-op-vet <username>", "vet this user", "is u/<name> legit", "check OP profile", "profile vet"./subscope-pricing-rageSurface Reddit price-hike rage threads (Salesforce/HubSpot/Gong cyclical Q1/Q3 spikes). Time-sensitive — cooling queue auto-disabled. Triggers on "pricing rage", "/subscope-pricing-rage", "find price hike threads", "renewal complaints", "predatory pricing posts", "tier change rants".Generated from the plugin's indexed repository (dancolta/subscope) — no native marketplace selected
npx claudepluginhub p/dancolta-subscopeOther plugins' skills for the same job