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

ig-research-setup

GitHub

用于初始化社交媒体研究项目的技能。检查环境依赖,创建项目目录与配置文件,安装 Node 依赖并配置 Chrome 浏览器,为后续数据采集与分析做准备。

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

Trigger Scenarios

需要开始新的社交媒体数据分析项目 首次运行 ig-research 相关任务前

Install

npx skills add leamsigc/ShortsGenerator --skill ig-research-setup -g -y
More Options

Use without installing

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.

Version History

  • 7b83166 Current 2026-08-29 02:31

Same Skill Collection

skills/facebook-research-analyze/SKILL.md
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/ig-research/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/reddit-research/SKILL.md
skills/short-generator/SKILL.md
skills/twitter-research-analyze/SKILL.md
skills/twitter-research-report/SKILL.md
skills/twitter-research-scrape/SKILL.md
skills/twitter-research-setup/SKILL.md
skills/twitter-research-topics/SKILL.md
skills/workflow-conventions/SKILL.md
skills/facebook-research-grow/SKILL.md
skills/facebook-research/SKILL.md
skills/twitter-research/SKILL.md

Metadata

Files
0
Version
b971266
Hash
3cf87630
Indexed
2026-08-29 02:31

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 03:16
浙ICP备14020137号-1