procedural-fish-render

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Procedural Fish Render

Procedural Fish 渲染

Workflow

工作流程

  1. Resolve
    skill_dir
    and run the helper script:
    bash
    skill_dir=""
    for base in "${AGENTS_HOME:-$HOME/.agents}" "${CLAUDE_HOME:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do
      if [ -d "$base/skills/procedural-fish-render" ]; then
        skill_dir="$base/skills/procedural-fish-render"
        break
      fi
    done
    [ -n "$skill_dir" ] || { echo "procedural-fish-render skill not found under ~/.agents, ~/.claude, or ~/.codex"; exit 1; }
    
    /usr/local/bin/python3 "$skill_dir/scripts/render_procedural_fish.py"
  2. Optional parameters:
    bash
    /usr/local/bin/python3 "$skill_dir/scripts/render_procedural_fish.py" \
      --workspace "$(pwd)" \
      --output "out/procedural-fish-custom.mov" \
      --props-file "shared/project/render-presets/default.json"
  3. Return the final absolute video path printed by the script.
  1. 解析
    skill_dir
    并运行辅助脚本:
    bash
    skill_dir=""
    for base in "${AGENTS_HOME:-$HOME/.agents}" "${CLAUDE_HOME:-$HOME/.claude}" "${CODEX_HOME:-$HOME/.codex}"; do
      if [ -d "$base/skills/procedural-fish-render" ]; then
        skill_dir="$base/skills/procedural-fish-render"
        break
      fi
    done
    [ -n "$skill_dir" ] || { echo "procedural-fish-render skill not found under ~/.agents, ~/.claude, or ~/.codex"; exit 1; }
    
    /usr/local/bin/python3 "$skill_dir/scripts/render_procedural_fish.py"
  2. 可选参数:
    bash
    /usr/local/bin/python3 "$skill_dir/scripts/render_procedural_fish.py" \
      --workspace "$(pwd)" \
      --output "out/procedural-fish-custom.mov" \
      --props-file "shared/project/render-presets/default.json"
  3. 返回脚本打印的最终视频绝对路径。

Behavior

行为规则

  • Repository source is fixed to
    https://github.com/vibe-motion/procedural-fish
    by default.
  • If local repo exists, the script performs
    git fetch
    +
    git checkout main
    +
    git pull --ff-only
    .
  • If local repo does not exist, the script clones it.
  • Rendering always uses project command
    pnpm run remotion:render
    .
  • Default output is
    out/procedural-fish-transparent.mov
    .
  • Default props file is
    shared/project/render-presets/default.json
    .
  • 默认仓库源固定为
    https://github.com/vibe-motion/procedural-fish
  • 如果本地已存在该仓库,脚本会执行
    git fetch
    +
    git checkout main
    +
    git pull --ff-only
    操作。
  • 如果本地不存在该仓库,脚本会克隆它。
  • 渲染始终使用项目命令
    pnpm run remotion:render
  • 默认输出路径为
    out/procedural-fish-transparent.mov
  • 默认配置文件为
    shared/project/render-presets/default.json