技能图谱SKILLSGROVE
技能图谱/短视频与自媒体/leamsigc/ShortsGenerator/ig-research-analyze

ig-research-analyze

安装

$npx skills add https://github.com/leamsigc/ShortsGenerator --skill ig-research-analyze
$git clone --depth 1 https://github.com/leamsigc/ShortsGenerator.git /tmp/ShortsGenerator && mkdir -p ~/.claude/skills && cp -r /tmp/ShortsGenerator/skills/ig-research-analyze ~/.claude/skills/ig-research-analyze
请帮我安装这个 Agent Skill:https://github.com/leamsigc/ShortsGenerator/tree/7e4e16b8c5cb51f61836265189e3a89282228e40/skills/ig-research-analyze ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITContent psychology analysis state. Reads raw-posts.json and transcripts, analyzes top 6 posts through a psychological lens, identifies trigger patterns, and generates 5 tailored content angle recommendations. Also runs the video-ideas pipeline (shared video-idea-research playbook): top 10 reels/videos by views in the window → outlines → 5 video ideas × 3 scripts (viral / storytelling / inspiration) + YouTube metadata (title, description, tags, keywords) → ideas-report.md + REPORT.html.
以下 SKILL.md 内容转载自 leamsigc/ShortsGenerator(提交 7e4e16b),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2024 leamsigc 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

Social Research — Analyze State

After scraping and transcription, this state reads the data and provides content psychology analysis, then the video-ideas pipeline.

Preconditions

  • Raw data exists: .ig-research/projects/<project-name>/raw-posts.json
  • Transcripts exist in .ig-research/projects/<project-name>/transcripts/
  • Report exists in .ig-research/projects/<project-name>/report.html

Steps

1. Read report data

cat .ig-research/projects/<project-name>/report.html

2. Read raw posts

node -e "const d=require('./.ig-research/projects/<project-name>/raw-posts.json'); console.log(JSON.stringify(d.posts.slice(0,6),null,2))"

3. For each of the top 6 posts, identify psychological triggers

Analyze against these frameworks:

Trigger Description Signal
Curiosity gaps / open loops Creates info gap the brain wants to close "Here's why...", "The one thing..."
Identity signaling Makes viewer feel like "that person" "This is for people who..."
Social proof / tribal belonging Shows community validation High engagement numbers, "join"
Loss aversion / FOMO Fear of missing out "Don't make this mistake", "before it's too late"
Authority / credibility Positions creator as expert Named frameworks, credentials
Pattern interrupt / contrarian Goes against expectation "Everything you know about X is wrong"
Reciprocity / value-first Gives before asking Free frameworks, actionable tips
Anchoring / specificity Specific numbers feel researched "3 things", "7 strategies"

4. Give 5 content angle recommendations

For each angle: psychological trigger, hook example, why it works in the niche.

5. Summarize findings

Write a brief summary: how many posts scraped, top 3-5 performers, common patterns.

6. Open the report

xdg-open .ig-research/projects/<project-name>/report.html

(Use open on Mac, start on Windows)

7. Video ideas pipeline (skill video-idea-research)

When the user wants video ideas for a topic, run the shared playbook:

  1. Top 10 by views in the window — rank the scraped reels (plus a fresh hashtag/explore scrape for the topic when needed). Real play counts only; views: null + the proxy metric when the count isn't visible.
  2. Outlines — hook = first caption line or transcript opening; beats and CTA from the Whisper transcript (scripts/transcribe.sh); format/duration from the reel itself.
  3. 5 ideas, each grounded in ≥2 top reels with their real numbers.
  4. 3 scripts per idea — viral (viral_shorts), storytelling (storytelling), inspiration (motivational); TTS-ready, [HOOK]/[CTA] labels only. Optional backend seeding:
    curl -s -X POST http://localhost:8080/api/script \
      -H "Content-Type: application/json" \
      -d '{"videoSubject":"<idea title>","extraPrompt":"<angle + outline context>","aiModel":"g4f","scriptTemplate":"viral_shorts","scriptLength":"standard"}'
    
  5. YouTube metadata per idea (title via the youtube-title rubric, description, tags, keywords).
  6. Save video-ideas.json and render the report:
    node "$CLAUDE_SKILL_ROOT/scripts/build-ideas-report.js" <path-to-video-ideas.json>
    # fallback: node ./skills/video-idea-research/scripts/build-ideas-report.js <path>
    
查看许可证全文(MIT)
MIT License

Copyright (c) 2024 leamsigc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.