关于 instagram-research
面向营销人员和内容分析者的 Instagram 研究技能,可获取帖子、识别互动表现异常的内容,并分析热门视频的开场、结构、留存手法和行动号召。
主要功能
- 01获取帖子、Reels 或快拍
- 02按日期和数量筛选内容
- 03识别互动表现异常内容
- 04汇总标签与关键词
- 05分析视频开场和结构
- 06生成研究报告
适用场景
- 01发现互动表现突出的 Instagram 帖子
- 02比较已配置账号的内容表现
- 03研究热门 Reels 的开场与留存手法
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ bradautomates/ head-of-content --skill instagram-research安装后在 Claude Code 中输入/instagram-research确认已加载。
附带文件scripts/analyze_posts.pyscripts/fetch_instagram.py
详细介绍
Instagram 研究
研究表现出色的 Instagram 帖子和短视频,识别异常值,并分析热门视频内容的钩子和结构。
前提条件
APIFY_TOKEN环境变量或.env文件中的变量GEMINI_API_KEY环境变量或.env文件中的变量apify-client和google-genaiPython 包- 在
.claude/context/instagram-accounts.md中配置的账号
验证设置:
python3 -c "
import os
try:
from dotenv import load_dotenv
load_dotenv()
except ImportError:
pass
from apify_client import ApifyClient
from google import genai
assert os.environ.get('APIFY_TOKEN'), 'APIFY_TOKEN not set'
assert os.environ.get('GEMINI_API_KEY'), 'GEMINI_API_KEY not set'
" && echo "Prerequisites OK"
工作流
1. 创建运行文件夹
RUN_FOLDER="instagram-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && echo "$RUN_FOLDER"
2. 获取内容
python3 .claude/skills/instagram-research/scripts/fetch_instagram.py \
--type reels \
--days 30 \
--limit 50 \
--output {RUN_FOLDER}/raw.json
参数:
--type:"posts"、"reels"或"stories"--days:向前搜索的天数(默认值:30)--limit:每个账号的最多项目数(默认值:50)
3. 识别异常值
python3 .claude/skills/instagram-research/scripts/analyze_posts.py \
--input {RUN_FOLDER}/raw.json \
--output {RUN_FOLDER}/outliers.json \
--threshold 2.0
输出的 JSON 包含:
total_posts:分析的帖子数outlier_count:发现的异常值数topics:热门话题标签和关键词accounts:已分析账号列表outliers:包含互动指标的异常帖子数组
4. 使用 AI 分析热门视频
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
--input {RUN_FOLDER}/outliers.json \
--output {RUN_FOLDER}/video-analysis.json \
--platform instagram \
--max-videos 5
从每个视频中提取:
- 钩子技巧和可复用公式
- 内容结构和章节
- 留存技巧
- CTA 策略
完整的输出架构以及钩子/格式类型,请参阅 video-content-analyzer 技能。
5. 生成报告
读取 {RUN_FOLDER}/outliers.json 和 {RUN_FOLDER}/video-analysis.json,然后生成 {RUN_FOLDER}/report.md。
报告结构:
# Instagram Research Report
Generated: {date}
## Top Performing Hooks
Ranked by engagement. Use these formulas for your content.
### Hook 1: {technique} - @{username}
- **Opening**: "{opening_line}"
- **Why it works**: {attention_grab}
- **Replicable Formula**: {replicable_formula}
- **Engagement**: {likes} likes, {comments} comments, {views} views
- [Watch Video]({url})
[Repeat for each analyzed video]
## Content Structure Patterns
| Video | Format | Pacing | Key Retention Techniques |
|-------|--------|--------|--------------------------|
| @username | {format} | {pacing} | {techniques} |
## CTA Strategies
| Video | CTA Type | CTA Text | Placement |
|-------|----------|----------|-----------|
| @username | {type} | "{cta_text}" | {placement} |
## All Outliers
| Rank | Username | Likes | Comments | Views | Engagement Rate |
|------|----------|-------|----------|-------|-----------------|
[List all outliers with metrics and links]
## Trending Topics
### Top Hashtags
[From outliers.json topics.hashtags]
### Top Keywords
[From outliers.json topics.keywords]
## Actionable Takeaways
[Synthesize patterns into 4-6 specific recommendations]
## Accounts Analyzed
[List accounts]
重点关注可执行的洞察。「表现最佳的钩子」部分应突出展示可复用公式。
快速参考
完整流程:
RUN_FOLDER="instagram-research/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && \
python3 .claude/skills/instagram-research/scripts/fetch_instagram.py --type reels -o "$RUN_FOLDER/raw.json" && \
python3 .claude/skills/instagram-research/scripts/analyze_posts.py -i "$RUN_FOLDER/raw.json" -o "$RUN_FOLDER/outliers.json" && \
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py -i "$RUN_FOLDER/outliers.json" -o "$RUN_FOLDER/video-analysis.json" -p instagram
然后读取两个 JSON 文件并生成报告。
互动指标
互动得分:likes + (3 × comments) + (0.1 × views)
异常值检测:互动率 > 平均值 +(阈值 × 标准差)的帖子
互动率:(得分 / 粉丝数)× 100
评论
支持 Markdown