← Files AI PsychiatryARCHIVED FILE
tests/helpers.py
599 Bytes · Oct 2, 2026 · 00:30 UTC
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[1]
def load_json(path: Path):
return json.loads(path.read_text(encoding="utf-8"))
def read(path: Path):
return path.read_text(encoding="utf-8")
def public_skill(name: str) -> Path:
"""AI-Psychiatry ships ONE plugin skill; every other public skill is a
reference inside it (see scripts/validate_framework.public_skill_path)."""
if name == "all-the-medicine":
return REPO / "skills/all-the-medicine/SKILL.md"
return REPO / f"skills/all-the-medicine/references/skills/{name}/{name}.md"
SHA-256: ae7b074698f4c4c8feb82da910e1b1162d21e8beabb91dd667bee92ac5a7dd44