/amlei-skills:amlei-info-videofrom amlei-skills
把有可靠来源的信息、新闻、热点、事件、产品、政策、研究或绯闻,制作成 9:16 中文资讯视频。使用线上 Qwen TTS 和 filetrans ASR、无文稿盲字幕、yt-dlp 素材、FFmpeg 硬切合成。当用户要收集资讯选题、制作新闻解读、热点事件、产品发布、政策研究或人物事件视频,或要求这套 qwen-audio TTS/ASR 流水线时使用;不用于虚构剧情、普通剪辑或无来源爆料。
Ships in amlei-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
制作规则:一个主题一个视频;事实必须有可靠来源;不虚构、不传播未证实内容;信息可以来自任何领域,但必须可核验。
收集选题 → 用户选定 → 核实来源 → 资讯拆解 → 写旁白稿 → 线上 TTS →
线上盲 ASR → 自动字幕 cue → 素材池 → 9:16 视频分段 → 字幕/水印 overlay → 合成 → QC
默认模型:
TTS: qwen-audio-3.1-tts-flash
ASR: qwen-audio-3.1-asr-flash-filetrans
所有模型请求必须通过 scripts/info_video.py 完成;不要把 API key 写入提示词、日志或交付文件。
init 会创建并落盘以下结构:
<slug>/
00_project.md
01_topics/topic_shortlist.md
01_topics/selected_topic.md
02_narration/narration.md
02_narration/title_description.md
03_materials/material_list.md
03_materials/visual_pool.json
04_tts/
05_asr/
06_subtitles/
07_final/
08_qc/
.amlei-skill/info-video/ 本 Skill 的项目级授权/设置
人类可读的事实、清单、旁白、运行记录、QC 报告都写 .md。JSON 只作为下一步流水线的机器状态。
先广泛搜索新闻、官方公告、X、YouTube、微博、小红书、播客、论文、报告、产品页面等公开来源,写入 01_topics/topic_shortlist.md。
每条推荐必须有:
只有可核验的信息才可推荐。未证实爆料、断章取义、虚构剧情不得进入正片。给出推荐后停下,让用户选择。
把用户选中的主题写入 01_topics/selected_topic.md。
先读 references/editorial_intake.md,完成:
再落盘:
写旁白前先读 references/editorial_intake.md。
不要只把资料压缩成流水账;要先把信息转成观众能理解的资讯,再写成口播文本。
写入 02_narration/narration.md。格式:
## S01
第一句完整旁白。
## S02
第二句完整旁白。
要求:
SKILL=/Users/amlei/Data/codespaces/projects/amlei-skills/skills/amlei-info-video
python3 "$SKILL/scripts/info_video.py" init \
--slug "<slug>" --out "<输出根目录>" --title "<项目标题>"
python3 "$SKILL/scripts/info_video.py" narration \
--project "<项目目录>"
TTS 按大段切分,不逐句生成;默认每段上限 420 字:
python3 "$SKILL/scripts/info_video.py" tts \
--project "<项目目录>" \
--model qwen-audio-3.1-tts-flash \
--voice Cherry \
--chunk-chars 420
ASR 使用线上 filetrans 盲转写;优先直接传入 TTS 返回的音频 URL:
python3 "$SKILL/scripts/info_video.py" asr \
--project "<项目目录>" \
--model qwen-audio-3.1-asr-flash-filetrans \
--language zh
ASR 只负责文本和时间轴。不要把旁白稿传给 ASR 提示词,也不要用旁白稿修正 ASR 输出。
python3 "$SKILL/scripts/info_video.py" cues \
--project "<项目目录>" \
--model qwen-audio-3.1-asr-flash-filetrans
生成:
06_subtitles/blind_cues.json06_subtitles/subtitles.md规则:
先下载素材到 03_materials/,并在 material_list.md 记录来源、链接、时间区间、主体和风险。可用 yt-dlp:
yt-dlp -f "bv*[height<=1080]+ba/b[height<=1080]" \
--merge-output-format mp4 \
-o "03_materials/<source>.mp4" "<URL>"
编辑 03_materials/visual_pool.json,给每个 source 提供:
{
"id": "SOURCE_01",
"file": "/absolute/path/source.mp4",
"duration": 215.64,
"crop": [1138, 640, 400, 100],
"scenes": [
{"start": 40.0, "end": 48.0, "tags": ["产品界面", "发布现场"], "clean": true}
]
}
规则:
生成场景计划:
python3 "$SKILL/scripts/info_video.py" plan \
--project "<项目目录>" \
--pool "<项目目录>/03_materials/visual_pool.json" \
--cover "<项目目录>/cover.png"
python3 "$SKILL/scripts/info_video.py" build \
--project "<项目目录>" \
--pool "<项目目录>/03_materials/visual_pool.json" \
--watermark-text "<用户确认的水印文本>"
水印文本必须先问用户。没有用户明确提供的水印文本时,不加水印。
音频加速与混流:
python3 "$SKILL/scripts/info_video.py" package \
--project "<项目目录>" \
--audio "<final_voice.m4a>" \
--speed 1.06
python3 "$SKILL/scripts/info_video.py" qc \
--project "<项目目录>" \
--final "<项目目录>/07_final/成片_1080x1920.mp4"
必须检查:
agents/openai.yaml (opens in a new tab)references/editorial_intake.md (opens in a new tab)references/ffmpeg_recipes.md (opens in a new tab)references/pipeline.md (opens in a new tab)references/source_rules.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/info_video.py (opens in a new tab)templates/visual_pool.example.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
14 skills in this plugin
/amlei-academic-ref-retrieval学术论文参考文献检索与格式输出。根据论文主题拆解核心技术,编写脚从权威期刊/数据库(知网、维普、arXiv等)爬取或提取真实论文信息,按标准参考文献格式输出。触发:写论文 / 参考文献 / 查文献 / 检索论文 / 论文参考 / reference retrieval / academic reference。/amlei-agents-authoring用"哲学式引导"写 AGENTS.md / CLAUDE.md / SKILL.md:把清单式规则提炼成可迁移的判断原则,区分价值与事实,先给对照方案再写入。触发:写 AGENTS / 改 AGENTS / 全局约定 / 项目约定 / 原则化 / 哲学式描述 / 把规则改成原则 / 精简 AGENTS / 写 SKILL / 新建 skill / 优化提示词规则 / CLAUDE.md 怎么写 / conventions。/amlei-csdn-postCSDN 发文(md → CSDN 博客)csdn-post skill 更新Other plugins' skills for the same job