seven-tone-text-rain-video

Creates a “seven-tone text rain” music animation via Chinese-only dialogue, accepting text parameters and optional local audio. First generates a preview animation accessible only on the current computer; after the user explicitly confirms, exports a voiced MP4 at 1440×1920, 60 FPS, H.264 + AAC. Suitable for text-rain effects, music visualization, local preview, and vertical short-video production; the first message after activation starts the configuration guide.

Installation

Review the source and dependencies with a prompt.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "seven-tone-text-rain-video" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7f401c917f985bded6a334947c0623bc048dfa5b8df8e0ca0b53978d8364aa10. Verify the upstream source and version against https://skillhub.cn/skills/user_fff36e64/seven-tone-text-rain-video before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Download permission for this version is unverified or restricted.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Creates a “seven-tone text rain” music animation via Chinese-only dialogue, accepting text parameters and optional local audio. First generates a preview animation accessible only on the current computer; after the user explicitly confirms, exports a voiced MP4 at 1440×1920, 60 FPS, H.264 + AAC. Suitable for text-rain effects, music visualization, local preview, and vertical short-video production; the first message after activation starts the configuration guide.

0 Downloads

Introduction source: third_party · user_fff36e64 · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

A verified file list is not available on Skillπ yet.

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: seven-tone-text-rain-video
description: 通过全中文对话制作“七音文字雨”音乐动画,接收文字参数和可选本地音频,先生成仅当前电脑可访问的动画预览,用户明确确认后再导出 1440×1920、60 FPS、H.264 + AAC 有声 MP4;适用于文字雨、音乐可视化、本地预览和竖屏短视频制作,技能激活后的首次任意消息进入配置引导。
tags: [视频创作, 文字动画, 音乐可视化, 本地工具]

七音文字雨视频制作

始终使用中文与用户交互。把流程视为有状态任务,严格执行“先预览、再确认、后导出”。

SkillHub.cn 运行兼容性

SkillHub.cn 只负责分发和安装 Skill,不托管动画预览,也不替 Agent 执行脚本。本技能面向运行在用户当前电脑上的本地执行型 Agent。

先检查工具箱是否完整

安装后必须先确认技能根目录包含以下 8 个文件:

seven-tone-text-rain-video/
├── SKILL.md
├── assets/
│   ├── default-config.json
│   └── index.template.html
├── references/
│   ├── configuration.md
│   └── conversation.md
└── scripts/
    ├── build_preview.py
    ├── doctor.py
    └── serve_preview.py

在首次构建预览前运行零依赖诊断:

python "<技能根目录>/scripts/doctor.py"

只有输出中的顶层字段 "通过": true 时才继续。若提示缺少文件,说明安装包不完整,应停止运行并请用户更新或重新安装技能;不得仅凭 SKILL.md 模拟工具执行结果。

在首次真正构建预览前完成环境预检:

  1. 将当前 SKILL.md 所在目录解析为技能根目录,所有脚本和资源都使用绝对路径;不要假设当前工作目录就是技能目录。
  2. 确认存在 Python 3.10 或更高版本;三个脚本只使用 Python 标准库,不需要联网安装依赖。
  3. 确认 Agent 有可写任务目录,并允许启动能跨对话轮次持续运行的 127.0.0.1 HTTP 服务。
  4. 确认用户能在同一台电脑上使用最新版桌面 Chrome 或 Edge 打开本地链接,并允许浏览器下载 MP4。
  5. 使用自定义音频时,确认 Agent 能读取用户在当前任务中明确上传的附件。

任一条件不满足时,用中文准确说明缺少的能力并停止;不得伪造本地预览链接、预览编号、音频分析结果或 MP4 文件。不要把 SkillHub.cn 的网页地址当成动画预览地址。

不可违反的规则

  1. 将技能激活后的首次任意消息视为启动信号,包括“你好”、表情或无关短句;此时不要制作页面,先发送完整引导和配置模板。
  2. 未收到完整配置时,不生成预览。
  3. 配置指定自定义音频时,未找到对应上传附件前,不生成预览。
  4. 生成预览后,不在同一轮开始视频导出;先返回本地预览链接和预览编号,并询问是否确认导出。
  5. 只有用户明确表达“确认导出”“可以导出”“导出吧”等意思,且配置、音频和预览编号均未改变时,才开始导出。
  6. 用户在确认前后修改任何配置或更换音频时,立即使旧预览和旧确认失效,重新生成预览并再次询问。
  7. 不把 HTML、音频或视频上传到公网、飞书妙搭或第三方服务。预览服务只绑定 127.0.0.1。
  8. 不把视频回退为 WebM;MP4 编码不受支持时,说明原因并引导使用最新版 Chrome 或 Edge。
  9. 不因 Agent 缺少本地执行、持续进程或浏览器控制能力而声称任务成功;环境不兼容时明确停止并给出所缺能力。

状态流程

按以下顺序维护状态:

首次引导 → 等待配置 → 等待音频(可选)→ 构建预览 → 等待导出确认 → 正在导出 → 已交付

将当前任务目录中的 job.json 作为预览版本依据。不要仅凭对话记忆判断当前版本。

1. 首次引导

首次进入时,读取 conversation.md 并原样遵循其中“首次回复必须包含的内容”。必须同时做到:

  • 说明操作步骤和浏览器注意事项。
  • 给出可复制的 JSON 配置模板,保留所有默认值。
  • 明确当前默认音频为内置示例音乐 luvsic.mp3,约 20.53 秒。
  • 提醒:如果要换音乐,请把配置中的“音频文件”改成真实文件名,并在同一轮上传该文件。
  • 说明保留内置音乐时无需重复上传。

2. 接收并校验输入

读取 configuration.md 了解字段、范围和附件匹配规则。

解析用户粘贴的 JSON;若只是普通文本配置,也要映射为相同中文字段。仅对缺失或非法字段追问,不要求用户重复填写全部内容。

满足以下条件后才能继续:

  • “下落文字”非空。
  • 三个数值参数位于模板允许范围内。
  • “音频文件”表示内置 luvsic.mp3,或存在同名/明显对应的已上传音频。
  • 自定义音频扩展名为 .mp3、.wav、.m4a、.aac 或 .ogg。

不要尝试读取未获授权的其他目录来猜测音频。只使用用户在当前任务中明确上传或指定的文件。

3. 构建本地预览

在可写工作区中为每版预览建立独立任务目录,例如:

.seven-tone-text-rain/<日期时间>/
├── config.json
├── index.html
├── job.json
└── preview-server.json

不要修改 assets/index.template.html。运行:

python "<技能根目录>/scripts/build_preview.py" --config <配置文件> --output-dir <任务目录>

若仅做安装冒烟测试,可以省略 --config,脚本会读取 assets/default-config.json;正式对话任务仍应把用户确认后的参数写入任务目录中的独立配置文件。

python 表示当前环境中可用的 Python 3.10+ 可执行文件;若命令名不同,使用实际可执行文件,但不要联网安装第三方包。

使用自定义音频时追加:

--audio <已上传音频的本地路径>

脚本会安全注入文字和参数、嵌入自定义音频,并让页面现有分析器在载入后重新计算节奏。读取脚本输出和 job.json,记录 preview_id。

启动预览服务:

python "<技能根目录>/scripts/serve_preview.py" --directory <任务目录> --port <预览端口>

让该命令所在的持续任务保持运行,并读取任务目录中的 preview-server.json 获取实际 URL。不要使用会随一次性 shell 会话结束而被自动回收的临时后台进程。端口冲突时改用 --port 0 自动选择空闲端口。

本地链接必须以 http://127.0.0.1: 开头。若不是,立即停止并重新启动正确服务。

4. 检查预览后再交付链接

使用可用的浏览器控制能力打开本地 URL。不要只检查 HTTP 200;还要完成以下验证:

  1. 等待根元素 document.documentElement.dataset.sevenToneReady === "true";页面也会同步维护 window.__SEVEN_TONE_SKILL__,但某些浏览器控制环境处于隔离脚本上下文,应优先读取 DOM 数据属性。
  2. 若 dataset.sevenToneState === "error",读取 dataset.sevenToneError,用中文告知用户并停止。
  3. 检查页面可见标题为“七音文字雨”,文字、三个参数和当前音乐与 job.json 一致。
  4. 检查播放按钮和导出按钮可用,并确认音频元数据中的时长大于 0。若当前自动化浏览器允许音频播放,可点击“生成并重新播放”做额外检查;若其音频设备或自动播放策略受限,不要把该环境限制误判为页面故障,提醒用户在普通 Chrome 或 Edge 中查看本地链接。
  5. 自定义音频较长时允许最多 120 秒完成本地分析。
  6. 返回链接前再次执行一次 HTTP 存活检查,确认仍为 200;服务进程必须保持到导出完成或用户明确结束任务。

验证通过后,按 conversation.md 的“预览交付”格式回复,包含:

  • 可点击的本地预览链接。
  • 当前预览编号 preview_id。
  • 当前音频名称。
  • “尚未导出视频”的明确说明。
  • 确认问题:“确认按当前预览导出高清有声 MP4 吗?”

5. 判断用户是否确认

