#!/usr/bin/env python3 """Execute a canonical skill-local runtime script from a repository wrapper.""" from __future__ import annotations import os import sys from pathlib import Path def execute(name: str) -> None: root = Path(__file__).resolve().parent.parent target = root / "skills" / "technical-doc-flow" / "scripts" / name if not target.is_file(): print(f"error: canonical runtime script is missing: {target}", file=sys.stderr) raise SystemExit(2) os.execv(sys.executable, [sys.executable, str(target), *sys.argv[1:]])