Xpersona
P

Pipixia Drama Producer

CLAWHUB · Unverified

皮皮虾职场短剧全流程制作技能。用于为「皮皮虾」(机械龙虾AI-bot)职场短剧生成镜头视频、剪辑成片、配音配乐并发布到飞书群。完整流程:图生视频(I2V) → ffmpeg规范化+剪辑 → TTS配音 → BGM混音 → 飞书媒体消息发送。当用户提到制作皮皮虾短剧、生成新镜头、剪辑视频、配音配乐、或将视频/音频发... Skill: Pipixia Drama Producer Owner: kylinr Summary: 皮皮虾职场短剧全流程制作技能。用于为「皮皮虾」(机械龙虾AI-bot)职场短剧生成镜头视频、剪辑成片、配音配乐并发布到飞书群。完整流程:图生视频(I2V) → ffmpeg规范化+剪辑 → TTS配音 → BGM混音 → 飞书媒体消息发送。当用户提到制作皮皮虾短剧、生成新镜头、剪辑视频、配音配乐、或将视频/音频发... Tags: drama:1.0.2, feishu:1.0.2, latest:1.1.0, openclawbot:1.0.2, video:1.0.2 Version history: v1.1.0 | 2026-04-10T02:36:37.202Z | user Security fix: credentials via env vars (FEISHU_APP_ID/FEISHU_APP_SECRE

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1762zn98mnjwa52gqaffygph983jy8y:pipixia-drama-producer
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kylinr-pipixia-drama-producer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

31,503 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: pipixia-drama-producer
description: 皮皮虾职场短剧全流程制作技能。用于为「皮皮虾」(机械龙虾AI-bot)职场短剧生成镜头视频、剪辑成片、配音配乐并发布到飞书群。完整流程:图生视频(I2V) → ffmpeg规范化+剪辑 → TTS配音 → BGM混音 → 飞书媒体消息发送。当用户提到制作皮皮虾短剧、生成新镜头、剪辑视频、配音配乐、或将视频/音频发送到飞书群时激活。
---

# 皮皮虾短剧制作技能

完整的职场动物短剧制作流程,从剧本到飞书发布。

## 环境变量配置

使用前请设置以下环境变量:

| 变量名 | 必填 | 说明 |
|--------|------|------|
| `FEISHU_APP_ID` | ✅ | 飞书应用 App ID(发送消息用) |
| `FEISHU_APP_SECRET` | ✅ | 飞书应用 App Secret |
| `FFMPEG` | 可选 | ffmpeg 路径(默认从 PATH 查找) |
| `FFPROBE` | 可选 | ffprobe 路径(默认从 PATH 查找) |
| `EDGE_TTS` | 可选 | edge-tts 路径(默认从 PATH 查找 `node-edge-tts`) |

**飞书应用权限要求**:`im:message:send`、`im:file`、`im:image`

## 角色与剧本参考

详见 `references/drama-reference.md`,包含:
- 角色设定与prompt模板
- ffmpeg关键命令速查
- TTS音色对照表
- 飞书API速查

## 核心工作流

### 第一步:生成镜头(I2V图生视频)

```python
# 必须用 reference_type="first_frame",不要用 "subject"
gen_videos([{
    "image_file": "/workspace/lobster_robot.png",
    "output_file": "/workspace/shot.mp4",
    "prompt": "cute orange lobster robot [动作], ...",
    "reference_type": "first_frame"
}])
```

### 第二步:规范化 + 砍首秒

每个图生视频第一秒是原图静帧,必须裁掉:

```bash
python3 scripts/normalize_and_trim.py input.mp4 output_trim.mp4 --trim 1
```

### 第三步:剪辑合并

```bash
# 写concat列表,用Python避免shell语法问题
python3 -c "
clips = ['clip1_trim.mp4', 'clip2_trim.mp4', ...]
with open('/tmp/concat.txt', 'w') as f:
    for c in clips: f.write(f\"file '{c}'\n\")
"
ffmpeg -y -f concat -safe 0 -i /tmp/concat.txt -c copy output.mp4
```

**剪辑技巧**:
- 在关键台词后插入1.5s反应镜头(增加喜剧节奏)
- 砍掉所有图生视频开头静帧(-ss 1)

### 第四步:TTS配音

```bash
node-edge-tts -t "台词内容" -f output.mp3 -v zh-CN-YunxiaNeural -l zh-CN
```

⚠️ TTS台词时长不能超过对应视频片段时长,过长需用 `atempo=1.1~1.2` 加速:
```bash
ffmpeg -y -i input.mp3 -filter:a "atempo=1.15" output.mp3
```

### 第五步:混音(配音+配乐)

使用 `mix_audio.py` 将多条TTS台词按时间轴叠加,并加入BGM:

```bash
python3 scripts/mix_audio.py \
  --video drama_cut.mp4 \
  --bgm bgm_sneaky.mp3 \
  --bgm-volume 0.25 \
  --output drama_dubbed.mp4 \
  --lines "0.3:tts_line1.mp3" "5.1:tts_line2.mp3" "12.0:tts_line3.mp3"
```

BGM推荐下载地址(Kevin MacLeod CC BY 3.0):
```bash
curl -sL "https://incompetech.com/music/royalty-free/mp3-royaltyfree/Sneaky%20Snitch.mp3" -o bgm.mp3
```

### 第六步:发送到飞书

```bash
# 提取封面
ffmpeg -y -i video.mp4 -ss 00:00:00.5 -frames:v 1 -update 1 cover.jpg

# 发送视频(媒体气泡),chat_id 为目标群组 ID
bash scripts/send_video.sh video.mp4 cover.jpg <chat_id>

# 发送音频语音消息
bash scripts/send_audio.sh "要播报的文字" <chat_id> "zh-CN-YunxiaNeural"
```

## 依赖工具

| 工具 | 环境变量 | 默认值 |
|------|----------|--------|
| ffmpeg | `FFMPEG` | `ffmpeg`(PATH) |
| ffprobe | `FFPROBE` | `ffprobe`(PATH) |
| edge-tts | `EDGE_TTS` | `node-edge-tts`(PATH) |
| 飞书凭证 | `FEISHU_APP_ID` / `FEISHU_APP_SECRET` | 无(必填) |

## 版本管理惯例

每次重要修改用v2/v3...命名输出文件,保留历史版本方便回退:
- `drama_ep1_v1.mp4` → `drama_ep1_v2.mp4` → ...
- 在工作目录记录每个版本的剪辑结构

_meta.json

{
  "ownerId": "kn7bcd1pq283np4x3k3f8q2tc982est6",
  "slug": "pipixia-drama-producer",
  "version": "1.1.0",
  "publishedAt": 1775788597202
}

references/drama-reference.md

# 皮皮虾短剧制作 - 完整参考手册

## 角色设定(第一期)

| 部门 | 角色 | 动物 | 参考图 |
|-----|------|------|------|
| 市场部 | 皮皮虾 🦞 | AI小龙虾机器人,橙色装甲+蓝色发光关节 | `lobster_robot.png` |
| 财务部 | 锦鲤 🐠 | 运气差的会计,戴眼镜 | 群像图 |
| 技术部 | 格子衫龟 🐢 | 资深老员工,穿格子衫 | 群像图 |
| 客服部 | 喵星人 🐱 | 白天摸鱼 | 群像图 |
| 销售部 | 狐狸 🦊 | PPT之神,精致西装 | 群像图 |
| HR | 柴犬 🐕 | 只会说"加油",马甲 | 群像图 |
| 老板 | 雄狮 🦁 | 画大饼,黑西装+橙色领带 | `new_lion.png` |

## 皮皮虾性格特点(生成prompt必备)
- 已读乱回:答非所问但自信满满
- 车轱辘话:反复重复同一意思不同表达
- 过度道歉:迟到0.0001秒也会大道歉
- 清单癖:任何问题都要1.2.3.列出来
- 一本正经胡说八道:用严肃语气说出无厘头内容

---

## 视频生成参数

### 图生视频(I2V)
- **必须用** `reference_type="first_frame"`
- S2V(subject)仅支持真实人脸,卡通/机器人会失败
- 默认6秒,768P

### Prompt模板

**皮皮虾镜头**:
```
cute orange lobster robot character [动作], blue glowing joints, kawaii mechanical design, 
[场景描述], bold cartoon style with thick outlines, vibrant orange and teal color palette
```

**雄狮镜头**:
```
cartoon lion boss in black business suit with orange tie, [动作], golden mane [状态],
modern office with city skyline window, conference table, bold cartoon animation style
```

**群像镜头**:
```
cartoon anthropomorphic animal coworkers in business suits at conference table, 
[情绪状态], modern office meeting room, bold cartoon animation style
```

---

## ffmpeg关键操作

### 规范化视频(生成后必做)
```bash
ffmpeg -y -i input.mp4 \
  -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2:black,fps=24" \
  -c:v libx264 -crf 22 -preset fast \
  -c:a aac -ar 44100 -ac 2 \
  output_norm.mp4
```

### 砍掉开头静帧(图生视频第一秒通常是原图)
```bash
ffmpeg -y -i input_norm.mp4 -ss 1 -c:v libx264 -crf 22 -preset fast output_trim.mp4
```

### 截取封面图
```bash
ffmpeg -y -i video.mp4 -ss 00:00:01 -frames:v 1 -update 1 cover.jpg
```

### 截取短片段(用于插入反应镜头)
```bash
ffmpeg -y -i input.mp4 -t 1.5 -c:v libx264 -crf 22 output_short.mp4
```

### 多段合并(concat)
```bash
# 先写concat文件
cat > concat.txt << EOF
file 'clip1.mp4'
file 'clip2.mp4'
file 'clip3.mp4'
EOF
ffmpeg -y -f concat -safe 0 -i concat.txt -c copy output.mp4
```

### 加速音频(调整TTS语速)
```bash
ffmpeg -y -i input.mp3 -filter:a "atempo=1.2" output.mp3
```

---

## TTS音色(edge-tts)

| 角色 | 推荐音色 | 特点 |
|-----|---------|------|
| 皮皮虾 | `zh-CN-YunxiaNeural` | 清朗自然 ✅ |
| 雄狮 | `zh-CN-YunjianNeural` | 激情有力 ✅ |
| 通用女声 | `zh-CN-XiaoxiaoNeural` | 温柔 |
| 通用男声 | `zh-CN-YunxiNeural` | 活泼少年 |
| 主播腔 | `zh-CN-YunyangNeural` | 新闻主播,老成 |

**注意**:YunzeNeural / YunyeNeural 容易超时失败,避免使用

TTS命令:
```bash
node-edge-tts -t "要说的内容" -f output.mp3 -v zh-CN-YunxiaNeural -l zh-CN
# 或通过环境变量指定路径:$EDGE_TTS -t "..." -f output.mp3 -v zh-CN-YunxiaNeural -l zh-CN
```

---

## 飞书发送 API 速查

### 发送视频(媒体气泡)
- 上传封面:`POST /im/v1/images`,`image_type=message` → `image_key`
- 上传视频:`POST /im/v1/files`,`file_type=mp4`(不能是video/stream!)→ `file_key`
- 发送:`msg_type=media`,content包含 `file_key`+`image_key`+`file_name`+`duration`

### 发送音频(可播放语音)
- 上传:`file_type=opus`(格式填opus,即使实际是mp3)→ `file_key`
- 发送:`msg_type=audio`,content仅含 `file_key`

### 常用群组ID
- 发送时通过 `<chat_id>` 参数指定目标群组,不要硬编码

---

## 配乐来源

- Kevin MacLeod(CC BY 3.0): https://incompetech.com
  - 搞笑/轻松:Sne

skill-card.md

## Description:

皮皮虾职场短剧全流程制作技能,用于生成职场短剧镜头视频、剪辑成片、配音配乐并发布到飞书群。

This skill is ready for commercial/non-commercial use.

## Publisher:

[kylinr](https://clawhub.ai/user/kylinr)

### License/Terms of Use:

MIT-0

## Use Case:

Creators, operators, and agent users can use this skill to produce Pipixia workplace short-drama videos from image-to-video shots, normalize and edit clips, add TTS dialogue and background music, and send finished media to a Feishu chat.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The release security verdict is suspicious because media filenames, temporary files, and credentials require review before installation.

Mitigation: Install only in a restricted workspace under a low-privilege account and review the helper scripts before use.

Risk: Feishu posting scripts can send video or audio messages to a chat when credentials and chat IDs are supplied.

Mitigation: Limit Feishu app credentials to the intended chat actions and require explicit operator confirmation before running send_video.sh or send_audio.sh.

Risk: Untrusted media paths may be unsafe until send_video.sh passes values as Python arguments instead of interpolating them into python3 -c.

Mitigation: Process only trusted media paths, or patch send_video.sh to pass arguments safely before accepting external inputs.

Risk: Shared temporary file paths can expose or collide with media processing artifacts.

Mitigation: Replace shared /tmp paths with mktemp-based private directories before using the skill in shared environments.

## Reference(s):

- [Pipixia Drama Production Reference](references/drama-reference.md)
- [ClawHub skill page](https://clawhub.ai/kylinr/skills/pipixia-drama-producer)
- [Kevin MacLeod music reference](https://incompetech.com)
- [Feishu auth API endpoint](https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal)
- [Feishu file upload API endpoint](https://open.feishu.cn/open-apis/im/v1/files)
- [Feishu image upload API endpoint](https://open.feishu.cn/open-apis/im/v1/images)
- [Feishu message send API endpoint](https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=chat_id)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with inline Python, bash, ffmpeg, TTS, and Feishu API command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May generate or send media files when the helper scripts are executed with local tools and Feishu credentials.]

## Skill Version(s):

1.1.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Pipixia Drama Producer and adjacent AI workflows.