jianshuo/claude-skills / wjs-converting-text-to-video
wjs-converting-text-to-video
VerifiedUse when the user wants a 王建硕-style WeChat article (article.md) turned into a narrated short MP4 video — TTS voiceover via 火山引擎 Volcano TTS, HyperFrames CSS/GSAP animation per scene, subtle SFX, abstract watercolor background, full pipeline rendering to 1080×1920 portrait MP4 (30-90s). Triggers — "把这篇文章做成视频", "做一个解说视频", "讲解视频", "/wjs-converting-text-to-video".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 29.8 KB |
| scripts/bootstrap-project.shexecutable | script | 2.5 KB |
| scripts/daily-upload-batch.shexecutable | script | 2.5 KB |
| scripts/generate-bg.shexecutable | script | 2.1 KB |
| scripts/publish-to-youtube.pyexecutable | script | 8.4 KB |
| scripts/retrofit-bg-image.pyexecutable | script | 3.9 KB |
| scripts/strip-dark-scene-bgs.pyexecutable | script | 3.4 KB |
| scripts/synth-sfx.shexecutable | script | 1.4 KB |
| scripts/tts.pyexecutable | script | 5.7 KB |
scripts/bootstrap-project.sh
View on GitHub#!/usr/bin/env bash
# Bootstrap a hyperframes video sub-project under <article-folder>/video/.
#
# Copies the TTS / SFX helper scripts so the project is self-contained,
# creates a minimal hyperframes.json + package.json so `npx hyperframes`
# works from that directory, and generates SFX upfront (cheap).
#
# Usage:
# bootstrap-project.sh <article-folder>
set -euo pipefail
ART="${1:-}"
if [[ -z "$ART" || ! -d "$ART" ]]; then
echo "usage: bootstrap-project.sh <article-folder>" >&2
exit 1
fi
ART="$(cd "$ART" && pwd)"
VIDEO="$ART/video"
mkdir -p "$VIDEO"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Copy helper scripts so the per-article project is self-contained
cp "$SCRIPT_DIR/tts.py" "$VIDEO/tts_narration.py"
chmod +x "$VIDEO/tts_narration.py"
# Hyperframes project metadata (so `npx hyperframes` finds the project)
cat > "$VIDEO/hyperframes.json" <<'EOF'
{
"$schema": "https://hyperframes.heygen.com/schema/hyperframes.json",
"registry": "https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry",
"paths": {
"blocks": "compositions",
"components": "compositions/components",
"assets": "assets"
}
}
EOF
cat > "$VIDEO/meta.json" <<'EOF'
{ "name": "wjs-video", "width": 1080, "height": 1920, "fps": 30 }
EOF
cat > "$VIDEO/package.json" <<'EOF'
{ "name": "wjs-video", "private": true, "type": "module" }
EOF
# Generate SFX upfront (cheap, ~1s)
"$SCRIPT_DIR/synth-sfx.sh" "$VIDEO"
# Copy illustration (or cover) into video/ as bg.png for the bg-image layer.
# Must be inside video/ — hyperframes render does NOT resolve cross-directory paths
# like ../illustration.png (they render as black).
if [[ -f "$ART/illustration.png" ]]; then
cp "$ART/illustration.png" "$VIDEO/bg.png"
echo "[bootstrap] copied illustration.png → video/bg.png"
elif [[ -f "$ART/cover.png" ]]; then
cp "$ART/cover.png" "$VIDEO/bg.png"
echo "[bootstrap] no illustration.png, using cover.png as bg"
else
echo "[bootstrap] ⚠️ no illustration.png or cover.png — bg will fall back to #0e0b08"
fi
echo ""
echo "[bootstrap] $VIDEO ready"
echo " next steps:"
echo " 1. write narration_chunks.json (12 scene narration JSON)"
echo " 2. cd $VIDEO && set -a && source ~/code/.env && set +a && uvx --with requests python tts_narration.py"
echo " 3. write index.html (read timing.json for scene timings)"
echo " 4. npx hyperframes lint && npx hyperframes snapshot --at <ts> ."
echo " 5. npx hyperframes render --quality standard --output <slug>.mp4"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |