Agent Skills › leamsigc/ShortsGenerator › ig-research-setup

ig-research-setup

GitHub

初始化社交媒体研究工具环境,检查依赖并安装缺失组件,创建项目目录与配置文件,配置Chrome调试端口以支持数据采集。

skills/ig-research-setup/SKILL.md leamsigc/ShortsGenerator

触发场景

准备进行社交媒体数据分析 需要搭建研究工具运行环境 首次使用社交研究功能

安装

npx skills add leamsigc/ShortsGenerator --skill ig-research-setup -g -y
更多选项

不安装直接使用

npx skills use leamsigc/ShortsGenerator@ig-research-setup

指定 Agent (Claude Code)

npx skills add leamsigc/ShortsGenerator --skill ig-research-setup -a claude-code -g -y

安装 repo 全部 skill

npx skills add leamsigc/ShortsGenerator --all -g -y

预览 repo 内 skill

npx skills add leamsigc/ShortsGenerator --list

SKILL.md

Frontmatter
{
    "name": "ig-research-setup",
    "version": "1.0.0",
    "description": "Setup state for social research tool. Checks prerequisites, creates directory\nstructure, creates config.json, installs deps, sets up Chrome for scraping.\nCall this before any other research state.\n",
    "allowed-tools": [
        "Bash",
        "Read",
        "Write",
        "Question"
    ]
}

Social Research — Setup State

Run this first. It checks prerequisites, creates the project, and sets up Chrome.

Steps

1. Check prerequisites

Check each of these. Ask user for permission before installing anything missing.

  • Homebrew (Mac only): brew --version
  • Node.js (v18+): node --version
  • Python 3: python3 --version
  • ffmpeg: ffmpeg -version
  • yt-dlp: yt-dlp --version or pip3 list 2>/dev/null | grep yt-dlp
  • openai-whisper: pip3 list 2>/dev/null | grep whisper

Install commands:

  • Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Node (Mac): brew install node
  • ffmpeg (Mac): brew install ffmpeg | (Windows): winget install ffmpeg
  • yt-dlp: pip3 install yt-dlp
  • whisper: pip3 install openai-whisper

2. Create project directory

SESSION=$(date +%Y-%m-%d_%H%M%S)
mkdir -p .ig-research/projects/<project-name>/$SESSION
mkdir -p .ig-research/projects/<project-name>  # legacy root for back-compat

3. Create config.json

Ask the user:

  1. "What's your niche? (e.g., fitness coaching, real estate, personal branding)"
  2. "What platform? (instagram, facebook, linkedin, x, youtube)"
  3. "What are 1-3 hashtags/keywords?"
  4. "Any competitor accounts to analyze?"
  5. "How many posts per keyword?"

Create .ig-research/projects/<project-name>/config.json:

{
  "name": "Project Name",
  "niche": "Niche description",
  "platform": "instagram",
  "searchTerms": ["keyword1", "keyword2"],
  "competitors": ["https://www.instagram.com/handle/"],
  "browserPort": 9222,
  "maxPostsPerSearch": 50,
  "maxCompetitorPosts": 10
}

4. Install Node dependencies

npm install --prefix "$CLAUDE_SKILL_ROOT/scripts"  # ~/.claude/skills/ig-research/scripts
# fallback: npm install --prefix ./skills/ig-research/scripts

5. Set up Chrome

Tell the user:

"Close Chrome completely (Cmd+Q on Mac, not just closing the window), then reopen it with:"

Mac: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

"Once Chrome opens, go to instagram.com and log in. Then come back and tell me when you're ready."

Wait for user confirmation before finishing.

版本历史

  • 7b83166 当前 2026-08-29 02:31

同 Skill 集合

skills/facebook-research-engage/SKILL.md
skills/facebook-research-report/SKILL.md
skills/facebook-research-scrape/SKILL.md
skills/facebook-research-setup/SKILL.md
skills/facebook-research/facebook-research-template/SKILL.md
skills/ig-research-analyze/SKILL.md
skills/ig-research-report/SKILL.md
skills/ig-research-scrape/SKILL.md
skills/ig-research-transcribe/SKILL.md
skills/list-workflows/SKILL.md
skills/new-workflow/SKILL.md
skills/onboard/SKILL.md
skills/reddit-research-generate/SKILL.md
skills/reddit-research-scrape/SKILL.md
skills/short-generator/SKILL.md
skills/twitter-research-scrape/SKILL.md
skills/twitter-research-setup/SKILL.md
skills/workflow-conventions/SKILL.md
skills/facebook-research-analyze/SKILL.md
skills/facebook-research-grow/SKILL.md
skills/facebook-research/SKILL.md
skills/ig-research/SKILL.md
skills/reddit-research/SKILL.md
skills/twitter-research-analyze/SKILL.md
skills/twitter-research-report/SKILL.md
skills/twitter-research-topics/SKILL.md
skills/twitter-research/SKILL.md
skills/video-idea-research/SKILL.md
skills/youtube-title/SKILL.md

元信息

文件数
0
版本
7e4e16b
Hash
3cf87630
收录时间
2026-08-29 02:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-05 10:37
浙ICP备14020137号-1