Professional Blender 5.2 workflows as Agent Skills for Claude Code, Codex, Gemini CLI, Copilot and Cursor: modeling, UVs, PBR, baking, rigging, animation, export and QA.
Python 3dagent-skillsai-agentsblenderblender-pythonbpyclaude-codeclaude-skillscodexgame-assetsgemini-cligodotmcppbrriggingrobloxunityunreal-engine
#!/usr/bin/env python3
"""Copy shared/_bpyx.py into every skills/*/scripts/ folder that has Blender scripts.
Usage: python tools/sync_shared.py [--check] (--check: exit 1 if any copy is stale)
"""
import pathlib
import re
import sys
ROOT = pathlib.Path(__file__).resolve().parent.parent
SRC = ROOT / "shared" / "_bpyx.py"
def targets():
for d in sorted((ROOT / "skills").glob("*/scripts")):
if any(p.name != "_bpyx.py" and re.search(r"^import bpy", p.read_text("utf-8"), re.M) for p in d.glob("*.py")):
yield d / "_bpyx.py"
def main():
src = SRC.read_bytes()
stale = [t for t in targets() if not t.exists() or t.read_bytes() != src]
if "--check" in sys.argv:
for t in stale:
print(f"stale: {t.relative_to(ROOT)}")
return 1 if stale else 0
for t in stale:
t.write_bytes(src)
print(f"synced {t.relative_to(ROOT)}")
return 0
if __name__ == "__main__":
sys.exit(main())