Agent skills that make real-time game VFX: procedural Effekseer effects, video-model flipbooks, or both, played in Godot and Unity (Claude Code, Codex and other Agent Skills hosts).
Python
Add native Windows support (build and render) alongside macOS
Kana13374af40155
diff --git a/.gitattributes b/.gitattributesnew file mode 100644index 0000000..5742884--- /dev/null+++ b/.gitattributes@@ -0,0 +1,7 @@+# Check out every text file with LF on all systems, so a Windows clone (core.autocrlf=true) still runs the sh scripts+# and hashes the skill's files exactly as macOS and Linux do. Windows batch files need CRLF.+* text=auto eol=lf+*.cmd text eol=crlf+*.bat text eol=crlf+*.png binary+*.glb binarydiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex dda83f5..fc7a8a1 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -21,3 +21,31 @@ jobs:env:EFFEKSEER_VFX_HOME: ${{ runner.temp }}/effekseer-vfxrun: '"$EFFEKSEER_VFX_HOME/venv/bin/python" -m pytest -q tests'+ windows:+ # Full Windows toolchain (EffekseerCore through .NET 9), so the Core build tests run too; no Godot, so render skips.+ runs-on: windows-latest+ env:+ EFFEKSEER_VFX_HOME: ${{ runner.temp }}\effekseer-vfx+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-python@v5+ with:+ python-version: "3.12"+ - name: Cache the toolchain downloads+ uses: actions/cache@v4+ with:+ path: ${{ runner.temp }}\effekseer-vfx\downloads+ key: effekseer-vfx-downloads-${{ hashFiles('skills/effekseer-vfx/scripts/setup.ps1') }}+ - name: Install the full toolchain+ shell: pwsh+ run: |+ powershell -NoProfile -ExecutionPolicy Bypass -File skills\effekseer-vfx\scripts\setup.ps1+ if ($LASTEXITCODE) { exit $LASTEXITCODE }+ $python = "$env:EFFEKSEER_VFX_HOME\venv\Scripts\python.exe"+ # setup made the venv with uv when uv is installed, and uv venvs have no pip+ if (Get-Command uv -ErrorAction SilentlyContinue) { uv pip install --python $python pytest==9.1.1 }+ else { & $python -m pip install pytest==9.1.1 }+ if ($LASTEXITCODE) { exit $LASTEXITCODE }+ - name: Tests+ shell: pwsh+ run: '& "$env:EFFEKSEER_VFX_HOME\venv\Scripts\python.exe" -X utf8 -m pytest -q tests'diff --git a/README.ja.md b/README.ja.mdindex 6957ffc..3706811 100644--- a/README.ja.md+++ b/README.ja.md@@ -17,11 +17,14 @@| モード | できること | 必要なもの ||---|---|---|-| authoring | ブリーフとレシピの作成、lint、テクスチャの処理と計測 | macOS または Linux 上の Python 3.11+ または [uv](https://docs.astral.sh/uv/)(macOS 標準の Python 3.9 は古すぎます。Windows では WSL を使用) |-| build | 公式 EffekseerCore による `.efkefc` / `.efk` のコンパイル | **Apple silicon の macOS**、初回セットアップ時のネットワーク接続(`~/.cache/effekseer-vfx` に約 250 MB) |+| authoring | ブリーフとレシピの作成、lint、テクスチャの処理と計測 | macOS、Linux または Windows 上の Python 3.11+ または [uv](https://docs.astral.sh/uv/)(macOS 標準の Python 3.9 は古すぎます) |+| build | 公式 EffekseerCore による `.efkefc` / `.efk` のコンパイル | **Apple silicon の macOS** または **Windows x64**、初回セットアップ時のネットワーク接続(`~/.cache/effekseer-vfx` に約 250 MB) || render | Godot のフィルムストリップレビュー、Lab、プレビュー、パッケージング | 上記 + `PATH` 上または `GODOT` で指定した [Godot 4](https://godotengine.org)(Forward+)。リファレンスクリップと録画には `ffmpeg` |-build と render は macOS ARM64(Effekseer Core 1.80.7、EffekseerForGodot4 1.80.5.1、Godot 4.7、.NET 9)でのみ検証済みです。Linux では authoring モードで動作し、build の経路は検証されていません。+build と render は macOS ARM64(Effekseer Core 1.80.7、EffekseerForGodot4 1.80.5.1、Godot 4.7、.NET 9)と Windows 11 x64(同じバージョン、Godot 4.7.2)で検証済みです。Windows ARM64 ではセットアップが対応する .NET ランタイムを入れますが、検証はされていません。Linux では authoring モードで動作し、build の経路は検証されていません。++Windows では、以下の `sh <skill>/scripts/...` コマンドはすべて Git Bash(Claude Code が使うもの)でも動作します。cmd や PowerShell からは、`vfx` には `<skill>\scripts\vfx.cmd` を、`setup.sh` には+`powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1` を使います。## インストール@@ -62,9 +65,9 @@ npx skills add kanaworksai-hue/effekseer-vfx-skillスキルは自己完結しており、実行時は読み取り専用です。2. **読み込む。** スキル一覧にまだ表示されない場合は、ユーザーに新しいセッションを始めてもらいます。3. **マシンを確認する。** ユーザーのゲームプロジェクトで `sh <skill>/scripts/vfx doctor` を実行し(`<skill>` はインストールした- `effekseer-vfx` フォルダ)、その `next` に従います。-4. **ダウンロード前に確認する。** `sh <skill>/scripts/setup.sh` はツールチェーンを `~/.cache/effekseer-vfx` に入れます(macOS ARM64 で- 約 250 MB。その他の環境では `--authoring-only`)。最初の `vfx init` は公式 Effekseer Godot プラグイン(約 34 MB)もダウンロードします。Python 3.11+ か uv が必要で、`doctor` がどちらもないと報告したらユーザーに+ `effekseer-vfx` フォルダ。Windows で Git Bash 以外なら `<skill>\scripts\vfx.cmd doctor`)、その `next` に従います。+4. **ダウンロード前に確認する。** `sh <skill>/scripts/setup.sh`(Windows では `setup.ps1`。正確なコマンドは `doctor` の `next` にあります)はツールチェーンを+ `~/.cache/effekseer-vfx` に入れます(macOS ARM64 と Windows x64 で約 250 MB。その他の環境では `--authoring-only`)。最初の `vfx init` は公式 Effekseer Godot プラグイン(約 34 MB)もダウンロードします。Python 3.11+ か uv が必要で、`doctor` がどちらもないと報告したらユーザーにどちらかのインストールを頼みます。Godot 4 はユーザーの代わりにインストールしません。ユーザーにインストールしてもらう(または許可を得る)こと、`PATH` にない場合は `GODOT` を設定することを伝えます。5. **Godot はサンドボックスの外で実行する。** `vfx review`、`preview`、`showcase` はユーザーのデスクトップに Godot のウィンドウを開きます。@@ -81,7 +84,7 @@ npx skills add kanaworksai-hue/effekseer-vfx-skill```shsh <skill>/scripts/vfx doctor # what this machine can do, and what to install-sh <skill>/scripts/setup.sh # macOS ARM64; use --authoring-only elsewhere (asks you first)+sh <skill>/scripts/setup.sh # macOS ARM64 / Windows x64; use --authoring-only elsewhere (asks you first)sh <skill>/scripts/vfx init # creates vfx/ with the Godot Lab, materials and math texturessh <skill>/scripts/vfx examples add firesh <skill>/scripts/vfx build --ids VFX_Projectile_Fire VFX_Fire_Explosion@@ -89,7 +92,7 @@ sh <skill>/scripts/vfx review --ids VFX_Projectile_Fire VFX_Fire_Explosion --notsh <skill>/scripts/vfx showcase # play the library in the Lab```-各コマンドの役割:`doctor` はこのマシンでできることと、インストールが必要なものを報告します。`setup.sh` は macOS ARM64 用で、それ以外では `--authoring-only` を使います(実行前に確認を求めます)。`init` は Godot Lab、マテリアル、数式テクスチャを含む `vfx/` を作成します。`showcase` は Lab でライブラリを再生します。+各コマンドの役割:`doctor` はこのマシンでできることと、インストールが必要なものを報告します。`setup.sh` は macOS ARM64 / Windows x64 用で、それ以外では `--authoring-only` を使います(実行前に確認を求めます)。`init` は Godot Lab、マテリアル、数式テクスチャを含む `vfx/` を作成します。`showcase` は Lab でライブラリを再生します。次にエフェクトを頼みます。*「ターゲット指定の魔法に使う落雷を作って。短く鋭く、リターンストロークあり」*。スキルに従ってエージェントは、ブリーフを書き、お使いの画像生成ツールに手描き風テクスチャを依頼し(またはあなたに用意を頼み)、レシピを書いてビルドし、数ラウンドにわたってストリップをレビューし、結果を独立レビュアーに渡してから、`effect-verify` の合格を報告します。独立レビューを提出して `vfx overview` を再実行するまでは、エフェクトが正しく描画されていても `effect-verify` は `verified: false` になります。その段階でエージェントは「検証済み」ではなく「ビルドと描画ができた」と報告すべきです。ツールチェーンの既定の場所は `~/.cache/effekseer-vfx` で、`EFFEKSEER_VFX_HOME` で変更できます([コマンドリファレンス](skills/effekseer-vfx/references/cli.md) を参照)。@@ -113,8 +116,9 @@ shot.arrived.connect(func(at): Vfx.play("VFX_Fire_Explosion", at))## リポジトリ構成```-skills/effekseer-vfx/ SKILL.md, references/ (craft, engine conventions, review...), scripts/ (vfx CLI, setup.sh,- vfxkit, vendored effekseer_ai), assets/ (Godot Lab, materials, rubric, brief schema, examples)+skills/effekseer-vfx/ SKILL.md, references/ (craft, engine conventions, review...), scripts/ (vfx CLI and vfx.cmd,+ setup.sh and setup.ps1, vfxkit, vendored effekseer_ai), assets/ (Godot Lab, materials, rubric,+ brief schema, examples)skills/vfx-review/ SKILL.md for the independent reviewerdocs/zh/, docs/ja/ Chinese and Japanese translations of the references.claude-plugin/ Claude Code plugin and marketplace manifests@@ -123,7 +127,7 @@ tests/ pure-Python tests (no Core or Godot needed)| パス | 内容 ||---|---|-| `skills/effekseer-vfx/` | SKILL.md、references/(クラフト、エンジン規約、レビューなど)、scripts/(vfx CLI、setup.sh、vfxkit、同梱の effekseer_ai)、assets/(Godot Lab、マテリアル、評価基準、ブリーフスキーマ、サンプル) |+| `skills/effekseer-vfx/` | SKILL.md、references/(クラフト、エンジン規約、レビューなど)、scripts/(vfx CLI と vfx.cmd、setup.sh と setup.ps1、vfxkit、同梱の effekseer_ai)、assets/(Godot Lab、マテリアル、評価基準、ブリーフスキーマ、サンプル) || `skills/vfx-review/` | 独立レビュアー用の SKILL.md || `docs/zh/`、`docs/ja/` | リファレンスの中国語訳と日本語訳 || `.claude-plugin/` | Claude Code のプラグインとマーケットプレイスのマニフェスト |@@ -132,7 +136,9 @@ tests/ pure-Python tests (no Core or Godot needed)## 制限事項- レビューの指標は実 viewport 上のピクセルヒューリスティクスであり、GPU やオーバードローの計測ではありません。-- レビューのハーネスは macOS 上でウィンドウ表示の Godot を操作します。ヘッドレス Linux での撮影はまだサポートしていません。+- レビューのハーネスは macOS と Windows 上でウィンドウ表示の Godot を操作します。ヘッドレス Linux での撮影はまだサポートしていません。+ Windows では、撮影中 Godot ウィンドウがフォーカスを保持し続けます(macOS ではフォーカスがお使いのアプリに戻ります)。+- Windows では、シンボリックリンクの安全性テストに開発者モード(または管理者権限のシェル)が必要で、無効だとスキップされます。- サンプルのスコアは、スキル同梱のカプセル Lab でのレンダーに対する独立レビューの結果です(13 種のうち 2 種は `iterate` 判定)。頼りにする前に、ビルドとレビューをやり直してください。- `soft` パーティクルは Forward+ の Lab で未検証のため、使用していません。@@ -144,6 +150,14 @@ sh skills/effekseer-vfx/scripts/setup.sh --authoring-only~/.cache/effekseer-vfx/venv/bin/python -m pytest -q tests```+Windows の場合(PowerShell。`--authoring-only` を外すと EffekseerCore のビルドテストも実行されます):++```powershell+powershell -NoProfile -ExecutionPolicy Bypass -File skills\effekseer-vfx\scripts\setup.ps1 --authoring-only+~\.cache\effekseer-vfx\venv\Scripts\python.exe -m pip install pytest # a venv made by uv: uv pip install --python <that python.exe> pytest+~\.cache\effekseer-vfx\venv\Scripts\python.exe -X utf8 -m pytest -q tests+```+新しいエンジン規約を確認したコントリビューションでは、それを計測方法と一緒に`skills/effekseer-vfx/references/engine-conventions.md` に追記してください。diff --git a/README.md b/README.mdindex 3fead6f..0223e6d 100644--- a/README.md+++ b/README.md@@ -20,12 +20,17 @@ Agent skills that let a coding agent (Claude Code, Codex, Cursor, Gemini CLI, Gi| Mode | What you can do | Needs ||---|---|---|-| authoring | write briefs and recipes, lint, process and measure textures | Python 3.11+ or [uv](https://docs.astral.sh/uv/) on macOS or Linux (macOS's built-in Python 3.9 is too old; Windows: use WSL) |-| build | compile `.efkefc` / `.efk` through the official EffekseerCore | **macOS on Apple silicon**, network for the first setup (~250 MB into `~/.cache/effekseer-vfx`) |+| authoring | write briefs and recipes, lint, process and measure textures | Python 3.11+ or [uv](https://docs.astral.sh/uv/) on macOS, Linux or Windows (macOS's built-in Python 3.9 is too old) |+| build | compile `.efkefc` / `.efk` through the official EffekseerCore | **macOS on Apple silicon** or **Windows x64**, network for the first setup (~250 MB into `~/.cache/effekseer-vfx`) || render | Godot filmstrip review, Lab, preview, packaging | the above + [Godot 4](https://godotengine.org) (Forward+) on `PATH` or in `GODOT`; `ffmpeg` for reference clips and recordings |-Build and render are verified only on macOS ARM64 (Effekseer Core 1.80.7, EffekseerForGodot4 1.80.5.1, Godot 4.7,-.NET 9). Linux runs authoring mode; its build path is not verified.+Build and render are verified on macOS ARM64 (Effekseer Core 1.80.7, EffekseerForGodot4 1.80.5.1, Godot 4.7, .NET 9)+and on Windows 11 x64 (the same versions, Godot 4.7.2). Windows ARM64 gets the matching .NET runtime from setup but is+not verified. Linux runs authoring mode; its build path is not verified.++On Windows every `sh <skill>/scripts/...` command below also works from Git Bash (what Claude Code uses); from cmd or+PowerShell use `<skill>\scripts\vfx.cmd` for `vfx` and+`powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1` for `setup.sh`.## Install@@ -68,9 +73,11 @@ carries its own `LICENSE` (and `effekseer-vfx` its `THIRD_PARTY_NOTICES.md`), soDo not copy anything else; the skills are self-contained and read-only at run time.2. **Load them.** If the skills do not appear in your skill list yet, ask the user to start a new session.3. **Check the machine.** From the user's game project run `sh <skill>/scripts/vfx doctor` (`<skill>` is the- installed `effekseer-vfx` folder) and follow its `next` steps.-4. **Ask before downloading.** `sh <skill>/scripts/setup.sh` installs the toolchain into `~/.cache/effekseer-vfx`- (about 250 MB on macOS ARM64; `--authoring-only` elsewhere), and the first `vfx init` downloads the official+ installed `effekseer-vfx` folder; on Windows outside Git Bash, `<skill>\scripts\vfx.cmd doctor`) and follow its+ `next` steps.+4. **Ask before downloading.** `sh <skill>/scripts/setup.sh` (Windows: `setup.ps1`, the exact command is in+ `doctor`'s `next`) installs the toolchain into `~/.cache/effekseer-vfx`+ (about 250 MB on macOS ARM64 and Windows x64; `--authoring-only` elsewhere), and the first `vfx init` downloads the officialEffekseer Godot plugin (about 34 MB). Setup needs Python 3.11+ or uv: if `doctor` reports neither, ask the user toinstall one. Godot 4 is never installed for the user; ask them to install it (or to allowyou to) and set `GODOT` if it is not on `PATH`.@@ -90,7 +97,7 @@ Ask your agent, in your game project: *"Set up the effekseer-vfx skill here and```shsh <skill>/scripts/vfx doctor # what this machine can do, and what to install-sh <skill>/scripts/setup.sh # macOS ARM64; use --authoring-only elsewhere (asks you first)+sh <skill>/scripts/setup.sh # macOS ARM64 / Windows x64; use --authoring-only elsewhere (asks you first)sh <skill>/scripts/vfx init # creates vfx/ with the Godot Lab, materials and math texturessh <skill>/scripts/vfx examples add firesh <skill>/scripts/vfx build --ids VFX_Projectile_Fire VFX_Fire_Explosion@@ -129,8 +136,9 @@ See [`skills/effekseer-vfx/references/godot.md`](skills/effekseer-vfx/references## Repository layout```-skills/effekseer-vfx/ SKILL.md, references/ (craft, engine conventions, review...), scripts/ (vfx CLI, setup.sh,- vfxkit, vendored effekseer_ai), assets/ (Godot Lab, materials, rubric, brief schema, examples)+skills/effekseer-vfx/ SKILL.md, references/ (craft, engine conventions, review...), scripts/ (vfx CLI and vfx.cmd,+ setup.sh and setup.ps1, vfxkit, vendored effekseer_ai), assets/ (Godot Lab, materials, rubric,+ brief schema, examples)skills/vfx-review/ SKILL.md for the independent reviewerdocs/zh/, docs/ja/ Chinese and Japanese translations of the references.claude-plugin/ Claude Code plugin and marketplace manifests@@ -140,7 +148,9 @@ tests/ pure-Python tests (no Core or Godot needed)## Limitations- Review metrics are pixel heuristics on the real viewport, not GPU or overdraw measurements.-- The review harness drives a windowed Godot on macOS; headless Linux capture is not supported yet.+- The review harness drives a windowed Godot on macOS and Windows; headless Linux capture is not supported yet. On+ Windows the Godot window keeps focus while it captures (macOS hands focus back to your app).+- On Windows, the symlink-safety tests need Developer Mode (or an administrator shell) and are skipped without it.- Example scores are an independent review of the skill's own capsule-Lab renders (two of the thirteen were judged`iterate`); rebuild and review before relying on them.- `soft` particles are unverified in the Forward+ Lab and not used.@@ -153,6 +163,14 @@ sh skills/effekseer-vfx/scripts/setup.sh --authoring-only~/.cache/effekseer-vfx/venv/bin/python -m pytest -q tests```+On Windows (PowerShell; drop `--authoring-only` to also run the EffekseerCore build tests):++```powershell+powershell -NoProfile -ExecutionPolicy Bypass -File skills\effekseer-vfx\scripts\setup.ps1 --authoring-only+~\.cache\effekseer-vfx\venv\Scripts\python.exe -m pip install pytest # a venv made by uv: uv pip install --python <that python.exe> pytest+~\.cache\effekseer-vfx\venv\Scripts\python.exe -X utf8 -m pytest -q tests+```+Contributions that confirm a new engine convention should add it to`skills/effekseer-vfx/references/engine-conventions.md` together with how it was measured.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 913b454..192dd47 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -19,12 +19,17 @@| 模式 | 能做什么 | 需要 ||---|---|---|-| authoring | 写简报和配方、lint、处理和测量纹理 | macOS 或 Linux 上的 Python 3.11+ 或 [uv](https://docs.astral.sh/uv/)(macOS 自带的 Python 3.9 太旧;Windows 请用 WSL) |-| build | 通过官方 EffekseerCore 编译 `.efkefc` / `.efk` | **Apple 芯片的 macOS**,首次安装需要联网(约 250 MB,装到 `~/.cache/effekseer-vfx`) |+| authoring | 写简报和配方、lint、处理和测量纹理 | macOS、Linux 或 Windows 上的 Python 3.11+ 或 [uv](https://docs.astral.sh/uv/)(macOS 自带的 Python 3.9 太旧) |+| build | 通过官方 EffekseerCore 编译 `.efkefc` / `.efk` | **Apple 芯片的 macOS** 或 **Windows x64**,首次安装需要联网(约 250 MB,装到 `~/.cache/effekseer-vfx`) || render | Godot 连拍复查、Lab、预览、打包 | 以上全部 + 位于 `PATH` 或 `GODOT` 中的 [Godot 4](https://godotengine.org)(Forward+);参考视频和录像需要 `ffmpeg` |-build 和 render 只在 macOS ARM64 上验证过(Effekseer Core 1.80.7、EffekseerForGodot4 1.80.5.1、Godot 4.7、-.NET 9)。Linux 可以运行 authoring 模式,构建路径未经验证。+build 和 render 已在 macOS ARM64(Effekseer Core 1.80.7、EffekseerForGodot4 1.80.5.1、Godot 4.7、.NET 9)和+Windows 11 x64(版本相同,Godot 4.7.2)上验证。Windows ARM64 的安装脚本会装上对应的 .NET 运行时,但未经验证。+Linux 可以运行 authoring 模式,构建路径未经验证。++在 Windows 上,下文每条 `sh <skill>/scripts/...` 命令也都能在 Git Bash(Claude Code 使用的就是它)里运行;在 cmd 或+PowerShell 里,`vfx` 请用 `<skill>\scripts\vfx.cmd`,`setup.sh` 请用+`powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1`。## 安装@@ -62,9 +67,10 @@ npx skills add kanaworksai-hue/effekseer-vfx-skill`skills/vfx-review` 复制到 `~/.claude/skills/`(Claude Code,所有项目)、`<project>/.claude/skills/`(Claude Code,单个项目)、`~/.codex/skills/`(Codex;设置了 `$CODEX_HOME` 时是 `$CODEX_HOME/skills`)或宿主的技能目录(例如 `.agents/skills/`)。不要复制其他内容;技能是自包含的,运行时只读。2. **加载。** 如果技能还没出现在技能列表里,请用户新开一个会话。-3. **检查本机。** 在用户的游戏项目里运行 `sh <skill>/scripts/vfx doctor`(`<skill>` 是安装好的 `effekseer-vfx` 目录),按它的 `next` 步骤操作。-4. **下载前先询问。** `sh <skill>/scripts/setup.sh` 把工具链装到 `~/.cache/effekseer-vfx`(macOS ARM64 上约 250 MB;其他系统用- `--authoring-only`),第一次 `vfx init` 还会下载官方 Effekseer Godot 插件(约 34 MB)。它需要 Python 3.11+ 或 uv:`doctor` 报告两者都没有时,请用户安装其中一个。Godot 4 永远不会替用户安装;+3. **检查本机。** 在用户的游戏项目里运行 `sh <skill>/scripts/vfx doctor`(`<skill>` 是安装好的 `effekseer-vfx` 目录;在 Windows 上,不在 Git Bash 里时用+ `<skill>\scripts\vfx.cmd doctor`),按它的 `next` 步骤操作。+4. **下载前先询问。** `sh <skill>/scripts/setup.sh`(Windows:`setup.ps1`,具体命令见 `doctor` 的 `next`)把工具链装到+ `~/.cache/effekseer-vfx`(macOS ARM64 和 Windows x64 上约 250 MB;其他系统用 `--authoring-only`),第一次 `vfx init` 还会下载官方 Effekseer Godot 插件(约 34 MB)。它需要 Python 3.11+ 或 uv:`doctor` 报告两者都没有时,请用户安装其中一个。Godot 4 永远不会替用户安装;请用户自行安装(或允许你安装),不在 `PATH` 上时设置 `GODOT`。5. **在沙箱外运行 Godot。** `vfx review`、`preview` 和 `showcase` 会在用户桌面上打开 Godot 窗口。处于沙箱中的 agent(例如在工作区沙箱里的 Codex)打不开窗口:请在用户批准后到沙箱外运行这些命令;如果宿主无法离开沙箱,就把完整命令交给用户,让用户在自己桌面的终端里运行。@@ -79,7 +85,7 @@ npx skills add kanaworksai-hue/effekseer-vfx-skill```shsh <skill>/scripts/vfx doctor # what this machine can do, and what to install-sh <skill>/scripts/setup.sh # macOS ARM64; use --authoring-only elsewhere (asks you first)+sh <skill>/scripts/setup.sh # macOS ARM64 / Windows x64; use --authoring-only elsewhere (asks you first)sh <skill>/scripts/vfx init # creates vfx/ with the Godot Lab, materials and math texturessh <skill>/scripts/vfx examples add firesh <skill>/scripts/vfx build --ids VFX_Projectile_Fire VFX_Fire_Explosion@@ -87,7 +93,7 @@ sh <skill>/scripts/vfx review --ids VFX_Projectile_Fire VFX_Fire_Explosion --notsh <skill>/scripts/vfx showcase # play the library in the Lab```-(各命令作用依次为:检查本机能力与需要安装的内容;安装依赖(macOS ARM64,其他系统用 `--authoring-only`,会先征得你同意);+(各命令作用依次为:检查本机能力与需要安装的内容;安装依赖(macOS ARM64 / Windows x64,其他系统用 `--authoring-only`,会先征得你同意);创建包含 Godot Lab、材质和数学纹理的 `vfx/`;添加火焰示例;构建;复查;在 Lab 中播放效果库。)然后提出一个效果需求:*"为指定目标的法术做一个落雷,短而锐利,带回击。"* 技能会让 agent 写简报、通过你的图像生成工具@@ -115,23 +121,26 @@ shot.arrived.connect(func(at): Vfx.play("VFX_Fire_Explosion", at))## 仓库结构```-skills/effekseer-vfx/ SKILL.md, references/ (craft, engine conventions, review...), scripts/ (vfx CLI, setup.sh,- vfxkit, vendored effekseer_ai), assets/ (Godot Lab, materials, rubric, brief schema, examples)+skills/effekseer-vfx/ SKILL.md, references/ (craft, engine conventions, review...), scripts/ (vfx CLI and vfx.cmd,+ setup.sh and setup.ps1, vfxkit, vendored effekseer_ai), assets/ (Godot Lab, materials, rubric,+ brief schema, examples)skills/vfx-review/ SKILL.md for the independent reviewerdocs/zh/, docs/ja/ Chinese and Japanese translations of the references.claude-plugin/ Claude Code plugin and marketplace manifeststests/ pure-Python tests (no Core or Godot needed)```-各目录:`skills/effekseer-vfx/` 含 `SKILL.md`、`references/`(制作规则、引擎约定、复查等)、`scripts/`(`vfx` CLI、-`setup.sh`、`vfxkit`、内置的 `effekseer_ai`)和 `assets/`(Godot Lab、材质、评分表、简报 schema、示例);+各目录:`skills/effekseer-vfx/` 含 `SKILL.md`、`references/`(制作规则、引擎约定、复查等)、`scripts/`(`vfx` CLI 和 `vfx.cmd`、+`setup.sh` 和 `setup.ps1`、`vfxkit`、内置的 `effekseer_ai`)和 `assets/`(Godot Lab、材质、评分表、简报 schema、示例);`skills/vfx-review/` 是独立评审用的 `SKILL.md`;`docs/zh/`、`docs/ja/` 是参考文档的中文和日文译文;`.claude-plugin/` 是 Claude Code 插件与 marketplace 清单;`tests/` 是纯 Python 测试(不需要 Core 或 Godot)。## 限制- 复查指标是基于真实 viewport 的像素启发式,不是 GPU 或 overdraw 测量。-- 复查工具驱动的是 macOS 上带窗口的 Godot;暂不支持无头 Linux 采集。+- 复查工具驱动的是 macOS 和 Windows 上带窗口的 Godot;暂不支持无头 Linux 采集。在 Windows 上,Godot 窗口在采集期间会一直+ 占着焦点(macOS 会把焦点还给你的应用)。+- 在 Windows 上,符号链接安全测试需要开启开发者模式(或使用管理员 shell),否则会被跳过。- 示例分数来自对 skill 自带胶囊 Lab 渲染的独立评审(十三个中有两个被判为 `iterate`);依赖它们之前请重新构建并复查。- `soft` 粒子在 Forward+ Lab 中未经验证,未被使用。@@ -143,6 +152,14 @@ sh skills/effekseer-vfx/scripts/setup.sh --authoring-only~/.cache/effekseer-vfx/venv/bin/python -m pytest -q tests```+在 Windows 上(PowerShell;去掉 `--authoring-only` 还会运行 EffekseerCore 构建测试):++```powershell+powershell -NoProfile -ExecutionPolicy Bypass -File skills\effekseer-vfx\scripts\setup.ps1 --authoring-only+~\.cache\effekseer-vfx\venv\Scripts\python.exe -m pip install pytest # a venv made by uv: uv pip install --python <that python.exe> pytest+~\.cache\effekseer-vfx\venv\Scripts\python.exe -X utf8 -m pytest -q tests+```+确认了新引擎约定的贡献,应把它连同测量方法一起写进`skills/effekseer-vfx/references/engine-conventions.md`(英文原文)。diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 2227eb4..f8c1047 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -11,10 +11,10 @@| Component | Downloaded by | License ||---|---|---|-| Effekseer 1.80.7 for Windows (only its managed Core assemblies are loaded) — https://github.com/effekseer/Effekseer/releases/tag/1807 | `scripts/setup.sh`, SHA-256 pinned | MIT (Effekseer Project); the archive's `LICENSE_TOOL` lists its bundled components |+| Effekseer 1.80.7 for Windows (only its managed Core assemblies are loaded) — https://github.com/effekseer/Effekseer/releases/tag/1807 | `scripts/setup.sh` / `scripts/setup.ps1`, SHA-256 pinned | MIT (Effekseer Project); the archive's `LICENSE_TOOL` lists its bundled components || EffekseerForGodot4 1.80.5.1 — https://github.com/effekseer/EffekseerForGodot4/releases/tag/1.80.5.1 | `vfx init`, SHA-256 pinned | MIT; its LICENSE is copied into `vfx/godot/addons/effekseer/`. `init` changes one line of `plugin.gd` so the editor icon loads before the first import; the renderer is unchanged. |-| .NET 9 runtime (9.0.20) — official Microsoft archive `dotnet-runtime-9.0.20-osx-arm64.tar.gz` | `scripts/setup.sh`, SHA-256 pinned | MIT |-| Python packages in `scripts/requirements.lock.txt` (numpy, Pillow, jsonschema, pythonnet, ...) | `scripts/setup.sh`, pinned by version (not by hash) | their own permissive licenses |+| .NET 9 runtime (9.0.20) — official Microsoft archives `dotnet-runtime-9.0.20-osx-arm64.tar.gz` (macOS), `dotnet-runtime-9.0.20-win-x64.zip` / `-win-arm64.zip` (Windows) | `scripts/setup.sh` / `scripts/setup.ps1`, SHA-256 pinned | MIT |+| Python packages in `scripts/requirements.lock.txt` (numpy, Pillow, jsonschema, pythonnet, ...) | `scripts/setup.sh` / `scripts/setup.ps1`, pinned by version (not by hash) | their own permissive licenses |Godot and ffmpeg are not downloaded; install them yourself under their licenses.diff --git a/docs/ja/SKILL.effekseer-vfx.md b/docs/ja/SKILL.effekseer-vfx.mdindex 2ee42a0..05f0f6a 100644--- a/docs/ja/SKILL.effekseer-vfx.md+++ b/docs/ja/SKILL.effekseer-vfx.md@@ -8,12 +8,16 @@ VFX アーティストと同じ反復の進め方で、ただしコードでゲ`sh <skill>/scripts/vfx [--project <game project>] <command> ...` の形式で、JSON オブジェクトを一つ出力します(進捗は stderr に出ます)。プロジェクトの既定はカレントディレクトリで、エフェクトの作業領域は `<project>/vfx/` です。全コマンドは `sh <skill>/scripts/vfx --help` で確認できます。説明は [references/cli.md](references/cli.md) にあります。+Windows では、`sh <skill>/scripts/vfx` は Git Bash で動作します。cmd や PowerShell からは代わりに `<skill>\scripts\vfx.cmd` を実行します+(コマンドも出力も同じです)。## プロジェクトでの初回実行1. `vfx doctor` — `modes`(`authoring`、`build`、`render`)、作業領域、具体的な `next` ステップを報告します。`vfx init` が作成したのではない `vfx/` フォルダが存在すると報告された場合は、初期化する前に、それがゲームプロジェクトであることをユーザーに確認します(または `--project` を渡します)。2. セットアップが必要な場合は、**まずユーザーに確認します**(フルモードは `~/.cache/effekseer-vfx` に約 250 MB をダウンロードします)。- macOS ARM64 では `sh <skill>/scripts/setup.sh`、それ以外では `sh <skill>/scripts/setup.sh --authoring-only` です。+ macOS ARM64 では `sh <skill>/scripts/setup.sh`、Linux では `sh <skill>/scripts/setup.sh --authoring-only`、Windows では+ `powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1` です(Git Bash からは `sh <skill>/scripts/setup.sh` でも実行でき、これが上記を呼び出します)。+ `doctor` の `next` が、このマシン向けの正確なコマンドを表示します。setup には Python 3.11+ か uv が必要です(macOS 標準の Python 3.9 は古すぎます)。`doctor` がどちらもないと報告したら、ユーザーにどちらかのインストールを頼みます。Godot 4(Forward+)はユーザーがインストールする必要があります。`PATH` 上にない場合は `GODOT` を設定します。3. `vfx init` は `vfx/`(Godot Lab、マテリアル、数式テクスチャ、公式 Effekseer プラグイン)を作成します。`--update-templates` を付けない限り、既存のファイルは上書きしません。4. 任意:`vfx examples add <name>` で、完成済みで独立レビュー済みのサンプルを学習用にコピーします:ペアは `fire`、`ice`、`poison`、`dark`(飛翔体 + 着弾)、単体は `hit`、`slash`、`charge`、`shield`、`heal`、または `all`。[references/examples.md](references/examples.md) を参照してください。diff --git a/docs/ja/references/cli.md b/docs/ja/references/cli.mdindex 13d66d3..49f56c8 100644--- a/docs/ja/references/cli.md+++ b/docs/ja/references/cli.md@@ -2,7 +2,8 @@# コマンドリファレンス-`sh <skill>/scripts/vfx [--project DIR] <command> [options]`。出力:stdout に JSON オブジェクトを一つ。ビルド中の進捗と lint の+`sh <skill>/scripts/vfx [--project DIR] <command> [options]`(Windows では、Git Bash なら同じ形式、cmd や PowerShell なら+`<skill>\scripts\vfx.cmd [--project DIR] <command> [options]`)。出力:stdout に JSON オブジェクトを一つ。ビルド中の進捗と lint の警告は stderr に出ます。終了コード:0 成功、1 チェック失敗またはエラー(`{"ok": false, "error": {...}}`)、2 セットアップが必要:ツールチェーンがない(`SetupRequired`)か、ここに作業領域がない(`WorkspaceMissing`)。画像の結果はファイルパスです — 開いて見てください。@@ -13,7 +14,14 @@`vfx/src` のヘルパーは `_name` ファイルとしてしか解決されないので、プロジェクトのファイルが標準ライブラリを隠すことはありません。環境変数:`VFX_PROJECT`(プロジェクト。既定はカレントディレクトリ)、`EFFEKSEER_VFX_HOME`(ツールチェーン。既定は-`~/.cache/effekseer-vfx`)、`GODOT`(Godot 4 の実行ファイル。既定は PATH 上の `godot`、次に `/Applications/Godot.app`)。+`~/.cache/effekseer-vfx`、Windows では `%USERPROFILE%\.cache\effekseer-vfx`)、`GODOT`(Godot 4 の実行ファイル。既定は PATH 上の+`godot` または `godot4`、次に `/Applications/Godot.app`。Windows では、Scoop や winget が `godot` を PATH に入れた場合を除き、+ダウンロードした `Godot_v4.x_win64_console.exe` を指定します)。++セットアップ:macOS と Linux では `sh <skill>/scripts/setup.sh [--authoring-only]`、Windows では+`powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1 [--authoring-only]`(Git Bash の+`sh setup.sh` はこれを実行します)。どちらも再実行しても安全で、ダウンロードはすべて固定された SHA-256 で検証し、+`EFFEKSEER_VFX_HOME` の外には何もインストールしません。| コマンド | 必要なもの | 内容 ||---|---|---|diff --git a/docs/ja/references/review.md b/docs/ja/references/review.mdindex 4d337d0..2f14b51 100644--- a/docs/ja/references/review.md+++ b/docs/ja/references/review.md@@ -102,9 +102,12 @@ GPU やオーバードローの計測では **ありません**。エフェクト単体で判断できるようにします。`--bright` は明るい背景を使います。それぞれ別々に保存され、標準/既定(standard/default)のベースラインやその指標を上書きすることはありません。検証のベースラインは standard/default です。-## 撮影時の挙動(macOS)+## 撮影時の挙動(macOS / Windows)レビュー中もユーザーがマシンを使っていることがあります:macOS は完全に覆われたウィンドウの描画を止め、Godot は起動時にフォーカスを奪います。撮影モードの Lab はウィンドウを最前面に保ち、右下隅に寄せて一部だけを見せ(viewport は 1280×800 でレンダーされ続けます)、キーボード入力とクローズ要求を無視し、レビューはフォーカスを直前のアプリに戻します(起動ごとに約 0.2 秒のちらつき)。早く退場してしまったり、まったく再生されなかったりしたエフェクトは、撮り直されます(最大 3 回)。++Windows では、Lab は同じようにウィンドウを寄せますが、レビューはフォーカスを戻しません。撮影が終わるまで Godot ウィンドウが+フォーカスを保持します(エフェクト 2 つのレビューなら 1 分もかかりません)。撮影中は最小化しないでください。diff --git a/docs/zh/SKILL.effekseer-vfx.md b/docs/zh/SKILL.effekseer-vfx.mdindex 597ad44..d7f588b 100644--- a/docs/zh/SKILL.effekseer-vfx.md+++ b/docs/zh/SKILL.effekseer-vfx.md@@ -8,12 +8,16 @@`sh <skill>/scripts/vfx [--project <game project>] <command> ...`,输出一个 JSON 对象(进度信息写到 stderr)。项目默认是当前目录,效果工作区是 `<project>/vfx/`。运行 `sh <skill>/scripts/vfx --help` 查看全部命令;[references/cli.md](references/cli.md) 有完整说明。+在 Windows 上,`sh <skill>/scripts/vfx` 可以在 Git Bash 里运行;在 cmd 或 PowerShell 里请改用 `<skill>\scripts\vfx.cmd`+(命令相同,输出相同)。## 在项目里第一次运行1. `vfx doctor` —— 报告 `modes`(`authoring`、`build`、`render`)、工作区和确切的 `next` 步骤。如果它说存在一个不是由 `vfx init` 创建的 `vfx/` 文件夹,先与用户确认这就是游戏项目(或传入 `--project`),再进行初始化。2. 如果需要安装,**先征求用户同意**(完整模式会下载约 250 MB 到 `~/.cache/effekseer-vfx`):- macOS ARM64 上运行 `sh <skill>/scripts/setup.sh`,其他系统运行 `sh <skill>/scripts/setup.sh --authoring-only`。+ macOS ARM64 上运行 `sh <skill>/scripts/setup.sh`,Linux 上运行 `sh <skill>/scripts/setup.sh --authoring-only`;Windows 上运行+ `powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1`(在 Git Bash 里也可以运行 `sh <skill>/scripts/setup.sh`,它会调用前者)。+ `doctor` 的 `next` 会打印适合本机的确切命令。setup 需要 Python 3.11+ 或 uv(macOS 自带的 Python 3.9 太旧);如果 `doctor` 报告两者都没有,请用户安装其中一个。Godot 4(Forward+)必须由用户自行安装;如果它不在 `PATH` 上,设置 `GODOT`。3. `vfx init` 创建 `vfx/`(Godot Lab、材质、数学纹理、官方 Effekseer 插件)。除非加 `--update-templates`,否则不会覆盖已有文件。4. 可选:`vfx examples add <name>` 复制一个完成且经过独立评审的示例用于学习:配对 `fire`、`ice`、`poison`、`dark`(飞行体 + 命中),单独效果 `hit`、`slash`、`charge`、`shield`、`heal`,或 `all`。见 [references/examples.md](references/examples.md)。diff --git a/docs/zh/references/cli.md b/docs/zh/references/cli.mdindex 5e8da51..38cd012 100644--- a/docs/zh/references/cli.md+++ b/docs/zh/references/cli.md@@ -1,6 +1,7 @@# 命令参考-`sh <skill>/scripts/vfx [--project DIR] <command> [options]`。输出:stdout 上的一个 JSON 对象;构建期间的进度和 lint 警告写到 stderr。+`sh <skill>/scripts/vfx [--project DIR] <command> [options]`(Windows 上:在 Git Bash 里用法相同,在 cmd 或 PowerShell 里用+`<skill>\scripts\vfx.cmd [--project DIR] <command> [options]`)。输出:stdout 上的一个 JSON 对象;构建期间的进度和 lint 警告写到 stderr。退出码:0 成功,1 检查失败或出错(`{"ok": false, "error": {...}}`),2 需要先安装:缺少工具链(`SetupRequired`)或这里没有工作区(`WorkspaceMissing`)。图片结果是文件路径 —— 要打开它们。@@ -9,8 +10,14 @@失败,而不会创建一个多余的 `vfx/`。当前目录不在 Python 的 import 路径上,`vfx/src` 中的辅助模块只按 `_name` 文件解析,因此项目文件绝不会遮蔽标准库。-环境变量:`VFX_PROJECT`(项目,默认当前目录)、`EFFEKSEER_VFX_HOME`(工具链,默认 `~/.cache/effekseer-vfx`)、-`GODOT`(Godot 4 可执行文件,默认先找 PATH 上的 `godot`,再找 `/Applications/Godot.app`)。+环境变量:`VFX_PROJECT`(项目,默认当前目录)、`EFFEKSEER_VFX_HOME`(工具链,默认 `~/.cache/effekseer-vfx`,Windows 上是 `%USERPROFILE%\.cache\effekseer-vfx`)、+`GODOT`(Godot 4 可执行文件,默认先找 PATH 上的 `godot` 或 `godot4`,再找 `/Applications/Godot.app`;Windows 上请设为下载的+`Godot_v4.x_win64_console.exe`,除非 Scoop 或 winget 已把 `godot` 放到了 PATH 上)。++安装:macOS 和 Linux 上用 `sh <skill>/scripts/setup.sh [--authoring-only]`;Windows 上用+`powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1 [--authoring-only]`(Git Bash 里的+`sh setup.sh` 会调用它)。两者都可以安全地重复运行,每个下载都按固定的 SHA-256 校验,并且不会在+`EFFEKSEER_VFX_HOME` 之外安装任何东西。| 命令 | 需要 | 作用 ||---|---|---|diff --git a/docs/zh/references/review.md b/docs/zh/references/review.mdindex f9a82d8..ee4831d 100644--- a/docs/zh/references/review.md+++ b/docs/zh/references/review.md@@ -90,8 +90,11 @@ Godot Lab 在隐藏 UI 的真实 viewport 中渲染效果,使用对战站位`--view close` 只改变检查用的镜头;`--profile bare` 关闭 Lab 的泛光、打击灯和镜头抖动,用来单独判断效果本身;`--bright` 使用亮背景。每种变体分开保存,绝不覆盖 standard/default 基线及其 metrics;验证所用的基线是 standard/default。-## 采集行为(macOS)+## 采集行为(macOS / Windows)复查期间用户可能正在使用这台机器:macOS 会停止绘制被完全遮住的窗口,而 Godot 启动时会抢走焦点。在采集模式下,Lab 让窗口保持置顶,停在右下角只露出一小部分(viewport 仍以 1280×800 渲染),忽略键盘输入和关闭请求,复查结束后把焦点交还给之前的应用(每次启动约有 0.2 s 的闪烁)。提前退出或从未播放的效果会被重新采集(最多 3 次)。++在 Windows 上,Lab 同样会这样停放窗口,但复查不会交还焦点:Godot 窗口会一直占着焦点,直到采集结束(两个效果的复查用时远不到一分钟)。+采集期间不要最小化它。diff --git a/skills/effekseer-vfx/SKILL.md b/skills/effekseer-vfx/SKILL.mdindex e66f3ae..e11b29e 100644--- a/skills/effekseer-vfx/SKILL.md+++ b/skills/effekseer-vfx/SKILL.md@@ -2,7 +2,7 @@name: effekseer-vfxdescription: Author real-time game VFX as code for the Effekseer engine and verify them in a real Godot render. Use when asked to create, edit, review or iterate on Effekseer effects (.efkefc/.efk), game hit, slash, projectile, explosion, magic, buff or shield VFX, or a VFX library for a Godot game. Covers design briefs, texture generation prompts, Python recipe code, EffekseerCore compilation, filmstrip review, independent scoring and export.license: MIT-compatibility: Build and render need macOS on Apple silicon, Godot 4.x and network access for the first setup (Effekseer Core, .NET runtime, Effekseer Godot plugin). Authoring, lint and texture processing run on macOS or Linux with Python 3.11+ (on Windows, use WSL).+compatibility: Build and render need macOS on Apple silicon or Windows (x64), Godot 4.x and network access for the first setup (Effekseer Core, .NET runtime, Effekseer Godot plugin). Authoring, lint and texture processing run on macOS, Linux or Windows with Python 3.11+.metadata:version: "0.1.0"---@@ -15,12 +15,16 @@ Make game effects the way a VFX artist iterates, but in code: **brief → textur`sh <skill>/scripts/vfx [--project <game project>] <command> ...` and prints one JSON object(progress goes to stderr). The project defaults to the current directory; its effect workspace is `<project>/vfx/`.Run `sh <skill>/scripts/vfx --help` for all commands; [references/cli.md](references/cli.md) documents them.+On Windows, `sh <skill>/scripts/vfx` works from Git Bash; from cmd or PowerShell run `<skill>\scripts\vfx.cmd` instead+(same commands, same output).## First run in a project1. `vfx doctor` — reports `modes` (`authoring`, `build`, `render`), the workspace and the exact `next` steps. If it says a `vfx/` folder exists that `vfx init` did not create, confirm with the user that this is the game project (or pass `--project`) before initializing.2. If setup is needed, **ask the user first** (full mode downloads about 250 MB into `~/.cache/effekseer-vfx`):- `sh <skill>/scripts/setup.sh` on macOS ARM64, `sh <skill>/scripts/setup.sh --authoring-only` elsewhere.+ `sh <skill>/scripts/setup.sh` on macOS ARM64, `sh <skill>/scripts/setup.sh --authoring-only` on Linux; on Windows+ `powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1` (or `sh <skill>/scripts/setup.sh` from Git Bash, which runs it).+ `doctor`'s `next` prints the exact command for this machine.Setup needs Python 3.11+ or uv (macOS's built-in Python 3.9 is too old); if `doctor` reports neither, ask the user to install one. Godot 4 (Forward+) must be installed by the user; set `GODOT` if it is not on `PATH`.3. `vfx init` creates `vfx/` (Godot Lab, materials, math textures, official Effekseer plugin). It never overwrites existing files unless `--update-templates`.4. Optional: `vfx examples add <name>` copies a finished, independently reviewed example to learn from: pairs `fire`, `ice`, `poison`, `dark` (projectile + impact) and singles `hit`, `slash`, `charge`, `shield`, `heal`, or `all`. See [references/examples.md](references/examples.md).diff --git a/skills/effekseer-vfx/THIRD_PARTY_NOTICES.md b/skills/effekseer-vfx/THIRD_PARTY_NOTICES.mdindex 2227eb4..f8c1047 100644--- a/skills/effekseer-vfx/THIRD_PARTY_NOTICES.md+++ b/skills/effekseer-vfx/THIRD_PARTY_NOTICES.md@@ -11,10 +11,10 @@| Component | Downloaded by | License ||---|---|---|-| Effekseer 1.80.7 for Windows (only its managed Core assemblies are loaded) — https://github.com/effekseer/Effekseer/releases/tag/1807 | `scripts/setup.sh`, SHA-256 pinned | MIT (Effekseer Project); the archive's `LICENSE_TOOL` lists its bundled components |+| Effekseer 1.80.7 for Windows (only its managed Core assemblies are loaded) — https://github.com/effekseer/Effekseer/releases/tag/1807 | `scripts/setup.sh` / `scripts/setup.ps1`, SHA-256 pinned | MIT (Effekseer Project); the archive's `LICENSE_TOOL` lists its bundled components || EffekseerForGodot4 1.80.5.1 — https://github.com/effekseer/EffekseerForGodot4/releases/tag/1.80.5.1 | `vfx init`, SHA-256 pinned | MIT; its LICENSE is copied into `vfx/godot/addons/effekseer/`. `init` changes one line of `plugin.gd` so the editor icon loads before the first import; the renderer is unchanged. |-| .NET 9 runtime (9.0.20) — official Microsoft archive `dotnet-runtime-9.0.20-osx-arm64.tar.gz` | `scripts/setup.sh`, SHA-256 pinned | MIT |-| Python packages in `scripts/requirements.lock.txt` (numpy, Pillow, jsonschema, pythonnet, ...) | `scripts/setup.sh`, pinned by version (not by hash) | their own permissive licenses |+| .NET 9 runtime (9.0.20) — official Microsoft archives `dotnet-runtime-9.0.20-osx-arm64.tar.gz` (macOS), `dotnet-runtime-9.0.20-win-x64.zip` / `-win-arm64.zip` (Windows) | `scripts/setup.sh` / `scripts/setup.ps1`, SHA-256 pinned | MIT |+| Python packages in `scripts/requirements.lock.txt` (numpy, Pillow, jsonschema, pythonnet, ...) | `scripts/setup.sh` / `scripts/setup.ps1`, pinned by version (not by hash) | their own permissive licenses |Godot and ffmpeg are not downloaded; install them yourself under their licenses.diff --git a/skills/effekseer-vfx/references/cli.md b/skills/effekseer-vfx/references/cli.mdindex ef99ce3..38c2d80 100644--- a/skills/effekseer-vfx/references/cli.md+++ b/skills/effekseer-vfx/references/cli.md@@ -1,6 +1,7 @@# Command reference-`sh <skill>/scripts/vfx [--project DIR] <command> [options]`. Output: one JSON object on stdout; progress and lint+`sh <skill>/scripts/vfx [--project DIR] <command> [options]` (on Windows: the same from Git Bash, or+`<skill>\scripts\vfx.cmd [--project DIR] <command> [options]` from cmd or PowerShell). Output: one JSON object on stdout; progress and lintwarnings during a build go to stderr. Exit codes: 0 ok, 1 failed check or error (`{"ok": false, "error": {...}}`),2 setup required: the toolchain is missing (`SetupRequired`) or there is no workspace here (`WorkspaceMissing`).Image results are file paths — open them.@@ -12,7 +13,14 @@ kept off Python's import path, and `vfx/src` helpers resolve only as `_name` filthe standard library.Environment: `VFX_PROJECT` (project, default current directory), `EFFEKSEER_VFX_HOME` (toolchain, default-`~/.cache/effekseer-vfx`), `GODOT` (Godot 4 executable, default `godot` on PATH, then `/Applications/Godot.app`).+`~/.cache/effekseer-vfx`, on Windows `%USERPROFILE%\.cache\effekseer-vfx`), `GODOT` (Godot 4 executable, default+`godot` or `godot4` on PATH, then `/Applications/Godot.app`; on Windows set it to the downloaded `Godot_v4.x_win64_console.exe`+unless Scoop or winget put `godot` on PATH).++Setup: `sh <skill>/scripts/setup.sh [--authoring-only]` on macOS and Linux;+`powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1 [--authoring-only]` on Windows (Git Bash's+`sh setup.sh` runs it). Both are safe to re-run, verify every download against a pinned SHA-256 and install nothing+outside `EFFEKSEER_VFX_HOME`.| Command | Needs | What it does ||---|---|---|diff --git a/skills/effekseer-vfx/references/review.md b/skills/effekseer-vfx/references/review.mdindex c200a48..4a31dde 100644--- a/skills/effekseer-vfx/references/review.md+++ b/skills/effekseer-vfx/references/review.md@@ -104,10 +104,13 @@ single-effect strips stay local (`vfx/.gitignore` written by `init` handles thiscamera kick to judge the effect on its own; `--bright` uses a bright background. Each is stored separately and neveroverwrites the standard/default baseline or its metrics; the baseline for verification is standard/default.-## Capture behaviour (macOS)+## Capture behaviour (macOS / Windows)The user may be using the machine during a review: macOS stops drawing fully covered windows, and Godot steals focuson launch. In capture mode the Lab keeps its window on top, parked in the bottom-right corner with only a small partshowing (the viewport still renders at 1280×800), ignores keyboard input and close requests, and the review handsfocus back to the previous app (about a 0.2 s flicker per launch). Effects that exit early or never play arere-captured (up to 3 times).++On Windows the Lab parks its window the same way, but the review does not hand focus back: the Godot window keeps+focus until the capture ends (a two-effect review takes well under a minute). Do not minimise it while it captures.diff --git a/skills/effekseer-vfx/scripts/setup.ps1 b/skills/effekseer-vfx/scripts/setup.ps1new file mode 100644index 0000000..b049f5e--- /dev/null+++ b/skills/effekseer-vfx/scripts/setup.ps1@@ -0,0 +1,164 @@+# Install the effekseer-vfx toolchain on Windows into EFFEKSEER_VFX_HOME (default %USERPROFILE%\.cache\effekseer-vfx).+# The Windows counterpart of setup.sh; safe to re-run. From cmd, PowerShell or Git Bash:+#+# powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1 full mode (x64 or ARM64)+# powershell -NoProfile -ExecutionPolicy Bypass -File <skill>\scripts\setup.ps1 --authoring-only Python packages only+#+# Full mode installs the Python packages, Effekseer Core 1.80.7 and the .NET 9 runtime; `sh setup.sh` from Git Bash+# runs this script. Needs Python 3.11+ (found through the py launcher or PATH) or uv. Exit codes: 0 ok, 1 a download or+# install failed, 2 unknown option, 3 full mode on an unsupported system, 4 no suitable Python.+#+# The Effekseer and .NET archives (~250 MB in full mode) come from the official Effekseer and Microsoft releases and+# are checked against pinned SHA-256 sums; Python packages are pinned by version (requirements.lock.txt), not by hash.+# Nothing is installed outside EFFEKSEER_VFX_HOME. Godot 4 is not installed here. Concurrent runs that share one+# EFFEKSEER_VFX_HOME wait for each other (an exclusive handle on a lock file, released by the kernel when the process+# exits); every download and extraction goes to a private temporary folder first.+$ErrorActionPreference = 'Stop'+$ProgressPreference = 'SilentlyContinue'++$Mode = 'full'+foreach ($argument in $args) {+ if ($argument -eq '--authoring-only') { $Mode = 'authoring' }+ else { [Console]::Error.WriteLine("Unknown option: $argument (expected --authoring-only)"); exit 2 }+}+$Scripts = Split-Path -Parent $MyInvocation.MyCommand.Path+$Toolchain = if ($env:EFFEKSEER_VFX_HOME) { $env:EFFEKSEER_VFX_HOME } else { Join-Path $env:USERPROFILE '.cache\effekseer-vfx' }+$CoreUrl = 'https://github.com/effekseer/Effekseer/releases/download/1807/Effekseer1.80.7Win.zip'+$CoreSha256 = '6f059b9cce3a79c5bfe3df9c970cfe62fd72acf130083c7b81832d90f8d1335f'+$DotnetVersion = '9.0.20'+# Microsoft's published SHA-512 sums for these archives (releases.json) are+# win-x64 6f7241fab7a8003813c3c8a59005e368fe53525e3cf08ab1cc052103f2f422af6bd1b20b838c283283a8a709d52a6aea2379686fe6cb07cc0fa7119f2ef2b2bf+# win-arm64 9e8a6252d98f37fe035c7c642be479ea8b16db393e357ef248695c3f3cafb0656548d41e2e1a12d24ce62531f8190b48af02adb933bf25d5ecaa2a94415d2fc7+$DotnetSha256 = @{+ 'x64' = '1f645d05f046b5107dd57406f7ef994f76cfc35cc5ef0cd320c8120d49903503'+ 'arm64' = '3f8e7af1baa8ec3f1dea2963e90cd67fd73f69d817f70e058d25dda45315f21e'+}++function Say([string]$message) { [Console]::Error.WriteLine($message) }++# Run a native program with its output on stderr (stdout carries only the final doctor JSON); return its exit code.+function Invoke-Native([string]$exe, [string[]]$arguments) {+ $saved = $ErrorActionPreference+ $ErrorActionPreference = 'Continue' # Windows PowerShell turns native stderr lines into errors under 'Stop'+ try { & $exe @arguments 2>&1 | ForEach-Object { [Console]::Error.WriteLine("$_") } }+ finally { $ErrorActionPreference = $saved }+ return $LASTEXITCODE+}++function Get-Sha256([string]$path) { (Get-FileHash -Algorithm SHA256 -LiteralPath $path).Hash.ToLowerInvariant() }++# A verified copy of $url at $target: reuse a verified copy, else download privately, verify, then move into place.+function Get-Verified([string]$url, [string]$sha256, [string]$target) {+ if ((Test-Path -LiteralPath $target) -and (Get-Sha256 $target) -eq $sha256) { return }+ $download = Join-Path $script:WorkDir 'download'+ if (Get-Command curl.exe -ErrorAction SilentlyContinue) {+ if ((Invoke-Native 'curl.exe' @('-sSL', '--fail', '-o', $download, $url)) -ne 0) { throw "Download failed: $url" }+ } else {+ [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12+ Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $download+ }+ if ((Get-Sha256 $download) -ne $sha256) { Say "Checksum mismatch for $url"; exit 1 }+ Move-Item -Force -LiteralPath $download -Destination $target+}++function Expand-Zip([string]$archive, [string]$destination) {+ Add-Type -AssemblyName System.IO.Compression.FileSystem+ [System.IO.Compression.ZipFile]::ExtractToDirectory($archive, $destination)+}++# Python 3.11+ is required (the pinned numpy, Pillow and pythonnet need it). uv provides one by itself; otherwise use+# the py launcher's newest 3.11+, then python or python3 on PATH (which may be the Microsoft Store stub: it is tested).+function Test-Modern([string]$exe, [string[]]$prefix) {+ $code = Invoke-Native $exe ($prefix + @('-c', 'import sys; sys.exit(0 if sys.version_info >= (3, 11) else 1)'))+ return $code -eq 0+}+function Find-Python {+ if (Get-Command py.exe -ErrorAction SilentlyContinue) {+ foreach ($minor in 13, 12, 11) { if (Test-Modern 'py.exe' @("-3.$minor")) { return @('py.exe', "-3.$minor") } }+ }+ foreach ($name in 'python.exe', 'python3.exe') {+ $found = Get-Command $name -ErrorAction SilentlyContinue+ if ($found -and (Test-Modern $found.Source @())) { return @($found.Source) }+ }+ return $null+}++$architecture = $env:PROCESSOR_ARCHITECTURE+if ($env:PROCESSOR_ARCHITEW6432) { $architecture = $env:PROCESSOR_ARCHITEW6432 } # 32-bit PowerShell on a 64-bit OS+$Rid = switch ($architecture) { 'AMD64' { 'x64' } 'ARM64' { 'arm64' } default { $null } }+if ($Mode -eq 'full' -and -not $Rid) {+ Say "Full mode (EffekseerCore build + Godot review) needs 64-bit Windows (x64 or ARM64); this is $architecture."+ Say "On this system run: powershell -NoProfile -ExecutionPolicy Bypass -File `"$($MyInvocation.MyCommand.Path)`" --authoring-only"+ exit 3+}++New-Item -ItemType Directory -Force -Path (Join-Path $Toolchain 'downloads') | Out-Null+# One setup at a time per toolchain: hold an exclusive handle on a lock file until this script ends.+$lockPath = Join-Path $Toolchain '.setup.lock'+$lock = $null+while (-not $lock) {+ try { $lock = [System.IO.File]::Open($lockPath, 'OpenOrCreate', 'ReadWrite', 'None') }+ catch [System.IO.IOException] { Start-Sleep -Milliseconds 500 }+}+$WorkDir = Join-Path $Toolchain ('downloads\.setup.' + [Guid]::NewGuid().ToString('N').Substring(0, 8))+New-Item -ItemType Directory -Path $WorkDir | Out-Null+try {+ $venv = Join-Path $Toolchain 'venv'+ $venvPython = Join-Path $venv 'Scripts\python.exe'+ Say "== Python packages -> $venv"+ # An environment from an older Python (or a broken earlier attempt) is replaced, never reused.+ if ((Test-Path -LiteralPath $venv) -and -not ((Test-Path -LiteralPath $venvPython) -and (Test-Modern $venvPython @()))) {+ Say "Replacing ${venv}: it is missing, broken or older than Python 3.11"+ Remove-Item -Recurse -Force -LiteralPath $venv+ }+ $uv = Get-Command uv.exe -ErrorAction SilentlyContinue+ if (-not (Test-Path -LiteralPath $venvPython)) {+ if ($uv) {+ if ((Invoke-Native $uv.Source @('venv', '--python', '3.12', $venv)) -ne 0) { Say 'uv could not create the environment.'; exit 1 }+ } else {+ $python = Find-Python+ if (-not $python) {+ Say 'Python 3.11 or newer is required and none was found.'+ Say 'Install one of them, then run this script again:'+ Say ' uv (manages its own Python): https://docs.astral.sh/uv/getting-started/installation/'+ Say ' or Python from python.org: winget install Python.Python.3.12'+ exit 4+ }+ $prefix = @($python | Select-Object -Skip 1)+ if ((Invoke-Native $python[0] ($prefix + @('-m', 'venv', $venv))) -ne 0) { Say 'Creating the environment failed.'; exit 1 }+ }+ }+ $requirements = Join-Path $Scripts 'requirements.lock.txt'+ if ($uv) { $code = Invoke-Native $uv.Source @('pip', 'install', '--python', $venvPython, '-r', $requirements) }+ else { $code = Invoke-Native $venvPython @('-m', 'pip', 'install', '--quiet', '-r', $requirements) }+ if ($code -ne 0) { Say 'Installing the Python packages failed; fix the error above and run this script again (it resumes).'; exit 1 }++ if ($Mode -eq 'full') {+ $effekseer = Join-Path $Toolchain 'effekseer'+ if (-not (Test-Path -LiteralPath (Join-Path $effekseer 'Effekseer1.80.7Win\Tool\bin\EffekseerCore.dll'))) {+ Say '== Effekseer 1.80.7 (official release; only its managed Core assemblies are used)'+ $archive = Join-Path $Toolchain 'downloads\Effekseer1.80.7Win.zip'+ Get-Verified $CoreUrl $CoreSha256 $archive+ $staged = Join-Path $WorkDir 'effekseer'+ Expand-Zip $archive $staged+ if (Test-Path -LiteralPath $effekseer) { Remove-Item -Recurse -Force -LiteralPath $effekseer }+ Move-Item -LiteralPath $staged -Destination $effekseer+ }+ $dotnet = Join-Path $Toolchain 'dotnet'+ if (-not (Test-Path -LiteralPath (Join-Path $dotnet 'dotnet.exe'))) {+ Say "== .NET $DotnetVersion runtime (official Microsoft archive, win-$Rid)"+ $name = "dotnet-runtime-$DotnetVersion-win-$Rid.zip"+ $archive = Join-Path $Toolchain "downloads\$name"+ Get-Verified "https://builds.dotnet.microsoft.com/dotnet/Runtime/$DotnetVersion/$name" $DotnetSha256[$Rid] $archive+ $staged = Join-Path $WorkDir 'dotnet'+ Expand-Zip $archive $staged+ if (Test-Path -LiteralPath $dotnet) { Remove-Item -Recurse -Force -LiteralPath $dotnet }+ Move-Item -LiteralPath $staged -Destination $dotnet+ }+ }+} finally {+ Remove-Item -Recurse -Force -LiteralPath $WorkDir -ErrorAction SilentlyContinue+ $lock.Dispose()+}+& (Join-Path $Scripts 'vfx.cmd') doctor+exit $LASTEXITCODEdiff --git a/skills/effekseer-vfx/scripts/setup.sh b/skills/effekseer-vfx/scripts/setup.shindex 57c7fd3..bb14eed 100755--- a/skills/effekseer-vfx/scripts/setup.sh+++ b/skills/effekseer-vfx/scripts/setup.sh@@ -2,7 +2,9 @@# Install the effekseer-vfx toolchain into EFFEKSEER_VFX_HOME (default ~/.cache/effekseer-vfx). Safe to re-run.## sh setup.sh full mode: Python packages, Effekseer Core 1.80.7 and the .NET 9 runtime (macOS ARM64)-# sh setup.sh --authoring-only Python packages only: write recipes, lint, process textures (macOS or Linux; WSL on Windows)+# sh setup.sh --authoring-only Python packages only: write recipes, lint, process textures (macOS or Linux)+#+# On Windows (Git Bash, MSYS2) this runs setup.ps1, which installs the Windows toolchain (x64 or ARM64).## Needs Python 3.11+ (found automatically) or uv. Exit codes: 0 ok, 1 a download or install failed, 3 full mode on an# unsupported system, 4 no suitable Python.@@ -16,6 +18,11 @@ set -euMODE=full[ "${1:-}" = "--authoring-only" ] && MODE=authoringSCRIPTS=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)+case "$(uname -s)" in+ MINGW*|MSYS*|CYGWIN*)+ [ -n "${EFFEKSEER_VFX_HOME:-}" ] && EFFEKSEER_VFX_HOME=$(cygpath -w "$EFFEKSEER_VFX_HOME") && export EFFEKSEER_VFX_HOME+ exec powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$(cygpath -w "$SCRIPTS/setup.ps1")" "$@" ;;+esacTOOLCHAIN=${EFFEKSEER_VFX_HOME:-$HOME/.cache/effekseer-vfx}CORE_URL=https://github.com/effekseer/Effekseer/releases/download/1807/Effekseer1.80.7Win.zipCORE_SHA256=6f059b9cce3a79c5bfe3df9c970cfe62fd72acf130083c7b81832d90f8d1335f@@ -55,7 +62,7 @@ fetch() {}if [ "$MODE" = full ] && { [ "$(uname -s)" != Darwin ] || [ "$(uname -m)" != arm64 ]; }; then- echo "Full mode (EffekseerCore build + Godot review) is verified on macOS ARM64 only." >&2+ echo "Full mode (EffekseerCore build + Godot review) is verified on macOS ARM64 and Windows x64 only." >&2echo "On this system run: sh $0 --authoring-only" >&2exit 3fidiff --git a/skills/effekseer-vfx/scripts/vfx b/skills/effekseer-vfx/scripts/vfxindex c77b84f..eab6099 100755--- a/skills/effekseer-vfx/scripts/vfx+++ b/skills/effekseer-vfx/scripts/vfx@@ -1,22 +1,38 @@#!/bin/sh# effekseer-vfx command line. Run as `sh <skill>/scripts/vfx <command>`; `vfx --help` lists the commands.# Uses the toolchain installed by setup.sh in EFFEKSEER_VFX_HOME (default ~/.cache/effekseer-vfx).+# On Windows this also works from Git Bash or MSYS2; cmd and PowerShell use vfx.cmd next to this file.set -euSCRIPTS=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)-TOOLCHAIN=${EFFEKSEER_VFX_HOME:-$HOME/.cache/effekseer-vfx}-PYTHON="$TOOLCHAIN/venv/bin/python"+case "$(uname -s)" in+ MINGW*|MSYS*|CYGWIN*)+ # Native Windows Python: hand it Windows paths and ';'-separated lists, and the same default toolchain folder+ # (%USERPROFILE%\.cache\effekseer-vfx) that vfx.cmd and setup.ps1 use.+ TOOLCHAIN=$(cygpath -u "${EFFEKSEER_VFX_HOME:-${USERPROFILE:-$HOME}/.cache/effekseer-vfx}")+ PYTHON="$TOOLCHAIN/venv/Scripts/python.exe"+ winpath() { cygpath -w "$1"; }+ SEP=';' ;;+ *)+ TOOLCHAIN=${EFFEKSEER_VFX_HOME:-$HOME/.cache/effekseer-vfx}+ PYTHON="$TOOLCHAIN/venv/bin/python"+ winpath() { printf '%s\n' "$1"; }+ SEP=':' ;;+esacif [ ! -x "$PYTHON" ]; then# doctor and --help run on the system Python so an agent can find out what to install.- PYTHON=$(command -v python3 || true)+ PYTHON=$(command -v python3 || command -v python || true)if [ -z "$PYTHON" ]; thenecho '{"ok": false, "error": {"type": "SetupRequired", "message": "python3 is not installed"}}'exit 2fifi-export DOTNET_ROOT="$TOOLCHAIN/dotnet"-export EFFEKSEER_AI_BIN_DIR="$TOOLCHAIN/effekseer/Effekseer1.80.7Win/Tool/bin"-export PYTHONPATH="$SCRIPTS${PYTHONPATH:+:$PYTHONPATH}"+export EFFEKSEER_VFX_HOME="$(winpath "$TOOLCHAIN")"+export DOTNET_ROOT="$(winpath "$TOOLCHAIN/dotnet")"+export EFFEKSEER_AI_BIN_DIR="$(winpath "$TOOLCHAIN/effekseer/Effekseer1.80.7Win/Tool/bin")"+export PYTHONPATH="$(winpath "$SCRIPTS")${PYTHONPATH:+$SEP$PYTHONPATH}"export PYTHONDONTWRITEBYTECODE=1# Keep the current directory (the game project) off sys.path: a project file named like a module must not shadow it.export PYTHONSAFEPATH=1+# Read and write every text file as UTF-8, whatever the system locale or Windows code page.+export PYTHONUTF8=1exec "$PYTHON" -m vfxkit "$@"diff --git a/skills/effekseer-vfx/scripts/vfx.cmd b/skills/effekseer-vfx/scripts/vfx.cmdnew file mode 100644index 0000000..bd76816--- /dev/null+++ b/skills/effekseer-vfx/scripts/vfx.cmd@@ -0,0 +1,36 @@+@echo off+rem effekseer-vfx command line for Windows (cmd or PowerShell): <skill>\scripts\vfx.cmd <command>; `vfx.cmd --help` lists+rem the commands. Same as `sh <skill>/scripts/vfx` elsewhere. Uses the toolchain installed by setup.ps1 in+rem EFFEKSEER_VFX_HOME (default %USERPROFILE%\.cache\effekseer-vfx).+setlocal+set "SCRIPTS=%~dp0"+set "SCRIPTS=%SCRIPTS:~0,-1%"+set "TOOLCHAIN=%USERPROFILE%\.cache\effekseer-vfx"+if defined EFFEKSEER_VFX_HOME set "TOOLCHAIN=%EFFEKSEER_VFX_HOME%"+set "PYTHON=%TOOLCHAIN%\venv\Scripts\python.exe"+set "PYARGS="+if exist "%PYTHON%" goto run+rem doctor and --help run on the system Python so an agent can find out what to install.+set "PYTHON=py"+set "PYARGS=-3"+where py >nul 2>nul && goto run+set "PYARGS="+set "PYTHON=python"+where python >nul 2>nul && goto run+echo {"ok": false, "error": {"type": "SetupRequired", "message": "Python is not installed"}}+exit /b 2++:run+set "EFFEKSEER_VFX_HOME=%TOOLCHAIN%"+set "DOTNET_ROOT=%TOOLCHAIN%\dotnet"+set "EFFEKSEER_AI_BIN_DIR=%TOOLCHAIN%\effekseer\Effekseer1.80.7Win\Tool\bin"+set "SEARCH=%SCRIPTS%"+if defined PYTHONPATH set "SEARCH=%SCRIPTS%;%PYTHONPATH%"+set "PYTHONPATH=%SEARCH%"+set "PYTHONDONTWRITEBYTECODE=1"+rem Keep the current directory (the game project) off sys.path: a project file named like a module must not shadow it.+set "PYTHONSAFEPATH=1"+rem Read and write every text file as UTF-8, whatever the system code page (cp936, cp932, cp1252...).+set "PYTHONUTF8=1"+"%PYTHON%" %PYARGS% -m vfxkit %*+exit /b %ERRORLEVEL%diff --git a/skills/effekseer-vfx/scripts/vfxkit/build.py b/skills/effekseer-vfx/scripts/vfxkit/build.pyindex 59af762..15458de 100644--- a/skills/effekseer-vfx/scripts/vfxkit/build.py+++ b/skills/effekseer-vfx/scripts/vfxkit/build.py@@ -3,7 +3,7 @@ from pathlib import Pathimport json, shutil, sysfrom .workflow import lockedfrom .paths import ROOT, WORK-from .primitives import walk, tex, budget, TEXTURE_KEYS+from .primitives import walk, tex, is_path, budget, TEXTURE_KEYSfrom . import ownershipfrom .ownership import MARKER, valid_id, digest@@ -97,7 +97,7 @@ def build(recipes,prune=False):for recipe in recipes:for layer in walk(recipe['layers']):for key in TEXTURE_KEYS:- if layer.get(key) and '/' not in layer[key]:layer[key]=tex(layer[key])+ if layer.get(key) and not is_path(layer[key]):layer[key]=tex(layer[key])missing=sorted({layer[key] for recipe in recipes for layer in walk(recipe['layers']) for key in TEXTURE_KEYS if layer.get(key) and not Path(layer[key]).is_file()})if missing:raise FileNotFoundError('Missing input textures; generate/process them first: '+', '.join(missing))check_output_dirs()diff --git a/skills/effekseer-vfx/scripts/vfxkit/cli.py b/skills/effekseer-vfx/scripts/vfxkit/cli.pyindex 8414cd1..303e3e9 100644--- a/skills/effekseer-vfx/scripts/vfxkit/cli.py+++ b/skills/effekseer-vfx/scripts/vfxkit/cli.py@@ -12,7 +12,7 @@ from pathlib import PathCOMMANDS = """setup and workspace: doctor, init, examples, proceduralauthoring (no Core): list, lint, layer-schema, texture-info, texture-audit, process-texture, brief-validate, effect-context-build (Core, macOS): build, compile, export, discover, core+build (Core): build, compile, export, discover, corereview (Godot): review, overview, strip, frames, history, rubric, review-handoff, review-submit, effect-verify, preview, showcase, packagereference clips: reference-import, reference-frames, reference-compare"""@@ -284,7 +284,8 @@ def main(argv=None):try:from effekseer_ai.cli import main as core_mainexcept ModuleNotFoundError as error:- print(json.dumps({'ok': False, 'error': {'type': 'SetupRequired', 'message': f'{error}. Run scripts/setup.sh.'}}))+ from .paths import setup_command+ print(json.dumps({'ok': False, 'error': {'type': 'SetupRequired', 'message': f'{error}. Run {setup_command()}.'}}))return 2try:return core_main(rest[1:] or ['--help'])@@ -308,7 +309,8 @@ def main(argv=None):else:result = run(args)except ModuleNotFoundError as error:- print(json.dumps({'ok': False, 'error': {'type': 'SetupRequired', 'message': f'{error}. Run scripts/setup.sh (add --authoring-only off macOS).'}}))+ from .paths import setup_command, full_mode_platform+ print(json.dumps({'ok': False, 'error': {'type': 'SetupRequired', 'message': f'{error}. Run {setup_command(authoring_only=not full_mode_platform())}.'}}))return 2except Exception as error:print(json.dumps({'ok': False, 'error': {'type': type(error).__name__, 'message': str(error)}}, ensure_ascii=False))diff --git a/skills/effekseer-vfx/scripts/vfxkit/doctor.py b/skills/effekseer-vfx/scripts/vfxkit/doctor.pyindex 592c93f..e621c7a 100644--- a/skills/effekseer-vfx/scripts/vfxkit/doctor.py+++ b/skills/effekseer-vfx/scripts/vfxkit/doctor.py@@ -4,8 +4,8 @@ import jsonimport platformimport shutilimport subprocess-import sys-from .paths import ROOT, WORKSPACE, WORK, HOME, CORE_BIN, SKILL, godot, initialized+from pathlib import Path+from .paths import ROOT, WORKSPACE, WORK, HOME, CORE_BIN, DOTNET, WINDOWS, godot, initialized, full_mode_platform, setup_commandfrom .ownership import owned, unmanaged@@ -17,28 +17,32 @@ def version(command):def setup_python():- """What setup.sh would use for the toolchain: uv, else a Python 3.11+ (same search order as setup.sh)."""+ """What setup.sh (setup.ps1 on Windows) would use for the toolchain: uv, else a Python 3.11+ (same search order)."""if shutil.which('uv'):return 'uv'- for candidate in ('python3.13', 'python3.12', 'python3.11', '/opt/homebrew/bin/python3', '/usr/local/bin/python3', 'python3'):- found = shutil.which(candidate)+ check = ['-c', 'import sys; sys.exit(0 if sys.version_info >= (3, 11) else 1)']+ if WINDOWS: # the py launcher picks an installed version; `python` may be the Microsoft Store stub+ candidates = [(['py', f'-3.{minor}'], 'py') for minor in (13, 12, 11)] + [([name], name) for name in ('python', 'python3')]+ else:+ candidates = [([name], name) for name in ('python3.13', 'python3.12', 'python3.11', '/opt/homebrew/bin/python3', '/usr/local/bin/python3', 'python3')]+ for prefix, name in candidates:+ found = shutil.which(name)if found:try:- ok = subprocess.run([found, '-c', 'import sys; sys.exit(0 if sys.version_info >= (3, 11) else 1)'],- capture_output=True, timeout=20).returncode == 0+ ok = subprocess.run([found, *prefix[1:], *check], capture_output=True, timeout=20).returncode == 0except (OSError, subprocess.SubprocessError):ok = Falseif ok:- return found+ return ' '.join([found, *prefix[1:]])return Nonedef doctor():- mac_arm = sys.platform == 'darwin' and platform.machine() == 'arm64'+ full = full_mode_platform()python_deps = {m: importlib.util.find_spec(m) is not None for m in ('numpy', 'PIL', 'jsonschema', 'clr_loader')}- dotnet = HOME / 'dotnet/dotnet'+ dotnet = DOTNETgodot_cmd = godot()- godot_version = version([godot_cmd, '--version']) if shutil.which(godot_cmd) or godot_cmd.startswith('/') else None+ godot_version = version([godot_cmd, '--version']) if shutil.which(godot_cmd) or Path(godot_cmd).is_file() else Nonecore = (CORE_BIN / 'EffekseerCore.dll').is_file()authoring = all(python_deps[m] for m in ('numpy', 'PIL', 'jsonschema'))build = authoring and python_deps['clr_loader'] and core and dotnet.is_file()@@ -53,13 +57,14 @@ def doctor():next_steps = []installer = setup_python() if not authoring else Noneif not authoring and not installer:- next_steps.append('setup needs Python 3.11+ or uv, and neither was found (macOS ships Python 3.9): ask the user to '- 'install uv (https://docs.astral.sh/uv/getting-started/installation/) or `brew install [email protected]`')+ python_hint = ('`winget install Python.Python.3.12`' if WINDOWS else '`brew install [email protected]`')+ next_steps.append('setup needs Python 3.11+ or uv, and neither was found' + ('' if WINDOWS else ' (macOS ships Python 3.9)') ++ ': ask the user to install uv (https://docs.astral.sh/uv/getting-started/installation/) or ' + python_hint)if not authoring:- next_steps.append(f'sh {SKILL}/scripts/setup.sh' + ('' if mac_arm else ' --authoring-only'))- elif mac_arm and not build:- next_steps.append(f'sh {SKILL}/scripts/setup.sh (downloads Effekseer Core and the .NET runtime)')- if mac_arm and authoring and not godot_version:+ next_steps.append(setup_command(authoring_only=not full))+ elif full and not build:+ next_steps.append(setup_command() + ' (downloads Effekseer Core and the .NET runtime)')+ if full and authoring and not godot_version:next_steps.append('install Godot 4.x (Forward+) and put it on PATH or set GODOT')if WORKSPACE.is_dir() and not workspace['initialized']:next_steps.append(f'{WORKSPACE} exists but was not created by vfx init: check this is the game project (or pass --project) '@@ -68,12 +73,12 @@ def doctor():next_steps.append('vfx init' + ('' if render else ' --no-plugin'))return {'ok': True,'platform': {'system': platform.system(), 'machine': platform.machine(), 'python': platform.python_version(),- 'full_mode_supported': mac_arm},+ 'full_mode_supported': full},'modes': {'authoring': authoring, 'build': build, 'render': render},'toolchain': {'home': str(HOME), 'python_packages': python_deps, 'setup_python': installer if not authoring else 'installed', 'effekseer_core': core, 'dotnet': dotnet.is_file(),'godot': godot_version, 'ffmpeg': bool(shutil.which('ffmpeg'))},'project': str(ROOT), 'workspace': workspace,'note': 'authoring = write recipes, lint, textures and briefs; build = compile through EffekseerCore; render = Godot review strips. '- 'Build and render are verified on macOS ARM64 only. render: true means Godot was found; review still needs a window '+ 'Build and render are verified on macOS ARM64 and Windows x64 (Windows ARM64 is set up but unverified). render: true means Godot was found; review still needs a window ''on the logged-in desktop, so a sandboxed agent must run review/preview/showcase outside its sandbox.','next': next_steps}diff --git a/skills/effekseer-vfx/scripts/vfxkit/evidence.py b/skills/effekseer-vfx/scripts/vfxkit/evidence.pyindex 97375a3..01c7fb0 100644--- a/skills/effekseer-vfx/scripts/vfxkit/evidence.py+++ b/skills/effekseer-vfx/scripts/vfxkit/evidence.py@@ -10,7 +10,7 @@ from pathlib import Pathimport subprocessimport uuidfrom . import workflow-from .paths import ASSETS, SCRIPTS, CORE_BIN+from .paths import ASSETS, SCRIPTS, CORE_BIN, WINDOWSRUBRIC = ASSETS / 'review_rubric.json'LAB = ASSETS / 'godot-lab'@@ -31,11 +31,11 @@ def current_recipe(rid):def prepared(recipe):- from .primitives import walk, TEXTURE_KEYS+ from .primitives import walk, TEXTURE_KEYS, is_pathresult = copy.deepcopy(recipe)for layer in walk(result['layers']):for key in TEXTURE_KEYS:- if layer.get(key) and '/' not in layer[key]:+ if layer.get(key) and not is_path(layer[key]):layer[key] = str(workflow.ROOT / f'vfx/textures/processed/{layer[key]}.png')profile = {'Add': 'M_Additive', 'Blend': 'M_Alpha', 'Sub': 'M_Subtractive'}.get(layer.get('blend', 'Add'))if profile:@@ -123,12 +123,17 @@ def build_issues(rid, recipe=None):return issues+# What the Lab stage is made of. The Effekseer plugin's native library is libeffekseer (a macOS framework binary) or,+# on Windows, bin/windows/libeffekseer.<arch>.dll.+STAGE_SUFFIXES = ('.gd', '.gdshader', '.godot', '.tscn', '.gde', '.gdextension', '.dylib', '.glb', '.json', '.cfg') + (('.dll',) if WINDOWS else ())++def stage_snapshot():paths = []for folder in (LAB, workflow.ROOT / 'vfx/godot'):paths.extend(p for p in folder.rglob('*') if p.is_file()and '.godot' not in p.relative_to(folder).parts- and (p.suffix in ('.gd', '.gdshader', '.godot', '.tscn', '.gde', '.gdextension', '.dylib', '.glb', '.json', '.cfg') or p.name == 'libeffekseer')+ and (p.suffix in STAGE_SUFFIXES or p.name == 'libeffekseer')and 'effects' not in p.relative_to(folder).partsand p.name != 'vfx_manifest.json')paths += [SCRIPTS / 'vfxkit' / n for n in ('review.py', 'briefs.py', 'evidence.py')]diff --git a/skills/effekseer-vfx/scripts/vfxkit/filelock.py b/skills/effekseer-vfx/scripts/vfxkit/filelock.pynew file mode 100644index 0000000..a7d03a7--- /dev/null+++ b/skills/effekseer-vfx/scripts/vfxkit/filelock.py@@ -0,0 +1,31 @@+"""Exclusive, blocking, cross-process file locks on macOS, Linux and Windows. Standard library only.++POSIX uses flock(2); Windows locks the first byte of the file with msvcrt. Either way the kernel releases the lock when+the process exits, so a crashed run never leaves a lock behind and nothing is deleted to take one over.+"""+import os+import time++if os.name == 'nt':+ import msvcrt++ def acquire(stream):+ stream.seek(0)+ while True:+ try:+ msvcrt.locking(stream.fileno(), msvcrt.LK_NBLCK, 1)+ return+ except OSError: # held by another process: wait like flock(LOCK_EX) does+ time.sleep(.05)++ def release(stream):+ stream.seek(0)+ msvcrt.locking(stream.fileno(), msvcrt.LK_UNLCK, 1)+else:+ import fcntl++ def acquire(stream):+ fcntl.flock(stream, fcntl.LOCK_EX)++ def release(stream):+ fcntl.flock(stream, fcntl.LOCK_UN)diff --git a/skills/effekseer-vfx/scripts/vfxkit/paths.py b/skills/effekseer-vfx/scripts/vfxkit/paths.pyindex f25696d..7c58e1a 100644--- a/skills/effekseer-vfx/scripts/vfxkit/paths.py+++ b/skills/effekseer-vfx/scripts/vfxkit/paths.py@@ -26,16 +26,41 @@ HOME = Path(os.environ.get('EFFEKSEER_VFX_HOME') or Path.home() / '.cache/effeksEFFEKSEER_VERSION = '1.80.7'CORE_BIN = HOME / 'effekseer/Effekseer1.80.7Win/Tool/bin'DOWNLOADS = HOME / 'downloads'+WINDOWS = os.name == 'nt'+# The toolchain's Python and .NET host: Windows venvs keep executables in Scripts\ and add .exe.+VENV_PYTHON = HOME / ('venv/Scripts/python.exe' if WINDOWS else 'venv/bin/python')+DOTNET = HOME / ('dotnet/dotnet.exe' if WINDOWS else 'dotnet/dotnet')+++def full_mode_platform():+ """Where build and render (EffekseerCore through .NET, the Effekseer Godot plugin) are supported:+ macOS on Apple silicon and Windows on x64 or ARM64."""+ import platform+ import sys+ machine = platform.machine().lower()+ if sys.platform == 'darwin':+ return machine == 'arm64'+ return WINDOWS and machine in ('amd64', 'x86_64', 'arm64')+++def setup_command(authoring_only=False):+ """How to run setup on this system, as a command an agent can run from the project."""+ flag = ' --authoring-only' if authoring_only else ''+ if WINDOWS:+ return f'powershell -NoProfile -ExecutionPolicy Bypass -File "{SCRIPTS / "setup.ps1"}"{flag}'+ return f'sh {SCRIPTS}/setup.sh{flag}'def godot():- """Godot 4 executable: GODOT, then `godot` on PATH, then the standard macOS application bundle."""+ """Godot 4 executable: GODOT, then `godot` (or `godot4`) on PATH, then the standard macOS application bundle.+ Windows has no standard location (the official download is a loose .exe): use PATH (Scoop, winget) or GODOT."""import shutilconfigured = os.environ.get('GODOT')if configured:return configured- found = shutil.which('godot')- if found:- return found+ for name in ('godot', 'godot4'):+ found = shutil.which(name)+ if found:+ return foundbundle = Path('/Applications/Godot.app/Contents/MacOS/Godot')return str(bundle) if bundle.is_file() else 'godot'diff --git a/skills/effekseer-vfx/scripts/vfxkit/primitives.py b/skills/effekseer-vfx/scripts/vfxkit/primitives.pyindex d945068..0ee2ffe 100644--- a/skills/effekseer-vfx/scripts/vfxkit/primitives.py+++ b/skills/effekseer-vfx/scripts/vfxkit/primitives.py@@ -12,6 +12,9 @@ TEXTURE_KEYS=['texture','alpha_texture','distortion_texture','blend_texture']WHITE=(255,255,255,255)def tex(name):return str(T/f'{name}.png')+def is_path(value):+ """A texture already resolved to a file path (tex() returns native paths: backslashes on Windows), not a bare stem."""+ return '/' in value or '\\' in valuedef fade(color,alpha=0):return [*color[:3],alpha]def walk(layers):for layer in layers:@@ -360,4 +363,4 @@ def contrast_pair(layer, dark_color=(32, 24, 20, 210)):dark['color_curve']['A']=[[frame,value*dark_color[3]/255] for frame,value in alpha]return [dark, bright]-__all__=[name for name in dir() if not name.startswith('_') and name not in ('Path','math','ROOT','T')]+['math']+__all__=[name for name in dir() if not name.startswith('_') and name not in ('Path','math','ROOT','T','is_path')]+['math']diff --git a/skills/effekseer-vfx/scripts/vfxkit/scaffold.py b/skills/effekseer-vfx/scripts/vfxkit/scaffold.pyindex c7eff3e..336e220 100644--- a/skills/effekseer-vfx/scripts/vfxkit/scaffold.py+++ b/skills/effekseer-vfx/scripts/vfxkit/scaffold.py@@ -1,7 +1,6 @@"""Create or refresh the project's vfx/ workspace from the skill's Lab template and material profiles."""from contextlib import contextmanagerfrom pathlib import Path-import fcntlimport hashlibimport jsonimport os@@ -11,6 +10,7 @@ import urllib.requestimport zipfilefrom .paths import ROOT, ASSETS, DOWNLOADSfrom .ownership import guard+from . import filelockPLUGIN_URL = 'https://github.com/effekseer/EffekseerForGodot4/releases/download/1.80.5.1/EffekseerForGodot4-180_5_1.zip'PLUGIN_SHA256 = '1a4987f748156b4707659e9b96b9e28dad42614e2862dc63ec0da8408e089cb6'@@ -33,11 +33,11 @@ def toolchain_lock():"""Serialise downloads into the shared EFFEKSEER_VFX_HOME across projects and processes."""DOWNLOADS.mkdir(parents=True, exist_ok=True)with (DOWNLOADS / '.lock').open('a') as stream:- fcntl.flock(stream, fcntl.LOCK_EX)+ filelock.acquire(stream)try:yieldfinally:- fcntl.flock(stream, fcntl.LOCK_UN)+ filelock.release(stream)def download(url, sha256, target):diff --git a/skills/effekseer-vfx/scripts/vfxkit/workflow.py b/skills/effekseer-vfx/scripts/vfxkit/workflow.pyindex 7eb195d..1b2f1f5 100644--- a/skills/effekseer-vfx/scripts/vfxkit/workflow.py+++ b/skills/effekseer-vfx/scripts/vfxkit/workflow.py@@ -1,10 +1,6 @@"""Shared portable storage and a reentrant, cross-process workspace lock."""from contextlib import contextmanagerfrom pathlib import Path-try:- import fcntl-except ImportError as error: # native Windows: the workspace lock needs POSIX file locks- raise ImportError('effekseer-vfx needs macOS or Linux; on Windows run it inside WSL') from errorimport functoolsimport hashlibimport json@@ -14,6 +10,7 @@ import tempfileimport threadingfrom .paths import ROOT, SKILL, HOME, WORK+from . import filelock_mutex = threading.RLock()_local = threading.local()@@ -92,13 +89,13 @@ def project_lock():path = WORK / 'project.lock'path.parent.mkdir(parents=True, exist_ok=True)with path.open('a') as stream:- fcntl.flock(stream, fcntl.LOCK_EX)+ filelock.acquire(stream)_local.depth = 1try:yieldfinally:_local.depth = 0- fcntl.flock(stream, fcntl.LOCK_UN)+ filelock.release(stream)def locked(function):diff --git a/tests/conftest.py b/tests/conftest.pyindex a240495..4cf6d65 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -45,6 +45,22 @@ from vfxkit import scaffold, examples # noqa: E402scaffold.initialize(install_plugin=False)examples.add('all')+++def _can_symlink():+ probe = Path(tempfile.mkdtemp(prefix='vfx-link-probe-'))+ try:+ (probe / 'link').symlink_to(probe / 'target')+ return True+ except OSError: # Windows without Developer Mode or administrator rights+ return False+ finally:+ shutil.rmtree(probe, True)+++requires_symlinks = pytest.mark.skipif(not _can_symlink(), reason='creating symlinks needs Developer Mode or administrator rights on Windows')+posix_only = pytest.mark.skipif(os.name == 'nt', reason='POSIX sh scripts; Windows uses vfx.cmd and setup.ps1')+windows_only = pytest.mark.skipif(os.name != 'nt', reason='Windows launchers')CORE_READY = bool(os.environ.get('EFFEKSEER_AI_BIN_DIR') and (Path(os.environ['EFFEKSEER_AI_BIN_DIR']) / 'EffekseerCore.dll').is_file())requires_core = pytest.mark.skipif(not CORE_READY, reason='Initialize the local EffekseerCore runtime first (sh scripts/setup.sh)')diff --git a/tests/test_package.py b/tests/test_package.pyindex df911ac..6354e7e 100644--- a/tests/test_package.py+++ b/tests/test_package.py@@ -8,7 +8,7 @@ from pathlib import Pathimport pytest-from conftest import SCRIPTS, SKILL, cli_env+from conftest import SCRIPTS, SKILL, cli_env, posix_only, windows_onlydef vfx(*args, cwd=None, env=None):@@ -26,6 +26,7 @@ def system_python():return None+@posix_onlydef test_doctor_runs_through_the_wrapper_on_a_bare_system_python(tmp_path):python = system_python()if not python:@@ -47,6 +48,43 @@ def test_doctor_runs_through_the_wrapper_on_a_bare_system_python(tmp_path):assert result['next'], 'doctor must say what to do next on an empty machine'++@windows_only+def test_doctor_runs_through_vfx_cmd_on_a_bare_system_python(tmp_path):+ if not (shutil.which('py') or shutil.which('python')):+ pytest.skip('no system Python for vfx.cmd to fall back to')+ # An empty toolchain home: vfx.cmd falls back to the py launcher (or python) and doctor needs only the standard library.+ keep = ('SYSTEMROOT', 'WINDIR', 'COMSPEC', 'PATH', 'PATHEXT', 'USERPROFILE', 'LOCALAPPDATA', 'APPDATA', 'TEMP', 'TMP')+ env = {**{k: os.environ[k] for k in keep if k in os.environ},+ 'EFFEKSEER_VFX_HOME': str(tmp_path / 'toolchain'), 'VFX_PROJECT': str(tmp_path / 'game')}+ run = subprocess.run([str(SCRIPTS / 'vfx.cmd'), 'doctor'], capture_output=True, text=True, env=env, cwd=tmp_path, timeout=120)+ assert run.returncode == 0, run.stderr+ result = json.loads(run.stdout)+ assert result['ok'] is True and set(result['modes']) == {'authoring', 'build', 'render'}+ assert result['project'] == str((tmp_path / 'game').resolve())+ assert result['toolchain']['home'] == str((tmp_path / 'toolchain').resolve())+ assert not result['toolchain']['effekseer_core'] and not result['modes']['build']+ assert any('setup.ps1' in step for step in result['next']), result['next']+++@windows_only+def test_setup_ps1_rejects_unknown_options_before_touching_anything(tmp_path):+ home = tmp_path / 'toolchain'+ run = subprocess.run(['powershell', '-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', str(SCRIPTS / 'setup.ps1'), '--bogus'],+ capture_output=True, text=True, env={**os.environ, 'EFFEKSEER_VFX_HOME': str(home)}, timeout=120)+ assert run.returncode == 2 and '--authoring-only' in run.stderr, run.stderr+ assert not home.exists()+++def test_launchers_keep_the_line_endings_their_shells_need():+ # A Windows clone with core.autocrlf would give the sh scripts CRLF (sh then fails on `set -eu\r`); .gitattributes+ # pins LF for them and CRLF for the batch launcher. Windows PowerShell reads a script without a BOM as ANSI: keep it ASCII.+ for name in ('vfx', 'setup.sh'):+ assert b'\r' not in (SCRIPTS / name).read_bytes(), name+ assert b'\r\n' in (SCRIPTS / 'vfx.cmd').read_bytes()+ assert (SCRIPTS / 'setup.ps1').read_bytes().isascii()++def test_doctor_reports_an_initialised_workspace(project):code, result = vfx('--project', str(project), 'doctor')assert code == 0 and result['modes']['authoring']diff --git a/tests/test_pipeline.py b/tests/test_pipeline.pyindex 8538ab6..8c92761 100644--- a/tests/test_pipeline.py+++ b/tests/test_pipeline.py@@ -223,7 +223,7 @@ def test_manifest_matches_assets_and_particle_lifetimes():def test_library_recipes_are_valid_without_core_or_assets():- from vfxkit.primitives import lifetime, budget, walk, TEXTURE_KEYS+ from vfxkit.primitives import lifetime, budget, walk, is_path, TEXTURE_KEYSfrom vfxkit.library import libraryfrom vfxkit.textures import masks, EXTRA_PROCEDURALfrom vfxkit.paths import ROOT@@ -241,7 +241,7 @@ def test_library_recipes_are_valid_without_core_or_assets():# Every input is either a math primitive or has a recorded image prompt; nothing is undocumented.if layer.get(key):assert Path(layer[key]).stem in available, (recipe['id'], layer[key])- resolved = Path(layer[key]) if '/' in layer[key] else ROOT / f'vfx/textures/processed/{layer[key]}.png'+ resolved = Path(layer[key]) if is_path(layer[key]) else ROOT / f'vfx/textures/processed/{layer[key]}.png'assert resolved.is_file(), (recipe['id'], layer[key])diff --git a/tests/test_safety.py b/tests/test_safety.pyindex 6267d1d..8bfa293 100644--- a/tests/test_safety.py+++ b/tests/test_safety.py@@ -6,7 +6,7 @@ import sysimport pytest-from conftest import SCRIPTS, SKILL, cli_env, requires_core+from conftest import SCRIPTS, SKILL, cli_env, requires_core, requires_symlinks, posix_onlyfrom test_package import vfx@@ -155,6 +155,7 @@ def test_ownership_needs_the_marker_or_a_matching_receipt(owned_workspace):assert not owned({'id': 'VFX_Old'})+@requires_symlinksdef test_removal_refuses_paths_that_resolve_outside_the_workspace(owned_workspace, tmp_path_factory):from vfxkit.build import removableroot = owned_workspace@@ -232,6 +233,7 @@ def test_a_build_never_replaces_a_resource_another_built_effect_uses(tmp_path):assert (root / 'vfx/effects/resources/T_Impact01.png').read_bytes() == before+@requires_symlinksdef test_output_folders_that_resolve_outside_the_workspace_are_refused(owned_workspace, tmp_path_factory):from vfxkit.build import check_output_dirsroot = owned_workspace@@ -295,6 +297,7 @@ def test_setup_locks_with_the_kernel_not_a_lock_directory():assert 'mkdir "$LOCK"' not in setup and 'rm -rf "$LOCK"' not in setup+@requires_symlinksdef test_missing_output_folders_under_an_outside_link_are_refused(owned_workspace, tmp_path_factory):from vfxkit.build import check_output_dirsroot = owned_workspace@@ -304,6 +307,7 @@ def test_missing_output_folders_under_an_outside_link_are_refused(owned_workspaccheck_output_dirs()+@requires_symlinksdef test_file_links_that_lead_outside_are_never_written(owned_workspace, tmp_path_factory):from vfxkit.build import check_targetsroot = owned_workspace@@ -367,6 +371,7 @@ def test_case_aliases_with_the_same_content_keep_every_spelling(tmp_path):assert set(found) == {'T_Glow.png', 't_glow.png'}+@requires_symlinks@pytest.mark.parametrize('linked', ['godot/vfx_manifest.json', 'texture_prompts.json'])def test_init_never_writes_through_a_link_that_leads_outside(tmp_path, tmp_path_factory, linked):root = game(tmp_path)@@ -392,6 +397,7 @@ def test_resource_names_compare_in_unicode_normal_form(tmp_path):assert may_use(effect, composed)+@requires_symlinksdef test_json_stores_never_write_through_a_pre_placed_temporary_link(tmp_path, tmp_path_factory, monkeypatch):import osfrom vfxkit import workflow@@ -406,6 +412,7 @@ def test_json_stores_never_write_through_a_pre_placed_temporary_link(tmp_path, tassert not [p for p in (tmp_path / 'vfx/work').iterdir() if p.name.endswith('.tmp') and not p.is_symlink()]+@posix_onlydef test_setup_without_a_new_enough_python_stops_clearly_and_drops_a_stale_env(tmp_path):import osimport shutil as shdiff --git a/tests/test_workflow.py b/tests/test_workflow.pyindex c82062b..946401a 100644--- a/tests/test_workflow.py+++ b/tests/test_workflow.py@@ -1,6 +1,7 @@"""Workflow contracts: no stale evidence, dropped key moments or unlabelled reference clocks."""import copyimport json+import osfrom pathlib import Pathimport shutilimport subprocess@@ -251,7 +252,8 @@ def test_project_lock_serializes_two_independent_processes(tmp_path):owner_code = common + '\nwith workflow.project_lock():\n print("held",flush=True)\n sys.stdin.readline()\n'contender_code = common + '\nwith workflow.project_lock():\n print("acquired",flush=True)\n'args = [str(SCRIPTS), str(tmp_path)]- env = {'VFX_PROJECT': str(tmp_path), 'PYTHONDONTWRITEBYTECODE': '1', 'PATH': '/usr/bin:/bin'}+ env = {'VFX_PROJECT': str(tmp_path), 'EFFEKSEER_VFX_HOME': str(tmp_path / 'toolchain'), 'PYTHONDONTWRITEBYTECODE': '1', 'PATH': '/usr/bin:/bin',+ **{k: os.environ[k] for k in ('SYSTEMROOT',) if k in os.environ}} # Windows needs SYSTEMROOT to start Pythonowner = subprocess.Popen([sys.executable, '-c', owner_code, *args], stdin=subprocess.PIPE, stdout=subprocess.PIPE, text=True, env=env)contender = Nonetry: