DR. Schedule Manager

v1.0.0

Design and implement reliable scheduled or event-triggered automations for OpenClaw agents so changes to model, prompt, delivery, and policy take effect imme...

0· 0·0 current·0 all-time
byDaniel Refahi@daniel-refahi-ikara
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description match the content: all files are documentation, templates, and explicit recommendations for manifest-driven scheduled jobs. There are no unexpected environment variables, binaries, or unrelated requirements.
Instruction Scope
SKILL.md instructs the agent to use thin triggers and to load prompt/policy/delivery files at runtime; this stays within the stated purpose. It does not direct the agent to read unrelated system files, environment secrets, or contact hidden endpoints. The guidance does require agents to read workspace files and to perform delivery via the agent's normal outbound mechanisms, which is appropriate for this functionality.
Install Mechanism
No install spec or code is provided (instruction-only), so nothing will be written to disk or fetched at install. This is the lowest-risk pattern and is proportionate for a documentation/template skill.
Credentials
The skill declares no required environment variables, credentials, or config paths. The documentation sensibly references provider-specific delivery formats (e.g., Discord user IDs) but does not request secrets itself; implementing these patterns will require appropriate delivery credentials, which is expected and out of scope for the doc package.
Persistence & Privilege
The skill is not always-enabled and does not request persistent elevated privileges. It is instruction-only and does not attempt to modify other skills or system-wide agent settings.
Assessment
This skill is documentation and templates for designing fresh-run, config-driven scheduled jobs — it contains no code, installs, or secret requests itself, so installing it is low-risk. If you implement its patterns in your agents, ensure: (1) agents that perform the jobs have only the workspace file read/write permissions they need (don’t give blanket system access), (2) delivery adapters use the minimal, provider-specific credentials required (store those secrets securely and only for the relevant agent), (3) any model pinning is intentional and documented, and (4) test delivery separately from scheduler announce behavior. If you need the agent to act autonomously with these patterns, review the agent’s outbound credential access and triggers before enabling automatic runs.

Like a lobster shell, security has layers — review code before you run it.

latestvk973s9ys27qfefjf7xrdx0hx81856nnb
0downloads
0stars
1versions
Updated 4h ago
v1.0.0
MIT-0

DR. Schedule Manager

Build scheduled automations so each run reflects current configuration immediately.

Core outcome

After installation or migration, scheduled jobs should:

  • pick up current prompt changes on the next run
  • pick up current policy changes on the next run
  • pick up current delivery changes on the next run
  • pick up current default model changes on the next run, unless intentionally pinned
  • avoid stale session residue from prior runs

If a design does not guarantee those properties, do not recommend it as the default.

Current OpenClaw constraint

Treat current OpenClaw cron as snapshot-based unless proven otherwise.

In practice, cron jobs may embed:

  • prompt text
  • model override
  • delivery route
  • other runtime details

That means editing local files alone may not change the behavior of the already-registered job.

Because of this, the preferred practical pattern for current OpenClaw is not "fat job config in cron". It is:

  • thin trigger in cron
  • local file resolution at runtime
  • explicit final delivery through the normal outbound path

Default architecture

Prefer a thin-trigger, fresh-run, config-driven job architecture.

Rule 1, scheduler is only a trigger carrier

The scheduler should only:

  • wake the job
  • identify the job slug or manifest
  • pass a small stable trigger message

Do not embed business logic, formatting rules, or model decisions in the scheduler unless you intentionally accept snapshot behavior.

Rule 2, manifest is the operational contract

Each scheduled job should have a manifest file that defines:

  • name
  • agent id
  • schedule
  • runtime mode
  • prompt file path
  • policy file paths
  • delivery contract
  • model policy
  • verification rules

Rule 3, runtime assembly happens at execution time

On every run, load current files before generating output.

Always assemble from:

  • current manifest
  • current prompt file
  • current policy files
  • current delivery rules
  • current model policy

Do not trust previous session state for these.

Rule 4, delivery is explicit and provider-aware

Store delivery in a clear adapter contract.

Do not assume session metadata is valid for outbound sends if the provider requires a different target format.

Rule 5, persistent sessions are not the source of truth

If you keep a persistent automation agent, use it only as a dispatcher or coordinator.

Do not let a persistent scheduled session be the authoritative source for:

  • prompt wording
  • model selection
  • formatting rules
  • delivery routing

Approved patterns

Pattern A, wake-only trigger into fresh main execution

Use when you want the latest main assistant behavior to apply automatically.

Best for:

  • personal briefings
  • reminders
  • evolving assistant workflows

Strengths:

  • changes propagate immediately
  • minimal drift risk
  • simple to reason about

Weaknesses:

  • less isolated
  • changes to main behavior affect the job immediately

Pattern B, thin trigger plus local manifest resolution

Use as the default reusable pattern across agents for current OpenClaw.

Best for:

  • reusable automation frameworks
  • reports and digests
  • jobs that need clean state on every run
  • setups where cron otherwise snapshots prompt, model, or delivery

How it works:

  • cron stores only a small stable trigger
  • the triggered agent reads local job files at runtime
  • prompt, policy, model policy, and delivery are resolved from the workspace
  • final delivery uses the normal outbound path, not cron announce, when announce is unreliable

Strengths:

  • avoids stale embedded prompt drift
  • avoids stale model pins in cron payloads
  • makes file edits effective on the next run
  • easy to migrate across agents

Weaknesses:

  • requires the agent to actually honor the trigger by reading the local files
  • still depends on reliable final outbound delivery

Pattern C, persistent dispatcher plus fresh worker run

Use for more advanced orchestration.

Best for:

  • retry queues
  • fan-out workflows
  • multi-step automation pipelines

Strengths:

  • scalable
  • strong separation between orchestration and generation

Weaknesses:

  • more moving parts

Default recommendation

For most current OpenClaw scheduled jobs, use Pattern B, thin trigger plus local manifest resolution.

Reason:

  • it works around snapshot-based cron behavior
  • it is reusable across many agents
  • it avoids stale embedded prompt and model drift
  • changes are effective on the next run because runtime inputs are file-based
  • it scales better than manual re-registration for every content tweak

Model policy rules

Model behavior must be explicit.

Preferred

Use inherit-default when upgrades should propagate automatically.

Example:

{
  "modelPolicy": {
    "mode": "inherit-default"
  }
}

Use only when intentionally pinned

{
  "modelPolicy": {
    "mode": "pin",
    "model": "openai-codex/gpt-5.4"
  }
}

If pinning is used, document why.

Shared-policy option

{
  "modelPolicy": {
    "mode": "policy-file",
    "path": "automation/policies/default-runtime.json"
  }
}

Use when many jobs should share the same rule.

Verification rules

Verification should catch broken assembly, not freeze intended upgrades.

Good checks:

  • prompt path exists
  • policy paths exist
  • delivery route matches current job contract
  • schedule matches manifest
  • pinned model matches manifest, if pinning is intentional

Avoid exact verification for settings that are supposed to inherit current defaults.

If the job should follow current default model changes, do not require an exact old model string.

Anti-patterns

Reject these by default.

Embedded full-payload cron jobs for dynamic automations

A cron job stores the full prompt, model, and delivery configuration even though the automation is expected to evolve via local files.

Stale exact model pinning

A manifest or cron payload hardcodes an old model and exact verification preserves it forever.

Chat-only preference changes

A user requests a format change in chat, but the job still reads an older prompt source.

Session-derived outbound routing

Outbound delivery copies stale or misleading session metadata rather than a provider-valid target.

Persistent scheduled generation context

A long-lived automation session accumulates outdated assumptions and keeps using them.

Assuming scheduler reliability equals delivery reliability

A job can resolve current local files correctly and still fail because the scheduler's announce/delivery adapter is broken.

Migration workflow

When fixing an existing job:

  1. Inspect current manifest and scheduler behavior
  2. Identify stale sources
    • model
    • prompt
    • policy
    • delivery
    • session mode
    • embedded cron payloads
  3. Move all durable rules into files
  4. Replace fat cron payloads with a thin stable trigger
  5. Choose model policy
  6. Make delivery explicit
  7. Reduce over-strict verification that blocks intended inheritance
  8. Test one live run for content freshness
  9. Test final delivery separately
  10. Record provider-specific quirks

Required output when using this skill

Provide:

  • recommended runtime pattern
  • manifest structure
  • model policy recommendation
  • delivery contract recommendation
  • what must move out of session state
  • migration steps
  • verification plan
  • reliability risks and tradeoffs

Reliability review checklist

Before declaring the architecture good, confirm:

  • a prompt edit affects the next run
  • a policy edit affects the next run
  • a delivery target edit affects the next run
  • a default-model change affects the next run when inherit-default is used
  • the scheduler stores only a thin trigger for dynamic jobs, or re-registration is explicitly part of the workflow
  • no persistent session is required for content correctness
  • provider-specific outbound routing is documented where needed
  • final delivery works independently of cron announce delivery

References

Read references/architecture-patterns.md when designing the execution model. Read references/migration-checklist.md when converting an existing stale scheduled job. Read references/reliability-review.md before finalizing a job architecture or publishing this pattern for wider reuse. Read references/job-manifest-template.json for the recommended manifest shape. Read references/example-migration-daily-briefing.md for a concrete migration from a stale scheduled digest to a fresh-runtime job.

Comments

Loading comments...