소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 20일 19:48
- 감지된 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 cron-timezone-env명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | cron-timezone-env |
| description | Cron timestamps follow HERMES_TIMEZONE env, never hardcoded. |
| version | 1.0.0 |
| category | devops |
| author | Hermes Cortex (Esther) |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["cron","timezone","env","hermes-tz","kst","audit"],"related_skills":["cron-job-management","cron-format-standard","shell-scripting"]}} |
Every cron output timestamp (headers, log lines, delivered messages) must
derive from the host's configured timezone via the HERMES_TIMEZONE env var
(IANA name, e.g. Asia/Seoul) — never hardcode KST, Asia/Seoul, or
timedelta(hours=9) in a script or LLM prompt template. The env var is the
single source of truth; system local time is the fallback when unset.
HERMES_TIMEZONE env → (upstream hermes_time.py also checks config.yaml timezone key) → system local time (datetime.now().astimezone() / date). Both the upstream hermes_time.py and the cortex hermes_tz.py implement this; scripts should call hermes_tz directly.
hermes_tz.py, deployed alongside scripts)from hermes_tz import format_timestamp, get_timezone
ts = format_timestamp("%Y-%m-%d %H:%M %Z") # → "2026-08-20 10:36 KST"
ts = format_timestamp("[%Y-%m-%d %H:%M %Z]") # cron prefix form
KST = get_timezone() # replaces timezone(timedelta(hours=9))
now = datetime.now(get_timezone())
Key rules:
format_timestamp("%...%Z") — the %Z renders the correct abbreviation (KST, UTC, …) from the resolved tz. Never hardcode the label string.KST = timezone(timedelta(hours=9)) module constants become KST = get_timezone() — every downstream datetime.now(KST) / fromtimestamp(ts, tz=KST) follows automatically.dt.astimezone(get_timezone()).strftime("%H:%M:%S %Z") — never dt + timedelta(hours=9).hermes_tz.get_timezone() returns a tzinfo (ZoneInfo for IANA names) — annotate return as -> "Any" not -> timezone (ZoneInfo is not a timezone subclass; Pyright flags it).ts() helper)# Timezone-aware timestamp: honors HERMES_TIMEZONE (IANA), else system TZ.
ts() {
if [[ -n "${HERMES_TIMEZONE:-}" ]]; then
TZ="${HERMES_TIMEZONE}" date '+%Y-%m-%d %H:%M %Z'
else
date '+%Y-%m-%d %H:%M %Z'
fi
}
Replace TZ=Asia/Seoul date '+%Y-%m-%d %H:%M KST' with $(ts) everywhere.
Add a ## TIMEZONE — READ FIRST section before the OUTPUT FORMAT template:
## TIMEZONE — READ FIRST
The header timestamp must use the host configured timezone, NOT a hardcoded label. Run `date '+%Y-%m-%d %H:%M %Z'` (or `date '+%H:%M %Z'` for time-only) and use its exact output — the timezone comes from HERMES_TIMEZONE / system local time. The KST in the example below is illustrative; substitute whatever %Z returns.
The KST in the example header stays (LLMs mimic concrete text) — the rule above it overrides the label.
HERMES_TIMEZONE=Asia/Seoul in ~/hermes-cortex/.env (canonical, gitignored) + documented in .env.exampleinstall-gateway-timezone.sh (ops/scripts/install/) — systemd user drop-in 11-timezone.conf on Linux, ~/.hermes/.env append on macOS; registered + invoked from cortex-update.shhermes_tz falls back to system local — identical output on Asia/Seoul hostsgrep -rn "timedelta(hours=9)\|TZ=Asia/Seoul date\|%H:%M KST" ops/scripts/ --include="*.py" --include="*.sh" — must be empty (excluding comments/docstrings)grep -rn "HERMES_TIMEZONE" ~/hermes-cortex/.env ~/hermes-cortex/.env.example — var presentgrep -rn "JOB_ID) \[YYYY-MM-DD HH:MM KST\]" ops/scripts/ skills/ — remaining template headers must each have a TIMEZONE rule above themjobs.json (via cronjob update) AND the installer create_cron blocks (install-crons.sh / install-dream-crons.sh) — a live-only edit gets reverted by the next reinstallHERMES_TIMEZONE=UTC bash script.sh --report must show UTC-converted time; unset → system localcron_format.py had a real TZ bug — its _timestamp() did now = datetime.now(timezone.utc).astimezone() then conditionally "converted" — always labeling local time as KST. Any helper that labels local time as a fixed zone is wrong; delegate to hermes_tz.cron_format.sh / cron_format.py were repo-only, never deployed — check ~/.hermes-cortex/scripts/ before assuming a shared helper is live.hermes_tools.write_file can return verified: None and NOT persist (observed 2026-08-20: bulk bash migration silently didn't land). After any execute_code write batch, verify with git diff --stat / grep before proceeding; use the patch tool for repo edits.ops/scripts/*, the ~/.hermes-cortex/scripts/ copy is stale until cortex-update.sh runs. Test the repo source path, not the deployed one, mid-migration.KST = timezone.utc commented "we'll note KST in output" is a landmine; the actual dates used system-local datetime.now(). Mark deprecated or fix to get_timezone()..py compile: python3 -m py_compile <file>.sh pass: bash -n <file>HERMES_TIMEZONE=UTC and confirm UTC output; run unset and confirm system-local (KST) outputhermes_tz.py self-test: HERMES_TIMEZONE=Asia/Seoul python3 hermes_tz.py → "Timestamp: ... KST"See references/timezone-audit-2026-08-20.md for the full fleet audit findings and file-by-file migration record.