grounded-citations Skill

Ground answers and documents in cited, verifiable sources.

Install
npx skills add 'https://github.com/NousResearch/hermes-agent/tree/main/skills/research/grounded-citations'
Download bundle ↓
View on GitHub
← Back to SKILL.md
"""Resolve HERMES_HOME for standalone skill scripts. Skill scripts may run outside the Hermes process (system Python, nix env,CI) where ``hermes_constants`` is not importable.  This module provides thesame ``get_hermes_home()`` contract without requiring it on ``sys.path``. When ``hermes_constants`` IS available it is used directly so profileresolution and any future enhancements are picked up automatically.""" from __future__ import annotations import osfrom pathlib import Path try:    from hermes_constants import get_hermes_home as get_hermes_homeexcept (ModuleNotFoundError, ImportError):     def get_hermes_home() -> Path:        """Return the Hermes home directory (default: ``~/.hermes``)."""        val = os.environ.get("HERMES_HOME", "").strip()        return Path(val) if val else Path.home() / ".hermes"