from pyskills.core import xdir, __pytools__
import kosha.skillskill
Registers kosha as a pyskill so LLM hosts can discover and use the Kosha API.
# Verify Kosha is accessible and allow is registered
assert 'Kosha' in xdir(kosha.skill), f"Kosha not in xdir: {xdir(kosha.skill)}"
assert Kosha in __pytools__, f"Kosha not registered in __pytools__"
print("skill module ok")skill module ok
from pyskills.core import list_pyskills# list_pyskills keys are ep.value (module path), so 'kosha.skill' not 'kosha'
skills = list_pyskills()
assert 'kosha.skill' in skills, f"'kosha.skill' not found in pyskills: {list(skills.keys())}"
print(f"kosha pyskill registered: {skills['kosha.skill'][:60]}")kosha pyskill registered: Registers kosha as a pyskill so LLM hosts can discover and u
<unknown>:1: SyntaxWarning: invalid escape sequence '\s'