소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 24일 00:19
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill hermetic-python-testing명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Cross-server agent health monitoring using binary status vectors — deploy health endpoints on each agent, poll from orchestrator, alert on state transitions.
Wire a self-hosted Langfuse instance to Hermes Agent — generate API keys, configure env vars, enable the bundled plugin, install SDK, and verify traces flow.
Use before enforcement code changes or shared-repo commits.
SKILL.md 표시 중
| name | hermetic-python-testing |
| description | Write Python modules with hermetic unit-test seams. |
| version | 1.0.0 |
| category | software-development |
| author | Hermes Cortex |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["testing","python","isolation","hermetic","unit-test","seams"],"related_skills":["test-driven-development","codebase-design","survey-before-action"]}} |
Write Python modules so their unit tests never touch real state, real
credentials, or real network — and prove it. Born from telegram_notify S2
(2026-08-08): tests silently wrote to ~/.hermes-cortex/state/ and read the
real ~/.hermes/.env until the module was restructured.
# ❌ BAD — frozen at import; tests setting the env var after import hit REAL paths
STATE_FILE = Path(os.environ.get("MY_STATE_DIR", Path.home() / ".x")) / "state.json"
# ✅ GOOD — resolved per call; tests point it at tmp_path via monkeypatch.setenv
def _state_file() -> Path:
return Path(os.environ.get("MY_STATE_DIR", Path.home() / ".x")) / "state.json"
Import-time constants freeze the path for the whole process. Tests that set
env vars AFTER import (the standard monkeypatch.setenv pattern) silently
read/write the real location. Symptom to watch for: a module's real log file
or state JSON appears in ~/.hermes-cortex/state/ after a test run.
def _now() -> float: return time.time()
def _sleep(s: float) -> None: time.sleep(s)
def _send_once(token, chat_id, text): ... # the network boundary
Tests patch these module attributes:
with patch.object(tn, "_now", side_effect=fake_now), \
patch.object(tn, "_send_once", side_effect=fake_send):
...
This tests coalescing windows, retry budgets, and backoff with a fake clock and zero network.
Every test that exercises the module gets its own tmp state dir and a fake env file:
def _setup(tmp_path, monkeypatch, chat="111222333", quiet="", mute=""):
state_dir = tmp_path / "state"; state_dir.mkdir(exist_ok=True)
env_file = tmp_path / "env"
env_file.write_text(f"TELEGRAM_BOT_TOKEN=123456:TESTTOKEN\nTELEGRAM_HOME_CHANNEL={chat}\n")
monkeypatch.setenv("MY_STATE_DIR", str(state_dir))
monkeypatch.setenv("MY_ENV_FILE", str(env_file))
return state_dir, env_file
After the suite is green, confirm no real resources were touched:
/home/<user>/ paths) — placeholder values onlypytest tests/test_<module>_unit.py -q → all passgrep -nE "<real-chat-id>|<real-host>|/home/<user>/" tests/ → no hits111222333)
looks like an arbitrary integer and sails through the secret-leak detector;
the scanner only flags /home/<user>/ paths and emails. Use placeholders
(111222333) and grep for the real id before committing.if __name__ == "__main__" self-test should also go
through the same seams, or it will hit real resources when run manually.