wx-video-account-notes
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese微信视频号下载与笔记整理
WeChat Channels Video Download and Note Organization
处理一个视频号分享链接,生成可供 agent 继续整理的结构化笔记材料。
Process a WeChat Channels share link to generate structured note materials for further organization by agents.
触发条件
Trigger Conditions
仅在用户提供 视频号分享链接,并要求继续处理时使用。
https://weixin.qq.com/sph/...This tool is only used when the user provides a WeChat Channels share link in the format and requests further processing.
https://weixin.qq.com/sph/...输入
Inputs
- 必需:一个视频号分享链接
- 可选:输出目录
- 可选:期望标题或文件名
- Required: A WeChat Channels share link
- Optional: Output directory
- Optional: Desired title or filename
固定流程
Fixed Workflow
- Windows 运行 ;macOS/Linux 运行
pwsh -File "scripts/bootstrap.ps1"。sh scripts/bootstrap.sh - Windows 运行 ;macOS/Linux 运行
pwsh -File "scripts/invoke_pipeline.ps1" -ShareUrl "https://weixin.qq.com/sph/..."。sh scripts/invoke_pipeline.sh --share-url "https://weixin.qq.com/sph/..." - pipeline 负责下载视频或图文动态图片、抽帧、OCR、ASR,生成 。
note_materials.json - 当前 agent / model 基于 写最终
note_materials.json。<slug>.md - 如果用户明确说不要笔记,跳过最终 。
<slug>.md
- On Windows, run ; on macOS/Linux, run
pwsh -File "scripts/bootstrap.ps1".sh scripts/bootstrap.sh - On Windows, run ; on macOS/Linux, run
pwsh -File "scripts/invoke_pipeline.ps1" -ShareUrl "https://weixin.qq.com/sph/...".sh scripts/invoke_pipeline.sh --share-url "https://weixin.qq.com/sph/..." - The pipeline is responsible for downloading videos or images from graphic posts, frame extraction, OCR, ASR, and generating .
note_materials.json - The current agent/model writes the final based on
<slug>.md.note_materials.json - Skip generating the final if the user explicitly states they don't want the note.
<slug>.md
输出约定
Output Convention
text
<output-dir>/
<slug>.mp4 # 仅视频动态
note_materials.json
raw.json
ocr.txt
asr.txt
ocr_frames/
frames/
audio/默认情况下,当前 agent / model 还应写出同目录的 。如果用户明确说不要笔记,跳过该文件。
<slug>.mdtext
<output-dir>/
<slug>.mp4 # Video posts only
note_materials.json
raw.json
ocr.txt
asr.txt
ocr_frames/
frames/
audio/By default, the current agent/model should also write in the same directory. Skip this file if the user explicitly says they don't want the note.
<slug>.md成稿规则
Drafting Rules
- 以 为主。
note_materials.json - 必要时对照 、
raw.json、ocr.txt。asr.txt - 参考 。
resources/model-note-template.md - 不要编造提取结果中不存在的信息。
- 如果 包含
note_materials.json字段,且当前模型有识图能力,必须读取visual_frames对应图片辅助理解视频内容。visual_frames - 对图文动态,是原始图片素材;如果当前模型有识图能力,必须读取这些图片补充 OCR 无法表达的版式、界面、图表或视觉上下文。
visual_frames
- Prioritize using .
note_materials.json - Cross-reference with ,
raw.json,ocr.txtwhen necessary.asr.txt - Refer to .
resources/model-note-template.md - Do not fabricate information that does not exist in the extracted results.
- If contains the
note_materials.jsonfield and the current model has image recognition capabilities, you must read the corresponding images invisual_framesto assist in understanding the video content.visual_frames - For graphic posts, are the original image materials; if the current model has image recognition capabilities, you must read these images to supplement layout, interface, charts, or visual context that cannot be expressed by OCR.
visual_frames
失败处理
Failure Handling
- 如果自举失败,停止并明确说明失败的资产或命令。
- 如果 OCR 或 ASR 失败,在材料和最终 Markdown 中明确标记失败。
- 不要把失败结果伪装成成功。
- If bootstrap fails, stop and clearly state the failed asset or command.
- If OCR or ASR fails, clearly mark the failure in the materials and final Markdown.
- Do not disguise failure results as success.
实施要求
Implementation Requirements
- 优先使用 skill 目录下当前平台的 环境,不依赖系统 PATH。
.runtime/<os>-<arch>/ - 低层下载、抽帧、抽音频、OCR、ASR 由脚本和 Python 完成。
- 视频动态中,存放 ffmpeg 直接裁出的字幕区域小图;
ocr_frames/只保留少量完整参考帧,供frames/使用。visual_frames - 图文动态中,存放下载到的原始图片,供 OCR 和
frames/使用;该类动态跳过 ASR。visual_frames - 当前 agent / model 只负责基于材料整理最终 。
<slug>.md
- Prioritize using the environment for the current platform in the skill directory, without relying on the system PATH.
.runtime/<os>-<arch>/ - Low-level tasks such as downloading, frame extraction, audio extraction, OCR, and ASR are completed by scripts and Python.
- For video posts, stores small cropped images of subtitle areas directly extracted by ffmpeg;
ocr_frames/only retains a small number of complete reference frames for use inframes/.visual_frames - For graphic posts, stores the downloaded original images for OCR and
frames/; skip ASR for this type of post.visual_frames - The current agent/model is only responsible for organizing the final based on the materials.
<slug>.md