agentleFS
fmindfmind/dot/skills/scheduled-jobs/SKILL.md

scheduled-jobs

Skill10 starsChanged 57 days agoMITView on GitHub

Schedule and debug local jobs with systemd timers or macOS launchd.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 7

    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:

    Run an existing bounded command through the native user scheduler and prove its outcome.

    line 15
  2. Distinctive:

    Prove one invocation: run the authorized command with explicit arguments and the scheduler's minimal environment.

    line 20
  3. Distinctive:

    Choose the native owner: use Linux user timers or macOS LaunchAgents.

    line 21
  4. Distinctive:

    Make execution bounded: use an absolute executable path, explicit working directory, locked dependencies, bounded I/O and runtime, and one …

    line 22
  5. Distinctive:

    Prepare the configuration: call the existing command directly, keep branching in tested Python, and validate the unit or plist.

    line 23
  6. Distinctive:

    Make failures visible: keep a bounded, redacted run record with start, finish, exit status, and result identity.

    line 32
  7. Distinctive:

    Stay in user space: do not enable system services or lingering merely to keep a laptop job alive.

    line 33

“Common” is measured: kept by at least 6 in 10 of the 3 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

Scheduled Jobs

Run an existing bounded command through the native user scheduler and prove its outcome. python-script owns program code, mise owns task commands, and agent-loops owns agent continuation and decisions.

Workflow

  1. Resolve the job: identify the command, account, working directory, frequency, timezone, maximum duration, expected result, side effects, and stop condition. Inspect any existing schedule before creating another owner.
  2. Prove one invocation: run the authorized command with explicit arguments and the scheduler's minimal environment. Use an existing dry-run mode when exercising real effects is outside scope; dry-run success does not prove a real run.
  3. Choose the native owner: use Linux user timers or macOS LaunchAgents. Keep an existing project scheduler unless migration is requested. Harness-native agent schedules remain with the matching host skill.
  4. Make execution bounded: use an absolute executable path, explicit working directory, locked dependencies, bounded I/O and runtime, and one writer lock for all entry points. Decide whether a missed occurrence is skipped, coalesced, or replayed; replay requires an idempotent operation.
  5. Prepare the configuration: call the existing command directly, keep branching in tested Python, and validate the unit or plist. Store durable job definitions in their owning repository; do not insert secrets into configuration, command lines, or logs.
  6. Activate within scope: reuse explicit authority for recurring effects and cost. If it is missing, present the validated definition and precise schedule for approval before enabling it; preparing a schedule does not authorize its future effects.
  7. Verify execution: distinguish loaded configuration, next due time, process completion, and the actual application result. Inspect a real scheduler-triggered run; a manual invocation or enabled timer is only partial evidence.
  8. Stop and recover: disable future triggers and separately account for any running process and uncertain external write. Resume only from current state; do not blindly replay a timed-out mutation.

Gotchas

  • Document laptop missed-run behavior: sleep, power-off, login state, timezone changes, and DST affect schedules. Choose and document the missed-run behavior instead of promising an always-on service.
  • The application owns its lock: a scheduler's single-job protection does not serialize manual invocations or a second scheduler; the application owns its lock.
  • Make failures visible: keep a bounded, redacted run record with start, finish, exit status, and result identity. Define how stale success or repeated failures become visible; a log file alone is not notification.
  • Stay in user space: do not enable system services or lingering merely to keep a laptop job alive; explain when the requested availability exceeds a user session.

Documentation

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.