agentleFS
EthanLLLEthanLLL/loom/skills/cron/SKILL.md

cron

Skill4 starsChanged 4 days agoMITView on GitHub

Schedule, list or delete Loom's timed prompts — a fixed message submitted to a session at cron times, like the user typing it. Use when the user wants something done on a schedule or reminded later ("每天早上", "每周一", "定时", "提醒我", "every morning", "cron", "定时任务"), or asks what is scheduled.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. clonable-eden/cekernel★ 17same name
    2. iceycc/icey-skills★ 4same name
    3. TheLatentSpaceLab/Qubito★ 1same name
    4. oidsdev/honeypot★ 0same name
    5. superbereza/lobster-powers★ 0same name
    6. thedigitalorganizer/soloship★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    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:

    If it is unclear which session ("this one", "here"), confirm the title with the user.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

cron: scheduled prompts in Loom

At each match of a cron expression, Loom submits a fixed prompt to an existing session. The reply lands in that session like any other turn, marked ⏰ cron. Jobs live in ~/.loom/cron.json; never edit it — go through Loom.Cron over bin/loom rpc, which needs no running session of yours and no HTTP.

Calling it

B="$(dirname "$LOOM_ENV_FILE")/_build/prod/rel/loom/bin/loom"
$B rpc "$(cat <<'EOF'
IO.inspect(Loom.Cron.add(%{name: "Morning news", cron: "0 1 * * *", target: "a_xxx", prompt: ~S"""
The prompt, verbatim: quotes, What's, newlines and #{} all stay as written.
"""}))
EOF
)"
$B rpc 'IO.inspect(Loom.Cron.list())'
$B rpc 'IO.inspect(Loom.Cron.delete("c_xxx"))'
  • Wrap every call in IO.inspect: rpc prints nothing otherwise.
  • The quoted heredoc plus ~S""" keeps the prompt literal; it only must not contain """.
  • add returns {:ok, job} with next_at (first fire, UTC), or {:error, reason}.

Fields

  • cron: five fields (minute hour day month weekday), always UTC. *, a,b, a-b, */n, a-b/n, and names like MON, JAN. No @daily, no seconds. With both day and weekday set, either one matching fires.
  • target: the id of an existing session. Find it by title: $B rpc 'IO.inspect(Loom.Agent.list_persisted() |> Enum.map(&{&1[:id], &1[:title]}))'. If it is unclear which session ("this one", "here"), confirm the title with the user.
  • name: optional; defaults to the prompt's first line.
  • prompt: what the target sees when it fires, with none of this conversation around it — write it to stand on its own.

Time zones

The user speaks local time; cron is UTC. Convert it yourself (Beijing = UTC+8, no DST: 9:00 there is 0 1 * * *, and a weekday can shift across midnight). If the zone is unclear, ask. After adding, tell the user the next fire time back in their own zone so they can check it.

Behaviour

  • A fire missed while Loom was down is skipped, not caught up.
  • A busy target gets the prompt like a typed message: steered into the running turn, or queued.
  • Deleting the target session leaves the job; it records last_error until deleted.
  • /cron typed in any session lists every job.

Waiting on long work

For work that runs for hours outside this conversation (a benchmark, a batch job, a remote build), don't rely on background-task notifications: they die with the backend process, which Loom releases when idle or restarts. Add a job targeting your own session (Loom gives you its id) whose prompt says it is a cron check-in, how to check progress, what to do when done (report, clean up), and to delete this job (give its id) once finished. Keep a hard failsafe on the resources themselves too, e.g. shutdown -h +N on a temporary instance.

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.