Skip to content

jianshuo/claude-skills / wjs-converting-text-to-video

wjs-converting-text-to-video

Verified

Use 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".

FileKindSize
SKILL.mdskill md29.8 KB
scripts/bootstrap-project.shexecutablescript2.5 KB
scripts/daily-upload-batch.shexecutablescript2.5 KB
scripts/generate-bg.shexecutablescript2.1 KB
scripts/publish-to-youtube.pyexecutablescript8.4 KB
scripts/retrofit-bg-image.pyexecutablescript3.9 KB
scripts/strip-dark-scene-bgs.pyexecutablescript3.4 KB
scripts/synth-sfx.shexecutablescript1.4 KB
scripts/tts.pyexecutablescript5.7 KB

scripts/generate-bg.sh

View on GitHub
#!/usr/bin/env bash
# Generate an abstract watercolor background image for a video via GPT Image 2.
#
# Usage:
#   generate-bg.sh <article-folder> [theme] [size]
#
# theme options (picks color palette):
#   personal | tech | reflection | warning | growth | abstract
#
# If theme omitted, defaults to "personal".
# size defaults to 1088x1920 (portrait); pass 1920x1088 for landscape videos.
set -euo pipefail

ART="${1:-}"
THEME="${2:-personal}"
SIZE="${3:-1088x1920}"

if [[ -z "$ART" || ! -d "$ART" ]]; then
  echo "usage: generate-bg.sh <article-folder> [personal|tech|reflection|warning|growth|abstract]" >&2
  exit 1
fi

ART="$(cd "$ART" && pwd)"
VIDEO="$ART/video"
mkdir -p "$VIDEO"
OUT="$VIDEO/bg.png"

case "$THEME" in
  personal)   COLORS="bright warm yellow, soft coral pink, terracotta, sage green, cream off-white";;
  tech)       COLORS="cool teal, electric blue, deep purple, mint green, soft white";;
  reflection) COLORS="sage green, dusty blue, lavender, pearl gray, cream";;
  warning)    COLORS="burnt orange, deep red, mustard yellow, charcoal, terracotta";;
  growth)     COLORS="fresh green, gold, soft yellow, sky blue, mint";;
  abstract)   COLORS="lavender, dusty rose, sage green, soft amber, pearl";;
  *)          echo "unknown theme: $THEME" >&2; exit 1;;
esac

PROMPT="Abstract watercolor painting, large bold brushstrokes, big color blocks of ${COLORS}. Thick paint texture, painterly canvas feel, organic flowing shapes, no figures, no text, no faces, no objects. Loose impressionist composition, vibrant joyful palette. Pure abstract gestural marks, no representational elements."

echo "[gen-bg] theme=$THEME → $OUT"

node /Users/jianshuo/.claude/skills/gpt-image-2-skill/scripts/gpt_image_2_skill.cjs \
  --json --provider codex images generate \
  --prompt "$PROMPT" \
  --out "$OUT" \
  --format png --size "$SIZE" --quality high \
  > /tmp/gen-bg-$$.log 2>&1

if [[ -f "$OUT" ]] && [[ $(stat -f%z "$OUT" 2>/dev/null || stat -c%s "$OUT") -gt 100000 ]]; then
  echo "[gen-bg] ✓ $(ls -lh "$OUT" | awk '{print $5}')"
  rm -f /tmp/gen-bg-$$.log
else
  echo "[gen-bg] ✗ generation failed, see /tmp/gen-bg-$$.log"
  tail -20 /tmp/gen-bg-$$.log
  exit 1
fi
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall