community-insight-pipeline

community-insight-pipeline is a skill for Claude Code from AgenticAIPlan/AgenticAISkills. It costs 70 tokens per session (2,532 once invoked), scanned A, original, MIT.

A workflow for collecting Reddit discussions about a product or topic, having AI label each batch for relevance, strengths, weaknesses, and sentiment, then exporting a structured report.

In plain words
What is it for?
Use it to monitor product reputation, compare competitors, and extract user insights from Reddit discussions. It uses Reddit API credentials and SQLite storage.
Why use it?
It reduces the manual work of reading and organizing large numbers of community comments. Reddit is an online discussion platform where users share opinions and feedback.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 /tmp/batchNN_gen.py && python3 scripts/annotate.py --save /tmp/ann_results.json.

Part of the agentic-ai-skills plugin — 54 skills shipped together

Good fit Use it to monitor product reputation, compare competitors, and extract user insights from Reddit discussions. It uses Reddit API credentials and SQLite storage.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/AgenticAIPlan/AgenticAISkills
agentmods
npx agentmods add skills/agenticaiplan/agenticaiskills/community-insight-pipeline

Made for: Claude Code.

Or install agentic-ai-skills, the plugin that ships this one along with the rest of its 54 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for community-insight-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/agenticaiplan/agenticaiskills/community-insight-pipeline/github.svg)](https://agentmods.dev/skills/agenticaiplan/agenticaiskills/community-insight-pipeline)
Your own site
<a href="https://agentmods.dev/skills/agenticaiplan/agenticaiskills/community-insight-pipeline"><img src="https://agentmods.dev/badge/skills/agenticaiplan/agenticaiskills/community-insight-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for community-insight-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/agenticaiplan/agenticaiskills/community-insight-pipeline"><img src="https://agentmods.dev/badge/skills/agenticaiplan/agenticaiskills/community-insight-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.02532
Opus 5 $0.00035 $0.01266
Sonnet 5 $0.00014 $0.00506
Haiku 4.5 $0.00007 $0.00253

Measured 12d ago against content hash 3e83654dc87d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

community-insight-pipeline scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/annotate.py, scripts/export.py, scripts/fetch_batch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sL "IMAGE_URL" -o /tmp/img_PLATFORMID.png
skills/community-insight-pipeline/SKILL.md · 274 lines

How it starts

The opening of the file, as written. The whole thing — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Community Insight Pipeline:Reddit 社区讨论抓取与 AI 批量标注

适用场景

  • 产品口碑监控:追踪 Reddit 上对某个 AI 模型、开源项目或产品的社区评价
  • 竞品调研:批量收集竞争产品的用户反馈,提炼结构化优劣势
  • 用户洞察:从大量社区讨论中提取情感标签和摘要,供产品/运营团队使用

输入要求

脚本文件

脚本已包含在本 Skill 的 scripts/ 目录中,无需复制,直接通过路径调用

  • scripts/fetch_batch.py — 抓取脚本(支持 --tasks-file 传入任务配置)
  • scripts/annotate.py — 标注脚本
  • scripts/export.py — 导出脚本

Credentials 通过环境变量传入(见下方说明),无需修改脚本内容。

Reddit API Credentials

在工作目录创建 .env 文件:

REDDIT_CLIENT_ID=xxx
REDDIT_CLIENT_SECRET=xxx
REDDIT_USER_AGENT=xxx    # 任意字符串,如 "MyBot/1.0"

获取方式:访问 https://www.reddit.com/prefs/apps,创建 script 类型应用,复制 client_id(应用名下方短字符串)和 secret。

数据库

脚本使用 SQLite,首次运行 scripts/fetch_batch.py 时自动创建。路径通过环境变量指定:

export DISCUSSION_DB_PATH=discussions.db   # 可选,不设置则默认 discussions.db

快速入口

根据当前场景选择起点,按需执行 Preflight 检查,跳过不适用项

场景 起点
首次完整运行 完成 P1–P4 全部 Preflight,进入 Phase 1
Credentials 已就绪,开始新一轮抓取 仅确认 P3 搜索目标,直接进入 Phase 1
数据已抓取,仅需 AI 标注 直接进入 Phase 2
标注已完成,仅需导出报告 直接进入 Phase 3

Preflight 检查

P1. Python 环境(首次运行时确认)

python3 --version    # 要求 3.9+
pip install praw openpyxl pillow

P2. Reddit API Credentials(首次或 credentials 变更时确认)

检查环境变量是否已设置:

echo "CLIENT_ID=${REDDIT_CLIENT_ID:+已设置} SECRET=${REDDIT_CLIENT_SECRET:+已设置}"
  • 均已设置 → 跳过,继续下一项

  • 缺失 → 通过 .env 文件或 export 直接配置:

    # 方式 A:创建 .env 文件(脚本启动时自动加载)
    REDDIT_CLIENT_ID=你的client_id
    REDDIT_CLIENT_SECRET=你的client_secret
    REDDIT_USER_AGENT=MyBot/1.0
    
    # 方式 B:直接 export(当前 shell 生效)
    export REDDIT_CLIENT_ID=你的client_id
    export REDDIT_CLIENT_SECRET=你的client_secret
    

    获取方式:访问 https://www.reddit.com/prefs/apps,创建 script 类型应用,复制 client_id 和 secret。

P3. 搜索目标(每次新抓取时必须确认)

向用户提问:

你想追踪哪个产品或话题?请提供搜索关键词。 搜索范围:全站搜索(global)、指定 AI/ML 子版块(subreddits),或两者都要? 是否同时抓取评论?(评论量通常远多于帖子) 是否需要精确匹配?例如 ERNIE-Image 是宽松匹配,"ERNIE-Image" 是精确短语匹配。

根据回答构建 tasks.json(见 Phase 1)。

Read the full file on GitHub · 274 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 274 lines · 70 tokens per session scan A 3e83654dc87d

Subscribe to this mod's changes

community-insight-pipeline is a skill published in the GitHub repository AgenticAIPlan/AgenticAISkills (11 stars, last pushed 3mo ago), licensed MIT. It adds 70 tokens to every session and 2,532 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens