init: document-haness 설계
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/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:]])
|
||||
Reference in New Issue
Block a user