agentleFS
Hashi-Ai-DevHashi-Ai-Dev/HermitDoc/skills/hermes-cron/SKILL.md

hermes-cron

Skill4 starsChanged 7 months agoMITView on GitHub

Use when scheduling recurring tasks, managing cron jobs, or setting up automations. Covers: hermes cron CLI, schedule syntax (30m, every 2h, cron), delivery targets (origin, local, discord, telegram), script hooks, cron job management, automation patterns. Triggers on: cron, schedule, automation, recurring task, every hour, daily, weekly, cron job, background task.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a script before or after the cron prompt:

    line 107
  2. Distinctive:

    Create a webhook that triggers a cron-style run:

    line 190

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hermes Cron Reference

Complete guide to scheduling recurring tasks with hermes cron.

Overview

Hermes can run tasks on a schedule, delivering results to various targets. Cron jobs run in a fresh session with no user present — the prompt must be self-contained.

Schedule Syntax

FormatExampleDescription
Nm30mEvery N minutes
Nh2hEvery N hours
Nd3dEvery N days
N w2 wEvery N weeks
cron0 9 * * *Standard cron (minute hour day month weekday)
ISO2025-01-15T09:00:00One-shot at specific time

Cron CLI

hermes cron list              # list all jobs
hermes cron list --all        # include disabled
hermes cron create SCHED      # interactive create
hermes cron edit ID           # edit schedule, prompt, delivery
hermes cron pause ID          # pause a job
hermes cron resume ID         # resume a paused job
hermes cron run ID            # trigger immediately
hermes cron remove ID         # delete a job
hermes cron status            # scheduler health

Creating a Cron Job

Via CLI (interactive)

hermes cron create "30m"
# Or with full options:
hermes cron create "0 9 * * *" --name "morning-report" --prompt "Run daily digest" --deliver discord

Via Tool (in session)

cronjob(
  action="create",
  name="daily-digest",
  schedule="0 9 * * *",
  prompt="Summarize key developments from the past 24 hours. Focus on: project updates, any blockers, decisions made. Format as a brief bullet-point report.",
  deliver="origin",  # deliver back to this chat
  skills=["hermes-master"]  # optional: pre-load skills
)

Delivery Targets

Where cron results are sent:

TargetDestination
originBack to the chat where the job was created
localSave to ~/.hermes/cron/output/ only
discord:CHANNEL_IDDiscord channel
discord:389060154273955840Specific Discord channel
telegram:-1001234567890Telegram group
platform:chat_idGeneric platform targeting

Example:

cronjob(
  action="create",
  schedule="0 8 * * 1",  # Every Monday 8am
  prompt="Send a weekly status report to Discord",
  deliver="discord:389060154273955840"
)

Delivery Options

cronjob(
  action="create",
  schedule="30m",
  prompt="Check system health and report issues",
  deliver="origin",
  script="/path/to/health_check.sh"  # run a script before/after
)

Script Hooks

Run a script before or after the cron prompt:

cronjob(
  action="create",
  schedule="0 9 * * *",
  prompt="Generate daily report",
  script="/path/to/setup.sh"  # runs first, stdout injected into prompt
)

Cron Job Templates

Daily Report

cronjob(
  action="create",
  name="daily-report",
  schedule="0 9 * * *",
  prompt="""Generate a daily status report covering:
1. Project progress (from git log, task files)
2. Any errors or warnings from logs
3. Open pull requests and their status
4. Schedule for today

Format as markdown. Keep it under 500 words.
Deliver to: origin""",
  deliver="origin"
)

Health Check

cronjob(
  action="create",
  name="health-check",
  schedule="*/15 * * * *",  # every 15 minutes
  prompt="""Run health checks and alert if anything is wrong:
- hermes doctor output
- disk space (df -h)
- memory usage (free -m)
- recent errors in logs

Alert if hermes doctor fails or disk > 90% full.
Report to origin only if issues found, otherwise silent.""",
  deliver="origin"
)

Git Sync

cronjob(
  action="create",
  name="git-sync",
  schedule="0 */4 * * *",  # every 4 hours
  prompt="""In /workspace/project, run:
1. git fetch origin
2. Check for new branches: git branch -r
3. If main has updates, summarize them

Report to origin.""",
  deliver="origin"
)

Managing Cron Jobs

# Pause before doing maintenance
hermes cron pause <job-id>

# Resume after
hermes cron resume <job-id>

# Run manually to test
hermes cron run <job-id>

# Delete
hermes cron remove <job-id>

Pattern: Webhook-Triggered

Create a webhook that triggers a cron-style run:

hermes webhook subscribe my-webhook
# This creates: /webhooks/my-webhook
# POST to it to trigger the handler

Common Pitfalls

  1. Prompt not self-contained — Cron runs with no user context. Include all necessary info in the prompt.
  2. Wrong schedule syntax — 30m is every 30 minutes. 0 30 * * * * is every hour at :30.
  3. Delivery target wrong — Discord channel IDs need to be numeric. Use hermes gateway status to find IDs.
  4. Forgetting to restart — Cron job changes apply immediately.
  5. Noisy cron jobs — Use conditional delivery (only report on issues, not every run).
  6. Long-running prompts — Keep prompts under 2000 tokens to avoid timeout.

Pre-Built Cron Patterns

ScenarioScheduleKey tools
Hourly sync0 * * * *git, file
Daily digest0 9 * * *web, terminal
Weekly report0 9 * * 1session_search
Health check*/15 * * * *terminal
Backlog cleanup0 0 * * 0terminal

References

Structured reference docs:

  • Schedule Syntax — Cron format reference
  • CLI Reference — Cron command reference
  • Delivery Targets — Output destinations
  • Cron Templates — Pre-built job patterns

Related skills:

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.