Skip to content
Agentmart
Submit a tool

hook-analyzer

视频前三秒钩子分析技能。从分镜拆解结果中提取前三秒分镜数据,为钩子吸引力评估提供结构化上下文。运行脚本 `python scripts/analyze_hook_segments.py "<breakdown_json_file>"` 或通过 stdin 传入…

Skill by bytedanceOfficial

IndexedApache-2.0★ 473
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bytedance-hook-analyzer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

视频前三秒钩子分析技能。从分镜拆解结果中提取前三秒分镜数据,为钩子吸引力评估提供结构化上下文。运行脚本 `python scripts/analyze_hook_segments.py "<breakdown_json_file>"` 或通过 stdin 传入 JSON。输出包含前三秒分镜数量、总时长和每个分镜的详细信息(含关键帧 URL)。

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/hook-analyzer

What's inside

Skill name
hook-analyzer
Description
视频前三秒钩子分析技能。从分镜拆解结果中提取前三秒分镜数据,为钩子吸引力评估提供结构化上下文。运行脚本 `python scripts/analyze_hook_segments.py "<breakdown_json_file>"` 或通过 stdin 传入 JSON。输出包含前三秒分镜数量、总时长和每个分镜的详细信息(含关键帧 URL)。
License
Apache-2.0
Instructions
108 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: "hook-analyzer" does not match folder "hook-analyzer-skill"

Files (2)

  • SKILL.md
  • analyze_hook_segments.py · scripts/

SKILL.md (first lines)

# 视频前三秒钩子分析 (Hook Analyzer)

## 概述

视频前三秒钩子分析技能从分镜拆解结果中提取前三秒的分镜数据,并构造结构化的分析上下文,包含视觉内容描述、关键帧图片 URL、运镜方式等信息,为后续的 LLM 多维度评分分析提供输入。

## 适用场景

1. **短视频优化**:评估视频开头的吸引力,提升 3 秒留存率
2. **创意评审**:从5个维度量化分析钩子质量
3. **竞品对标**:对比不同视频开头的钩子策略

## 分析维度

本技能提取的数据供以下 5 个维度评分(由 LLM 完成评分):

| 维度 | 权重 | 评估要点 |
|------|------|----------|
| 视觉冲击力 | 30% | 画面构图、色彩、光影、运镜动感 |
| 语言钩子 | 25% | 文案与画面配合度、悬念制造 |
| 情绪唤起 | 15% | 画面情绪、人物表情、氛围营造 |
| 信息密度 | 15% | 有效信息量、核心价值传达 |
| 节奏掌控 | 15% | 分镜切换节奏、平台特性适配 |

## 使用步骤

### 方式一:从文件读取分镜数据

```bash
# 1. 先使用 video-breakdown skill 处理视频并获取分镜结果
python ../video-breakdown-skill/scripts/process_video.py "https://example.com/video.mp4" > breakdown.json

# 2. 提取前三秒分镜数据
python scripts/analyze_hook_segments.py breakdown.json
```

### 方式二:通过 stdin 管道传入

```bash
cat breakdown.json | python scripts/analyze_hook_segments.py -
```

## 输出格式

```json
{
  "segment_count": 3,
  "total_duration": 2.8,
  "total_video_segments": 15,
  "analysis_mode": "multimodal",
  "segments": [
    {
      "index": 0,
      "start_time": 0.0,
      "end_time": 1.0,
      "duration": 1.0,
      "visual_content": "画面描述",
      "speech_text": "语音文字",
      "shot_type": "特写",
      "camera_movement": "推镜头",
      "function_tag": "开场",
      "frame_images": [
        {"type": "image_url", "image_url": {"url": "https://..."}}
      ],
      "frame_count": 3
    }
  ]
}
```

## 钩子类型分类

分析结果可用于识别以下钩子类型:

- **痛点型**:直击用户痛点,引发共鸣
- **好奇型**:设置悬念,引发好奇
- **冲突型**:制造对比或冲突吸引注意
- **价值型**:直接展示价值承诺
- **情感型**:以情感共鸣打动用户
- **视觉冲击型**:通过强烈视觉效果吸引
- **悬念型**:留下悬念引导继续观看

## 评分标准

| 分数段 | 等级 | 描述 |
|--------|------|------|
| 9-10 | 顶级 | 极强的吸引力和创意 |
| 7-8 | 优秀 | 具备良好的吸引力 |
| 5-6 | 一般 | 有改进空间 |
| 3-4 | 较弱 | 需要重大改进 |
| 1-2 | 很差 | 基本没有吸引力 |

## 注意事项

1. 此脚本只做**数据提取**,不做 LLM 评分(评分由 Agent 的 LLM 完成)
2. 提取的 `frame_images` 字段中包含关键帧 URL,可供 Vision 模型直接分析
3. 每个分镜最多取前 3 帧关键帧,避免 token 超限
4. 输入必须是 `process_video` 返回的完整 JSON 数据

## 故障排除

| 问题 | 解决方案 |
|------|----------|
| 输出为空 segments | 确认输入 JSON 包含 `segments` 字段且不为空 |
| 前三秒无分镜 | 视频可能从静止画面开始,检查原始数据 |
| 关键帧 URL 失效 | TOS 签名 URL 可能已过期,重新拆解获取 |

From bytedance/agentkit-samples, Apache-2.0.

More from bytedance/agentkit-samples

Signals

Stars
473
Forks
101
Open issues
14
Last commit (this folder)
Feb 13, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from bytedance

Cite this page

hook-analyzer skill. Agent Mart. https://agentmart.dev/skills/bytedance-hook-analyzer (last updated 2026-10-24)