"""research-agent — Hermes plugin entry point.
Hermes loads this module from ~/.hermes/plugins/research-agent/ and calls
register(ctx) once at startup. Bundled skills under skills/ are
registered here so the agent can load them via skill_view("research-agent:<skill>").
"""
from pathlib import Path
def register(ctx):
"""Register bundled skills with the Hermes plugin manager."""
skills_dir = Path(__file__).parent / "skills"
for child in sorted(skills_dir.iterdir()):
skill_md = child / "SKILL.md"
if child.is_dir() and skill_md.exists():
ctx.register_skill(child.name, skill_md)