lukemcqueen/hermes-cortex/cron-job-management
Claude Code and agent skill by lukemcqueen/hermes-cortex
- community
Checking that the SKILL.md file is still in the repository.
Create, name, list, and maintain Hermes cron jobs — no_agent watchdog scripts, naming conventions, and the user's preferred listing format.
Install
npx vskill@latest install lukemcqueen/hermes-cortex/cron-job-managementSKILL.md
The same SKILL.md was published earlier as lukemcqueen/hermes-cortex/cron-job-management.
When to use
When creating new cron jobs, renaming existing ones, listing all crons for display, or designing self-contained maintenance automation.
Naming convention — definitive
Every cron name starts with a group prefix that determines install scope, doctor validation, and update workflow:
| Prefix | Scope | Who installs | Doctor validation | |
|---|---|---|---|---|
orch- | Orchestrator-only (Moses, Esther). Bus infra, fleet watchdogs, health reports to Luke. | install-orch-crons.sh (in ops/scripts/install/) | parse_orch_crons() reads uninstall array from install-orch-crons.sh | |
agent- | All agents with Hermes Agent. Remediation, monitoring, memory, knowledge, governance, scoring. | install-crons.sh (in ops/scripts/) | parse_expected_crons() reads uninstall array from install-crons.sh | |
local- | This server only. Personal briefings, machine-specific maintenance. NOT in repo install scripts. | Created manually via cronjob action='create' name='local-<name>' | Excluded from the installer-array checks — but NOT invisible: a local- job BRIDGED to a systemd timer and declared in neither cron-manifest.yaml nor jobs.json IS reported as an undeclared timer (INFO, by design — see Pitfalls). Orphan crons show: rename to local-<name> to opt out. |
Combining and nesting
local-agent-*— a cron that is both machine-specific AND concept-level. Thelocal-prefix always comes first.orch-bus-*— bus infrastructure crons (a sub-domain of orchestrator-only). All bus crons are orchestrator-only implicitly.- No bare names allowed. Every cron in the repo MUST have a valid prefix.
Critical rules
1. No bare names (enforced by doctor)
Crons without a prefix (orch-, agent-, or local-) are forbidden in the repo. Examples of names that MUST be fixed if they exist:
| Bare name | Correct name | |
|---|---|---|
bus-audit-watchdog | orch-bus-audit-watchdog | |
remediation-sensor | agent-remediation-sensor | |
system-alert-watchdog | agent-system-alert-watchdog | |
service-recovery | agent-service-recovery | |
memory-to-brain-sync | agent-memory-to-brain-sync | |
hermes-update | agent-hermes-update | |
steadfaste-fleet-sync | agent-steadfaste-fleet-sync |
Prefix-less names break doctor validation because the doctor reads the uninstall arrays — and parse_expected_crons()/parse_orch_crons() only finds names in those arrays. A bare name that IS in the create section but ISN'T in the uninstall array silently passes doctor (no extra cron check) but causes drift.
- Stagger hash must use `hostname -s` everywhere (2026-09-28). All 3 installers (
install-crons.sh,install-orch-crons.sh,install-dream-crons.sh) hashhostname -s:name% 60 — same ascron_manifest.py _hostname(). A full-hostnamehash diverges on FQDN hosts (macOS: hostname ≠ short name), so every reinstall rewrote LLM cron minutes and the doctor flagged schedule drift — looked like "randomized re-staggering". When adding a cron: add the create_cron block AND acron-manifest.yamlentry in the SAME commit — a cron in an installer but not the manifest is flagged as an ORPHAN bycron_manifest.py --check(verified: 11 orphans, commit 1f2276d5). After changing the stagger formula fleet-wide, each host needs oneinstall-crons.sh --forceto rewrite minutes once to the canonical values, then they are stable.
2. Uninstall array = doctor truth source (enforced by architecture)
fleet-doctor.py reads expected cron names from the uninstall arrays in install-crons.sh and install-orch-crons.sh. The doctor does NOT read the create sections. This means:
Every cron in a `create_cron` block MUST be in the corresponding uninstall array, with the exact same name. If they drift:
- Cron in create but NOT in uninstall → doctor doesn't check it → if it fails, nobody notices
- Cron in uninstall but NOT in create → doctor says "missing!" → false FAIL
- Same name in create and uninstall → doctor validates correctly ✓
After any rename cycle, run python3 ~/steadfaste-fleet/ops/scripts/manage/fleet-doctor.py --quiet to verify arrays are in sync.
3. Create section is the install target; uninstall array is the doctor target
When adding a new cron:
- Add
create_cronblock to the correct install script - Add the EXACT SAME name to the uninstall array in the SAME file
- Register the script path in
fleet-update.sh - Run doctor to verify
When renaming a cron, update BOTH arrays in the SAME commit. If you only update the create block, the old name stays in the uninstall array (doctor expects it) and no new cron is created with the new name (doctor misses it). This is the root cause of the July 2026 bus-rename bug.
4. Every pause must carry a REASON — hermes cron pause takes none
hermes cron pause <job_id> has no reason argument, and the cronjob MCP tool's paused_reason is create-only: action='update' with paused_reason is refused with "No updates provided". So an auto-pause (a watchdog that pauses a job after N consecutive failures) and a hand pause both leave paused_reason empty, and nobody reading the cron list can tell a deliberate stop from an abandoned job. Record the reason in the job's durable notepad — the one store you can write to a LIVE job:
The notepad is per-job key/value in <hermes home>/cron/notepad.db, survives reinstalls, and is prompt-injected on the job's next run — so the reason travels with the job instead of sitting in a log the next reader never opens.
Any watchdog that pauses a job must write that reason itself AT PAUSE TIME (it already holds the alert text). The doctor's `Paused crons: reason` check accepts either store (jobs.json paused_reason, or the notepad) and WARNs — naming them — for a paused job that has neither; verify with python3 ~/steadfaste-fleet/ops/scripts/manage/fleet-doctor.py --quiet.
Do NOT flip a reason-less pause back to running just to close the question. Recover the reason from evidence first: the watchdog's state file (~/.steadfaste-fleet/state/cron-failure-watchdog.json holds consecutive/alerted per job id) and the job's last output under ~/.hermes/cron/output/<job_id>/. Then either resume it deliberately or record what the evidence shows — a silent resume is a behaviour change nobody asked for.
A cadence consolidation's carrier can be paused WITH a reason that names the crons you are about to delete — resume it in the SAME change or the function silently stops. The "one job each, never three-job trios" policy retires the evening/overnight siblings of a workday job, and the doctor's Orphan crons: N / Extra cron (<name>) INFO items are exactly the signal that the policy landed in manifest+installers but the live trio was never pruned. Check the surviving carrier's pause reason FIRST (hermes cron notepad <id> list): a reason like "deliberately paused; the evening/overnight jobs already carry this workflow" is a conditional that expires the moment you delete those siblings. The correct sequence is: verify the installers no longer create the siblings (durable removal), remove siblings + resume carrier + rewrite the notepad reason in ONE change, then confirm jobs.json shows the carrier enabled: true / state: scheduled / next_run_at in the future — a resumed job whose next_run_at is still a past date has a stale scheduler view until the ticker recomputes it.
Cron rename workflow
When renaming a cron (e.g. fleet-status-watchdog → orch-fleet-watchdog):
- Survey first:
search_files()for the old name across the entire repo - Remove old cron:
cronjob action='remove' job_id=<id> - Rename/relocate script: move from old path to new path in repo (e.g.
ops/scripts/inbox/→ops/scripts/agent/) - Update installer — critical: two-way sync required:
- Remove old name from
install-crons.shorinstall-orch-crons.shuninstall array - Add new name to the uninstall array (doctor reads this for expected crons — see "Critical: uninstall array = doctor truth source" above)
- Add
create_cronblock for new name with EXACTLY matching name string - Verify: the same name appears in BOTH the create_cron call AND the uninstall array
- Register in fleet-update.sh: add
register()call for new path - Deploy: copy script to
~/.steadfaste-fleet/scripts/— verify it exists (ls -la) - Create new cron:
cronjob action='create' name=<new-name> ... - Test:
python3 ~/.steadfaste-fleet/scripts/<script>— verify exit code 0 - Verify install script syntax:
bash -n ~/steadfaste-fleet/ops/scripts/install-crons.shandbash -n ~/steadfaste-fleet/ops/scripts/install/install-orch-crons.sh— must pass with zero errors. Thefix-cron-duplicates.py --fixscript now auto-verifies and reverts on failure, but always double-check after manual edits. - Run doctor:
python3 ~/steadfaste-fleet/ops/scripts/manage/fleet-doctor.py --quiet— verify no failures - Commit & Push
- Notify fleet agents via agent bus: cron has been renamed, pull latest
Bulk rename — migrating 10+ crons at once (e.g. bare-name → agent-*)
For large batch renames (July 2026 migration: 25 bare-name crons → agent-*):
- Update create sections in
install-crons.sh— rename allcreate_cron "name"tocreate_cron "agent-name" - Sync arrays:
python3 ~/steadfaste-fleet/ops/scripts/manage/fix-cron-duplicates.py --fix - Install new crons:
bash ~/steadfaste-fleet/scripts/install-crons.sh - Remove old bare-name crons:
python3 ~/steadfaste-fleet/scripts/manage/fix-cron-duplicates.py --gc(scan)python3 ~/steadfaste-fleet/scripts/manage/fix-cron-duplicates.py --gc --prune(safe remove)
- Orchestrator only (Moses, Esther): also run
bash ~/steadfaste-fleet/scripts/install/install-orch-crons.sh --force - Verify:
python3 ~/steadfaste-fleet/ops/scripts/manage/fleet-doctor.py --quiet
This workflow is also available as a standalone skill: skill_view(name='devops/cron-rename-migration').
Canonical cron installer (crons.json + install-crons.py) — LEGACY, not in active use
The older template + installer pattern is preserved for reference but the active installers are install-crons.sh and install-orch-crons.sh.
Legacy template at core/governance/crons.json (if it still exists) is NOT the active pattern.
For self-contained pull + install / check + alert jobs that should be silent on success:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devops/cron-job-management/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lukemcqueen/hermes-cortex/cron-job-management)