Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Verified crons

БесплатноБез исполняемых скриптовНе проверен

Scheduled agent jobs that prove they worked. Verify the artifact instead of the log line, fail closed on ambiguity, and test every check with a fixture that…

stackitoот stackito71 установка в других каталогах

Об этом скилле

Verified crons

A cron job that logs done is not a job that worked. It is a job that finished.

This skill is a five-rule discipline for scheduled agent work — the kind that runs unattended at 3 a.m., writes to a database, sends an email, updates a dashboard, or deletes a directory. The rules are cheap to apply and they catch the failure mode that scheduled work fails into most often: a silent no-op that reports success.

When to use this

  • A scheduled job reports success but the artifact it was supposed to produce is missing or stale.
  • You cannot tell, after the fact, whether last night's run did anything.
  • Two jobs depend on the same file and you don't know which one wrote it last.
  • Someone says "it has been running fine for weeks" and nobody has checked.

The examples are POSIX shell and assume the two coreutils declared above; nothing else is needed.

Rule 1 — Verify the artifact, not the summary

The exit code and the log line are claims made by the same process that did the work. Read the thing the job was supposed to produce, and read it from a fresh connection or a fresh process.

# bad: trust the exit code
run_job && echo "job ok"

# good: read back the artifact
run_job
count=$(read_back_rows_for_today)          # fresh query, not the job's counter
[ "$count" -gt 0 ] || fail "job ran, artifact missing"

The read-back has to be capable of disagreeing with the job. If both come from the same in-memory counter, you are measuring the job's optimism.

Rule 2 — Fail closed on ambiguity

A guard that cannot tell whether it succeeded must fail, not pass. Empty input, an unreachable service, a malformed record, a query that returned zero rows for a reason you did not predict — all of those are "unknown", and unknown is not "fine".

if ! have_credentials; then
  fail "cannot verify"        # NOT: exit 0, assume ok
fi

The cost of a false alarm is a notification. The cost of a false pass is a week of missing data discovered a month later.

Rule 3 — Test the test

Every check needs a fixture that must make it fail. A check that has never failed is not a check; it is decoration.

# the guard must reject a known-bad input
assert_rejects "$BAD_SAMPLE"   || fail "guard does not reject bad input"
# and must accept a known-good one
assert_accepts "$GOOD_SAMPLE"  || fail "guard rejects valid input"

This is the rule that pays for itself the fastest. A verification script written without a fixture has, in my experience,

Полный SKILL.md на ClawHub

Установить Verified crons в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Verified crons?

Scheduled agent jobs that prove they worked. Verify the artifact instead of the log line, fail closed on ambiguity, and test every check with a fixture that must trip. Use when a cron reports "done" and you still can't tell whether anything happened.

Как установить скилл Verified crons?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Verified crons запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Verified crons с