Agent Skillsleamsigc/ShortsGenerator › twitter-research-analyze

twitter-research-analyze

GitHub

分析Twitter/X抓取数据,对目标受众进行评分,识别内容模式,并基于高表现帖子生成社交媒体文案和视频脚本草稿。

skills/twitter-research-analyze/SKILL.md leamsigc/ShortsGenerator

Trigger Scenarios

需要分析社交媒体受众参与度 需要根据竞品或热门帖子生成内容草稿 执行Twitter研究流程中的分析与创作阶段

Install

npx skills add leamsigc/ShortsGenerator --skill twitter-research-analyze -g -y
More Options

Use without installing

npx skills use leamsigc/ShortsGenerator@twitter-research-analyze

指定 Agent (Claude Code)

npx skills add leamsigc/ShortsGenerator --skill twitter-research-analyze -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": "twitter-research-analyze",
    "version": "3.0.0",
    "description": "Analyze state — reads the scraped topic posts from raw-posts.json (10+\nposts across many accounts), scores target audience segments 1-10 based on\nengagement signals, generates social media post drafts and video script\ndrafts from top-performing posts, and identifies content patterns.\n",
    "allowed-tools": [
        "Bash",
        "Read",
        "Write",
        "ChromeDevTools"
    ]
}

Twitter/X Research — Analyze State (v3)

Scores audiences, generates content drafts, and identifies winning patterns. The output files are consumed by twitter-research-report (node "$CLAUDE_SKILL_ROOT/scripts/report-html.js" <timestamp>).

Preconditions

  • Scrape completed: .twitter-research/<YYYY-MM-DD_HHMMSS>/raw-posts.json
  • Config exists: .twitter-research/<timestamp>/config.json

Steps

1. Load data

node -e "const d=require('./.twitter-research/<YYYY-MM-DD_HHMMSS>/raw-posts.json'); console.log(JSON.stringify({topic:d.topic, distinctAccounts:d.distinctAccounts, posts:d.posts.map(p=>({handle:p.handle, likes:p.likes, retweets:p.retweets, url:p.url, text:p.text.substring(0,120)}))},null,2))"

2. Audience segmentation & scoring

For each targetAudienceKeyword in config, score 1-10 using: relevance, engagement rate, content affinity, monetization potential, competition level (lower = better). Find matching posts per segment and note pain points + content angles.

Save to audience-scores.json:

{
  "analysisTimestamp": "<YYYY-MM-DD HH:MM:SS>",
  "segments": [
    {
      "segment": "social media manager",
      "finalScore": 9,
      "breakdown": {"relevance": 10, "engagementRate": 9, "contentAffinity": 8, "monetization": 9, "competitionLevel": 7},
      "verdict": "✅ Best Prospect",
      "painPoints": ["..."],
      "contentAngles": ["..."],
      "whyScore": "...",
      "matchingTweetsCount": 8
    }
  ],
  "contentPatterns": {"topHookTypes": [], "bestFormats": [], "contentCalendar": {}},
  "totalPostsAnalyzed": 10,
  "distinctAccountsAnalyzed": 7,
  "topic": "<topic>"
}

3. Generate social media post drafts

For the top topic posts, adapt each winning angle to the user's brand voice (headline, body, CTA, hashtags, best time). Generate via the backend API if available:

curl -s -X POST http://localhost:8080/api/script \
  -H "Content-Type: application/json" \
  -d '{"videoSubject":"<topic>","extraPrompt":"<build a viral social post adapting the top tweet>","aiModel":"g4f","scriptTemplate":"viral_shorts"}'

If the API is unavailable, write drafts manually based on each tweet's structure and angle.

4. Generate video script drafts

If contentFormat includes video, generate 30-60s scripts: hook → problem → solution → social proof → CTA.

5. Save to content-drafts.json

{
  "generatedAt": "<YYYY-MM-DD HH:MM:SS>",
  "postDrafts": [{"rank": 1, "sourceHandle": "@h", "sourceUrl": "...", "targetSegment": "...", "headline": "...", "body": "...", "cta": "...", "hashtags": ["#a"], "format": "social_post"}],
  "videoScripts": [{"rank": 1, "sourceHandle": "@h", "sourceUrl": "...", "targetSegment": "...", "hook": "...", "body": "...", "cta": "...", "format": "video_script"}]
}

Report Completion

✅ Twitter/X Research Analysis Complete!
Session: .twitter-research/<timestamp>/
Audience segments scored: <N> (top: <segment> <score>/10)
Content drafts: <N> posts · <N> scripts
Next step: skill twitter-research-report

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-setup/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-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
7b83166
Hash
e2c7405f
Indexed
2026-08-29 02:31

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 21:47
浙ICP备14020137号-1 $Carte des visiteurs$