agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/cron-scheduler/SKILL.md

cron-scheduler

Skill4 starsChanged 4 months agoMITView on GitHub

Codex automation scheduling for recurring work, thread heartbeats, reminders, workspace checks, local/worktree automation choices, and safe cadence planning.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user wants recurring agent work, reminders, a recurring follow-up, or help deciding how a Codex automation should …

    line 8
  2. Distinctive:

    Before scheduling anything, read:

    line 21
  3. Distinctive:

    use a worktree when changes should be isolated from active local work

    line 30
  4. Distinctive:

    use local mode only when direct access to the main checkout is required and the user accepts that it can modify active files

    line 31
  5. Distinctive:

    Write a thin automation prompt:

    line 32
  6. Distinctive:

    keep schedule and workspace details out of the prompt body

    line 34
  7. Distinctive:

    add gating rules such as "only if new commits landed" or "skip if the report already exists"

    line 35
  8. Distinctive:

    prefer waking hours unless the user explicitly wants overnight activity

    line 38
  9. Distinctive:

    prefer a morning digest or follow-up over noisy overnight wakeups

    line 40
  10. Distinctive:

    Check whether the current sandbox/approval settings are sufficient for unattended work.

    line 41
  11. Very specific:

    Create or update the automation with automation_update.

    line 42
  12. Distinctive:

    If a similar automation already exists, update or replace it instead of creating a duplicate.

    line 44
  13. Distinctive:

    Prefer a thread heartbeat when:

    line 48
  14. Distinctive:

    Prefer a cron automation when:

    line 52
  15. Distinctive:

    Prefer a worktree-backed project automation when:

    line 56
  16. Distinctive:

    Do not stuff giant prompts into an automation when a short task description will do.

    line 65
  17. Distinctive:

    Do not create duplicate automations when an update is cleaner.

    line 66
  18. Distinctive:

    Avoid schedules that create overnight inbox churn unless the user explicitly asks for that tradeoff.

    line 67
  19. Distinctive:

    Keep recurring tasks idempotent so repeated runs do not duplicate work.

    line 68
  20. Very specific:

    Use ACTIVE by default; only start paused if the user asks.

    line 69
  21. Distinctive:

    Do not schedule unattended work that requires approvals unless the prompt can safely no-op or report the blocker.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Cron Scheduler

Use this skill when the user wants recurring agent work, reminders, a recurring follow-up, or help deciding how a Codex automation should run.

This port is adapted from garrytan/gbrain at commit 0b47afbf402a4e27a648bb9d131ce584461461ea.

Important Adaptation

Upstream GBrain assumes raw cron jobs, host schedulers, and held notification queues. In Codex, the closest native primitives are:

  • thread heartbeats for same-thread wakeups and sub-hour follow-ups
  • standalone/project automations for independent recurring work against one or more workspaces
  • local-project or worktree execution for Git repositories, chosen by whether the run may safely touch the active checkout
  • sandbox and approval settings inherited by unattended automation runs

Before scheduling anything, read:

  • references/automation-patterns.md
  • references/quiet-hours.md

Workflow

  1. Decide whether the task should stay in the current thread or run as a standalone recurring job.
  2. Decide whether project automation should run in the local checkout or a worktree:
    • use a worktree when changes should be isolated from active local work
    • use local mode only when direct access to the main checkout is required and the user accepts that it can modify active files
  3. Write a thin automation prompt:
    • describe only the durable task
    • keep schedule and workspace details out of the prompt body
    • add gating rules such as "only if new commits landed" or "skip if the report already exists"
    • include when to stop, no-op, or ask the user for input
  4. Choose the cadence in the user's local time:
    • prefer waking hours unless the user explicitly wants overnight activity
    • offset multiple recurring jobs by 5-15 minutes when they would otherwise bunch up
    • prefer a morning digest or follow-up over noisy overnight wakeups
  5. Check whether the current sandbox/approval settings are sufficient for unattended work.
  6. Create or update the automation with automation_update.
  7. Confirm the schedule, workspace/local-vs-worktree choice, and sandbox assumption in plain language.
  8. If a similar automation already exists, update or replace it instead of creating a duplicate.

Decision Rules

  • Prefer a thread heartbeat when:
    • the work depends on current thread context
    • the user asked for follow-up in this conversation
    • the cadence is below one hour
  • Prefer a cron automation when:
    • the work should run independently of this thread
    • the task is workspace-oriented
    • the cadence is hourly or weekly and does not need conversational context
  • Prefer a worktree-backed project automation when:
    • the automation may edit files
    • the user has active local work in the checkout
    • the run should produce a reviewable branch or isolated artifact

For recurring brain work, prefer one multi-source sync surface over competing per-source jobs. Every recurring task must be idempotent or document its deduplication key, state file, and retry behavior.

Guardrails

  • Do not stuff giant prompts into an automation when a short task description will do.
  • Do not create duplicate automations when an update is cleaner.
  • Avoid schedules that create overnight inbox churn unless the user explicitly asks for that tradeoff.
  • Keep recurring tasks idempotent so repeated runs do not duplicate work.
  • Use ACTIVE by default; only start paused if the user asks.
  • Do not schedule unattended work that requires approvals unless the prompt can safely no-op or report the blocker.

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.