workspace-cron
Durable cron job store for BAS automation: jobs.json, scheduler gateway, isolated Codex wakes vs worker scripts; not inside Codex or BACnet drivers.
от bbartling★ 20 звёзд на GitHub
Установить workspace-cron в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Workspace cron
Store
bas_build_spec/cron/jobs.json— durable job definitions (cron,every,atschedules).bas_build_spec/cron/jobs-state.json— last-run + running reconciliation (gitignored).bas_build_spec/cron/runs/<job_id>/— per-run JSON (gitignored).
Pausing automation (manual experiment)
When the human wants no scheduled Codex or workers (Cursor-led iteration, UX review):
bash cron_codex/bin/bas_remove_cron_marked.sh— removes# BAS_CODEX_WAKEcrontab lines.- Set
enabled": falseon every job incron/jobs.json(discovery poll, point scrape,bas-wake-hourly, etc.). - Optional:
touch cron_codex/state/waiting_human—bas_wake.shskips API if invoked manually without intent. - Note pause in
BUILD_CHECKPOINTS.mdCurrent sprint so critique does not assume fresh scrape JSON.
Resume: re-run bas_install_cron.sh, re-enable only the jobs needed, run bas_validate_cron_services.sh. Discovery/scrape data will be stale until workers run again.
Do not set REMOVE_CRON_WHEN_COMPLETE=true for a temporary pause — that is for acceptance-complete teardown.
Gateway
cron_codex/bin/bas_cron_scheduler.sh run-due— user crontab entry (marker# BAS_CODEX_WAKE).- Engine:
cron_codex/bin/bas_cron_engine.py(reconcile stalerunningafter grace window). jobs.jsondefines the wake job; the scheduler is what actually launchesbas_wake.sh. A crontab line that only names the scheduler does not run Codex if the scheduler script is absent.
Cron health (research signals — no bas_app edits)
When hourly automation “should” run but nothing changes:
- Crontab —
crontab -lshould showbas_cron_scheduler.sh run-due(or a directbas_wake.shline) with# BAS_CODEX_WAKE. - Gateway binaries —
bas_cron_scheduler.shandbas_cron_engine.pymust exist undercron_codex/bin/and be executable. If cron invokes a missing path, syslog shows hourlyCMD (... bas_cron_scheduler.sh run-due ...)butcron_codex/logs/wake-*.logstays empty,BUILD_CHECKPOINTS.mddoes not advance, and there is nobas_wake/codex execprocess — that is a failed gateway, not Codex “stuck mid-wake.” - Wake evidence — a real wake creates
wake-*.logwith=== bas_wake start/=== bas_wake endand usually updatesBUILD_CHECKPOINTS.md.jobs-state.jsonandcron/runs/update only when the scheduler engine ran. - Syslog —
grep BAS_CODEX_WAKE /var/log/syslogconfirms the daemon fired; it does not prove the gateway succeeded. - Manual bypass — foreground
bas_wake.shwithBAS_CODEX_ENV_FILEtests Codex without cron; if manual wakes log but cron does not, suspect the scheduler/crontab path. - After
bas_full_reset.sh— expect emptybas_app/, no wake logs until the next successful wake, and possibly a stale dev listener on:5173from before the nuke (HTTP up, app tree gone). Do not treat spec demo passwords as valid untilbas_app/README.mdexists and smoke passes.
POST_WAKE_HOOK and “nothing on LAN”
bas_wake.shrunsPOST_WAKE_HOOKfromcron_codex/.envafter minis + critique. If the hook’sbas_post_wake_stack.shexits early (skipwrong gate, wrong start command, or health URL mismatch), hourly Codex can still “succeed” while:8000stays empty — that is not a missing skill; it is runtime orchestration drift.- Evidence: tail
cron_codex/logs/wake-*.logfor--- POST_WAKE_HOOK ---; tailcron_codex/logs/post_wake_stack.logforpost_wake_stack:lines. - Queue fix:
BUILD_CHECKPOINTS.mdTier A Path A or B +memory/architecture/working-divergence.md; Codex addsbas_app/scripts/+ README /POST_WAKE_HOOK; humansloginctl enable-lingerwhen needed. Patchingbas_post_wake_stack.shis optional ops, not a Codex-mini gate.
Stuck wake / no API (Codex policy)
When a scheduled or manual wake should not spend more Codex API:
| Condition | Expected behavior |
|---|---|
state/DONE_AUTOMATION present |
bas_wake.sh exits immediately — no mini, no critique, no hook |
MIN_MINUTES_BETWEEN_WAKES not elapsed |
Debounced exit 0 |
/tmp/bas_codex_wake.lock held by another wake |
Exit 0 — do not start overlapping codex exec |
MINI_ALLOW_EARLY_STOP + state/stop_mini_loop |
Skip remaining minis; critique still runs unless bash exited earlier |
| Mini blocked / queue empty for safe work | Mini touches stop_mini_loop and ends the slice — no extra minis “to try again” |
Crontab fires but bas_cron_scheduler.sh missing |
No bas_wake, no API — fix gateway before blaming Codex |
Critique should record gateway gaps (missing scheduler, empty wake logs despite syslog) in BUILD_CHECKPOINTS.md rather than assuming product work continued overnight.
Full redo: **`spec-valid
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл workspace-cron?
Durable cron job store for BAS automation: jobs.json, scheduler gateway, isolated Codex wakes vs worker scripts; not inside Codex or BACnet drivers.
Как установить скилл workspace-cron?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл workspace-cron запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…