Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Automate

Run a Hermes agent task whenever files appear, change, or disappear in a folder, using AutoRAG's file automations plus Hermes cron.

Free on GitHubn8n and automation

Safety check

  • Script runs other programs or code: scripts/autorag_automation.py line 20
  • Script dumps environment variables: scripts/autorag_automation.py line 220

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: automate
description: Run a Hermes agent task whenever files appear, change, or disappear in a folder, using AutoRAG's file automations plus Hermes cron. Use when the user wants something done automatically for new files ("when a PDF lands in Downloads, summarize it and message me"), or wants to list or remove such an automation. Not for one-off questions about files (use the search skill) and not for first-time setup of the index (use the setup skill).
license: Apache-2.0
compatibility: Needs Node.js >= 24, a running Hermes gateway (or `hermes cron tick`), and Python 3.9+ for the helper script (macOS, Linux, or Windows).
---

# AutoRAG file automations for Hermes

AutoRAG watches folders and runs a command when files are created, updated, or deleted.
Hermes cron runs an agent on a schedule. This skill joins them: a file event makes AutoRAG
queue the changed paths and fire one Hermes cron job, and that job's agent sees the list of
changed files. Hermes cron has no file trigger of its own, which is why AutoRAG supplies it.

How one event travels:

1. AutoRAG's daemon sees files change and batches them (default debounce 2 s).
2. It runs the generated `fire.py`, which writes the batch to a queue and runs `hermes cron run <job>`.
3. The job's pre-run gate script drains the queue. No files queued means `wakeAgent: false`: **no model call**.
4. Otherwise the agent runs with the file list as script data, and its answer goes to the job's `deliver` target.

Three batches that arrive while a run is in flight are merged into the next run, not run in parallel.

## Set one up

Ask the user for three things if they have not said: the **folder**, which **files** count (a glob such as
`**/*.pdf`; default all files), and **what the agent should do** with them. Pick the delivery target from what they
want ("message me on Telegram" is `telegram`; otherwise `local`).

### 1. Write the AutoRAG rule and the scripts

```bash
python3 "${HERMES_SKILL_DIR}/scripts/autorag_automation.py" setup \
  --id invoices --path ~/Downloads --include '**/*.pdf' --events create
```

- `--id` is letters, digits, `_` and `-`. The cron job is named `autorag-<id>`.
- Repeat `--path` or `--include` for several folders or patterns. `--events` is a comma list of `create,update,delete`.
- The helper validates the rule with AutoRAG's own parser before it changes anything, probes which interpreter can
  run `hermes` under a daemon's minimal PATH, and prints the JSON you need next. Read its `cron_job` and `daemon`
...

From Marker-Inc-Korea's repository, Apache-2.0 licence.

Related skills

  • Checked

    n8n workflow builder

    Creates, edits, validates and syncs n8n workflows as code, with safety checks before anything is deployed.

    by EtienneLescot 1.7k
    7/101 credit
  • Checked

    Make.com automation

    Creates, runs and manages Make.com scenarios, connections and data stores through its API, straight from code.

    by ericrisco 691
    7/101 credit
  • Checked

    n8n instance control

    Creates, tests, activates and updates workflows on a live n8n instance through its API, with run history.

    by ericrisco 691
    7/101 credit
  • Checked

    Zapier actions

    Runs actions across thousands of apps through the official Zapier MCP server, confirming before any write.

    by ericrisco 691
    7/101 credit
  • Checked

    Screen recording automation

    Watches a screen recording of a manual task and writes scripts to automate it with tools you already have.

    by github 42k
    8/101 credit
  • Checked

    Home Assistant automations

    Builds Home Assistant automations, scripts and dashboards the native way, so your smart home runs reliably.

    by homeassistant-ai 1k
    8/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added