Video Copywriter Distill
Core Purpose
Turn short-video samples into a reusable spoken-copywriting system. Preserve the creator's structure, rhythm, hook logic, audience pressure, and conversion intent while avoiding close copying of protected wording.
Use this skill as an orchestration layer:
- Treat share links and direct media URLs as extractable inputs when runtime dependencies are available.
- Treat transcripts, subtitles, and pasted spoken copy as first-class inputs.
- Define "copy extraction" as full spoken-audio transcription, not title/caption/hashtag extraction.
- Do not ask the user to paste transcripts before attempting bundled link extraction.
- Do not direct the user to open a mobile app, expand captions, copy subtitles, or use a separate skill before attempting bundled audio transcription.
- Analyze each sample separately before synthesizing cross-sample rules.
- Generate new scripts from reusable patterns, not from distinctive lines.
Link Transcription Contract
This skill is self-contained for link-to-copy extraction. It vendors the parser under scripts/vendor/parse_video_py and transcribes audio with local Whisper through scripts/extract_copy.py.
When a user provides a video link or direct media URL and asks for copy extraction, transcript extraction, analysis, distillation, imitation, or generation:
- Run the bundled extraction command first.
- Use the current skill directory, not any external skill directory.
- Treat only
corrected_transcriptortranscriptas spoken copy. - Never satisfy the request with
title,caption,description, hashtags, or platform labels. - Never ask the user to provide subtitles/transcripts until the bundled extraction command has actually failed.
- Before presenting any transcript, correct obvious ASR errors using context (product and tool names, numbers, common phrases). Keep the speaker's wording and sentence structure; do not rewrite into a polished article. Mark any uncertain names, numbers, or claims as
needs_verification.
Use these commands from the skill directory:
python scripts/extract_copy.py --url "<share text or URL>" --mode both --model tiny --json
For WorkBuddy/CodeBuddy runtimes that support skill directory placeholders, use:
python "${CODEBUDDY_SKILL_DIR}/scripts/extract_copy.py" --url "<share text or URL>" --mode both --model tiny --json
For metadata troubleshooting only:
python "${CODEBUDDY_SKILL_DIR}/scripts/extract_copy.py" --url "<share text or URL>" --mode parse
Do not use metadata troubleshooting as a substitute for spoken-audio transcription.
ASR Correction
Whisper tiny output is raw ASR and often contains homophone or entity errors. Before delivering a transcript, correct obvious errors using the video's context: titles, captions, platform names, tool names, numbers, and repeated phrases are reliable clues.
- Fix obvious homophones and entity errors only when context makes the correction clear (for example, a tools-review video discussing "Codex" should not keep
GOTX,COTX, orCardex). - Keep the speaker's spoken wording and structure. Do not polish, reorder, or expand the content.
- If a word is unclear and context is insufficient, keep the raw text and mark it
needs_verificationinstead of guessing. - Present the corrected transcript as the spoken copy; retain the raw ASR as a reference when useful.
Speed and Model Policy
- Use Whisper
tinyby default for link extraction. This matches the bundled parser/transcriber workflow and keeps short-video extraction responsive. - Do not automatically retry with a larger Whisper model just because the first transcript has ASR noise.
- Do not run
--mode bothmore than once for the same URL in one task unless the user explicitly asks for a higher-quality word-for-word transcript. - If the
tinytranscript is noisy but usable, correct obvious ASR errors using context before presenting or analyzing it, then continue with analysis and mark unclear names, numbers, and phrases asneeds_verification. Do not retry with a larger model just because of ASR noise. - If the user explicitly asks for higher quality, warn that larger Whisper models are much slower, then run one deliberate retry with the requested model.
Workflow
Normalize inputs.
- Accept short-video share links, direct media URLs, pasted transcripts, subtitles, Markdown notes, JSON records, text files, CSV-like tables, or link-plus-transcript bundles.
- For link-only inputs, run
scripts/extract_copy.pyfirst. Do not ask for pasted copy before this attempt. Also do not ask for subtitles, App-expanded captions, or another skill before this attempt. - If required dependencies are missing, tell the user to run
pip install -r requirements.txtand to installffmpegwith the platform command (Windows:winget install Gyan.FFmpeg; macOS:brew install ffmpeg; Linux:sudo apt update && sudo apt install -y ffmpeg), restart the terminal if needed, verify withffmpeg -version, then retry extraction. - If extraction fails because the post is image-only, private, expired, region-limited, login-gated, or blocked by platform changes, report that specific failure and keep the URL as source metadata.
- For raw text, label the source as
manual_transcript.
Extract copy from links when needed.
- If the user asks to extract copy, transcript, spoken script, oral script, or full video copy, run full extraction with
python scripts/extract_copy.py --url "<share text or URL>" --mode both --model tiny --json. - In WorkBuddy/CodeBuddy, prefer
python "${CODEBUDDY_SKILL_DIR}/scripts/extract_copy.py" --url "<share text or URL>" --mode both --model tiny --jsonso the command works no matter where the conversation is opened. - Do not automatically switch to
base,small,medium, orlargeafter a successfultinytranscription. Larger models may be used only after the user explicitly asks for higher-quality transcription. - Use metadata-only parsing with
python scripts/extract_copy.py --url "<share text or URL>" --mode parseonly when the user explicitly asks for metadata, video URL, title, cover, author, or troubleshooting. - Use
--mode transcribewhen the input is already a direct.mp4,.m3u8, or platform play URL. - Do not treat
title,caption,description, hashtags, series names, or platform labels as the extracted copy. - A successful extract output must include a non-empty
corrected_transcriptortranscriptfield produced from the audio. - Treat extracted text as raw ASR. Correct obvious punctuation, segmentation, and entity errors only when context makes the correction clear.
- If the user asks to extract copy, transcript, spoken script, oral script, or full video copy, run full extraction with
No Manual Transcript First
When the user gives one or more video links and asks to extract, analyze, distill, imitate, or generate from them:
Attempt bundled extraction before requesting any pasted transcript.
For each link, produce one of these statuses:
transcribed: audio was converted intocorrected_transcript.metadata_only: only title/author/video URL was resolved; this is not usable as spoken copy.failed: extraction or transcription failed; include the actionable reason.
Continue analysis only for samples with non-empty
corrected_transcriptortranscript.Ask the user for pasted copy only after extraction has failed or dependencies cannot be installed in the current runtime.
If the runtime lacks Bash/Python execution, state that the installed skill runtime cannot execute its bundled transcription script. Do not tell the user that this skill requires another skill.
Build a sample corpus.
- If the user provides many samples, create a compact table with source, topic, audience, hook type, core promise, structure, and conversion goal.
- If a workspace corpus is useful, use
scripts/prepare_corpus.pyto merge.txt,.md, or.jsonsample files into one reviewable Markdown corpus.
Analyze each sample.
- Use
references/analysis-schema.mdwhen producing per-sample extraction. - Correct obvious ASR punctuation and entity errors using context before analysis, but do not rewrite the speaker's wording into polished prose.
- Mark uncertain names, numbers, claims, and case details as
needs_verification.
- Use
Distill cross-sample rules.
- Compare hooks, narrative order, sentence length, rhetorical devices, emotional curve, proof style, and closing pattern.
- Separate reusable style from factual claims.
- Extract formulas that can generate new scripts in the same genre without copying unique phrasing.
Generate similar copy.
- Ask for the target topic, audience, platform, desired duration, and conversion goal if missing and materially needed.
- If the user wants immediate output, assume a 45-60 second Chinese short-video oral script.
- Use
references/output-templates.mdwhen the user wants a structured deliverable, reusable prompt, or repeatable generation package. - Follow the distilled formulas and include a brief rule trace after the draft unless the user asks for final copy only.
Quality check.
- Use
references/generation-rubric.md. - Check: hook strength, spoken rhythm, structural similarity, originality, factual uncertainty, platform fit, and conversion clarity.
- Use
Output Modes
extract: full spoken-audio transcript plus source metadata. Never satisfy this mode with only title, caption, hashtags, or table metadata.inspect: metadata only, used for troubleshooting source URL, title, author, cover, and resolved video URL.analyze: per-sample structured analysis.distill: cross-sample style DNA, formulas, phrase banks, anti-patterns.generate: new oral script based on distilled rules.package: a reusable prompt/template or Skill-ready ruleset for future writing.
Choose the smallest useful output for the user's request.
Per-Sample Minimum Fields
source:
platform:
title:
author:
corrected_transcript:
topic_tags:
target_audience:
opening_hook:
core_claim:
script_structure:
emotion_curve:
proof_style:
conversion_goal:
notable_phrases:
reusable_rules:
needs_verification:
If corrected_transcript is empty, do not analyze the sample as spoken copy. Mark the transcript as missing and either retry transcription or ask for the spoken text.
Generation Rules
- Write for spoken delivery, not essay reading.
- Keep sentence groups short and easy to say aloud.
- Preserve the learned rhythm and structure, but avoid copying rare metaphors, signature catchphrases, or highly distinctive lines.
- Reuse formulas, not surface wording.
- Do not invent statistics, cases, policies, prices, or named sources. Use placeholders or mark
needs_verificationwhen facts are missing. - For Chinese social content, prefer clear stance, concrete pain point, quick contradiction, stepped explanation, and a memorable close.
Resources
- Read
references/analysis-schema.mdwhen extracting sample-level features or building a sample table. - Read
references/input-formats.mdwhen normalizing links, pasted samples, subtitle text, JSON records, or link-plus-transcript bundles. - Read
references/generation-rubric.mdbefore finalizing generated scripts or reusable writing templates. - Read
references/output-templates.mdwhen packaging analysis, distilled rules, generated scripts, or reusable prompts. - Read
references/platform-workflows.mdwhen adapting scripts for Douyin, Xiaohongshu, Bilibili, Kuaishou, or generic short-video channels. - Use
scripts/prepare_corpus.pywhen the user provides multiple local transcript files and wants them merged into one analysis corpus. - Use
scripts/extract_copy.pybefore asking for manual transcripts when the user provides supported share links or direct media URLs and wants spoken copy extracted.