from pathlib import Path
import subprocess,sys
w=Path(sys.argv[1])
for relative,old,new in [('.claude/skills/finalize/SKILL.md','Finalize the fixture change','Branch-only fixture inventory'),('.claude/commands/finalize-command.md','Finalize the synthetic command fixture','Branch-only synthetic command inventory')]:
    f=w/relative
    f.write_text(f.read_text().replace(old,new))
subprocess.run(['git','add','.'],cwd=w,check=True)
subprocess.run(['git','commit','-m','fixture: distinguish branch inventory'],cwd=w,check=True)