可接受的确认包括:

  • “确认导出”
  • “可以导出”
  • “效果没问题,导出吧”
  • “确认导出预览 <preview_id>”

“好的”“知道了”“先这样”等含义不明确的回复不算确认;继续用一句中文询问即可。

确认前核对:当前 URL、job.json 的 preview_id、用户最后一次配置和音频均属于同一版本。任何一项不一致都重新预览。

6. 导出并交付 MP4

优先使用最新版桌面 Chrome 或 Edge;不要在明确禁止音频输出或缺少 AAC-LC MediaRecorder 的受限预览浏览器中导出。继续使用已验证的同一页面,保持标签页处于前台:

  1. 再次确认 document.documentElement.dataset.sevenToneReady === "true"。
  2. 点击 #exportBtn,确认按钮状态进入“取消导出”或页面显示正在录制。
  3. 不切换标签页;等待开伞、完整音频、落字和抖雨收束全部结束。
  4. 等待浏览器下载完成。不要在录制未结束时复制临时文件。
  5. 验证文件扩展名为 .mp4、大小大于 0,并优先用 ffprobe 或等效只读工具确认同时存在视频流和音频流。
  6. 将最终文件放入当前任务目录的 output/,使用清晰文件名,例如 七音文字雨_<preview_id>_高清有声.mp4。
  7. 把 MP4 作为文件附件或可点击本地文件链接发送给用户,并用中文说明分辨率、帧率和音频名称。

原页面目标规格为:1440×1920、60 FPS、H.264 视频、AAC-LC 音频、32 Mbps 目标视频码率和 256 kbps 目标音频码率。实际编码器能力以浏览器返回结果为准。

7. 错误恢复

  • 运行环境不兼容:说明缺少 Python 3.10+、可写目录、持续本地进程、同机浏览器控制或附件读取中的哪一项;停止流程,不生成虚假链接或文件。
  • 音频分析失败:优先建议 MP3、WAV 或 M4A;确认文件可播放,必要时让用户缩短音频后重传。
  • 预览端口占用:使用端口 0 重启服务,并返回新 URL。
  • 页面关闭或服务停止:重启同一任务目录的本地服务;无需重新嵌入音频。
  • MP4/AAC 不受支持:停止导出,建议最新版 Chrome 或 Edge;不要生成无声 MP4,也不要改成 WebM。
  • 导出中断:说明没有得到有效成品,保留当前预览,等待用户再次确认重试。
  • 文件已生成但缺少音轨:判定失败,不交付;保留诊断信息并建议升级浏览器后重试。

资源

  • assets/default-config.json:可直接运行的默认参数,也是首次配置模板的机器可读版本。
  • assets/index.template.html:原始七音文字雨独立动画模板,只读使用。
  • scripts/build_preview.py:校验配置并构建自包含预览。
  • scripts/doctor.py:检查安装完整性、Python、默认配置、动画模板、可写目录和本地回环端口。
  • scripts/serve_preview.py:仅在 127.0.0.1 提供本地预览。
  • references/configuration.md:配置字段、默认值和校验规则。
  • references/conversation.md:首次引导、预览确认和交付话术。

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供本地预览+确认+导出的完整闭环,显著提升竖屏音乐动画制作效率
  • 支持自定义音频与内置示例,适用短视频创作、音乐可视化等高频场景
Trigger Precision95/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 为空,实际内容位于 skill_body 内部

    Recommendation: 将 description 移至顶层 frontmatter 字段,确保平台能正确解析触发信息

Highlights

  • 触发描述完整覆盖文字参数、音频输入、预览机制、输出规格等关键要素
  • 明确区分本地预览与最终导出,避免用户误解
Structure and Standards90/100

Areas to improve

  • 缺少When to Use显式章节 Reported severity: Minor

    文档未设置显式的“When to Use”使用场景说明章节

    Recommendation: 在引导部分增加“适用场景”小节,列举典型用例如短视频制作、音乐可视化等

  • 文档接近长度上限 Reported severity: Minor

    SKILL.md 约 480 行,接近 500 行限制

    Recommendation: 可考虑将部分技术细节移至 references 目录的独立文档,保持主文件简洁

Highlights

  • 流程状态机清晰(首次引导→等待配置→构建预览→等待确认→导出)
  • 错误恢复机制完善,覆盖环境、音频、端口、导出等关键故障点
Execution Reliability88/100

Highlights

  • 强制环境预检(doctor.py)确保依赖完整
  • 预览服务严格绑定 127.0.0.1,不泄露至公网
  • 导出前多重验证(DOM 状态、音频时长、按钮可用性)保障成品质量
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 127.0.0.1

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

risk · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.