Orchestrate comprehensive content research across X, Instagram, YouTube, and TikTok platforms. Runs all research skills in parallel via subagents, then aggregates findings into actionable content...
Orchestrate parallel research across X, Instagram, YouTube, and TikTok, then aggregate findings into content ideas and platform-specific playbooks.
Same as individual research skills:
APIFY_TOKEN for X, Instagram, and TikTok researchTUBELAB_API_KEY for YouTube researchGEMINI_API_KEY for video analysis.claude/context/ for each platformCRITICAL - Subagent Environment Setup: Each subagent must load environment variables from the .env file in the head-of-marketing working directory before executing any API calls:
export $(cat .env | grep -v '^#' | xargs)
Read all files in .claude/context/ to understand the user's niche, target audience, and accounts to research. Pass this context to each subagent.
RUN_FOLDER="content-plans/$(date +%Y-%m-%d_%H%M%S)" && mkdir -p "$RUN_FOLDER" && echo "$RUN_FOLDER"
Use the Task tool to launch 4 subagents simultaneously:
Subagent 1 - X Research:
Execute the x-research skill:
1. Create run folder in x-research/
2. Fetch tweets (30 days, 100 max per account)
3. Analyze for outliers
4. Run video analysis if video content found
5. Generate report
Return: The run folder path and a JSON summary with:
- run_folder: path to the run folder
- total_posts: number analyzed
- outlier_count: outliers found
- top_topics: top 5 hashtags/keywords
Subagent 2 - Instagram Research:
Execute the instagram-research skill:
1. Create run folder in instagram-research/
2. Fetch reels (30 days, 50 per account)
3. Analyze for outliers
4. Run video analysis on top 5
5. Generate report
Return: The run folder path and a JSON summary with:
- run_folder: path to the run folder
- total_posts: number analyzed
- outlier_count: outliers found
- top_topics: top 5 hashtags/keywords
Subagent 3 - YouTube Research:
Execute the youtube-research skill:
1. Read channel context from .claude/context/youtube-channel.md
2. Analyze channel for keywords
3. Search for outliers
4. Filter to top 3 relevant videos
5. Run video analysis
6. Generate report
Return: The run folder path and a JSON summary with:
- run_folder: path to the run folder
- total_videos: number analyzed
- outlier_count: outliers found
- top_topics: top 5 keywords
Subagent 4 - TikTok Research:
Execute the tiktok-research skill:
1. Create run folder in tiktok-research/
2. Fetch videos (30 days, 50 per account)
3. Analyze for outliers
4. Run video analysis on top 5
5. Generate report
Return: The run folder path and a JSON summary with:
- run_folder: path to the run folder
- total_videos: number analyzed
- outlier_count: outliers found
- top_topics: top 5 hashtags/sounds/keywords
After all subagents complete, read from each platform's latest run folder:
x-research/{latest}/
āāā outliers.json
āāā video-analysis.json (if exists)
instagram-research/{latest}/
āāā outliers.json
āāā video-analysis.json
youtube-research/{latest}/
āāā outliers.json
āāā video-analysis.json
tiktok-research/{latest}/
āāā outliers.json
āāā video-analysis.json
Read references/content-ideas-template.md for the full template structure.
Key aggregation tasks:
opportunity_score = (x_engagement Ć 1.5) / (instagram_saturation + youtube_saturation + tiktok_saturation + 1)
instagram_saturation: 0 (not present), 0.5 (low), 1 (medium), 1.5 (high)youtube_saturation: same scaletiktok_saturation: same scaleWrite to: {RUN_FOLDER}/content-ideas.md
For each platform, read references/playbook-template.md and generate:
{RUN_FOLDER}/x-playbook.md{RUN_FOLDER}/instagram-playbook.md{RUN_FOLDER}/youtube-playbook.md{RUN_FOLDER}/tiktok-playbook.mdEach playbook extracts from the platform's research:
Output to user:
content-plans/
āāā {YYYY-MM-DD_HHMMSS}/
āāā content-ideas.md # Cross-platform ideas (X-primary)
āāā x-playbook.md # X/Twitter intelligence playbook
āāā instagram-playbook.md # Instagram intelligence playbook
āāā youtube-playbook.md # YouTube intelligence playbook
āāā tiktok-playbook.md # TikTok intelligence playbook
To identify cross-platform winners:
Full orchestration: