Back to Skills

clawdis-cron

steipete
Updated 3 days ago
18 views
468
45
468
View on GitHub
Othergeneral

About

The clawdis-cron skill enables scheduled jobs and wakeups via RPC methods, allowing developers to automate tasks within the Clawdis Gateway. It supports both one-shot reminders and recurring jobs that can target main or isolated sessions with specific payload rules. Jobs are managed through a JSON configuration file and controlled via WebSocket RPC calls like cron.add, cron.run, and wake.

Documentation

Clawdis Cron

Cron runs inside the Gateway. Jobs live in ~/.clawdis/cron/jobs.json and run logs in ~/.clawdis/cron/runs/<jobId>.jsonl.

Enable/disable

  • Enabled by default.
  • Disable with config cron.enabled=false or env CLAWDIS_SKIP_CRON=1.
  • Config: cron.store, cron.maxConcurrentRuns.

Job fields

  • name is required (non-empty).
  • description is optional.

RPC methods (Gateway WS)

  • cron.list, cron.status, cron.add, cron.update, cron.remove, cron.run, cron.runs
  • wake (enqueue system event + optionally trigger immediate heartbeat)

Payload rules

  • sessionTarget: "main" requires payload.kind: "systemEvent".
  • sessionTarget: "isolated" requires payload.kind: "agentTurn".

Examples

One-shot reminder (main session, immediate wake):

{
  "method": "cron.add",
  "params": {
    "name": "remind-me",
    "enabled": true,
    "schedule": { "kind": "at", "atMs": 1734715200000 },
    "sessionTarget": "main",
    "wakeMode": "now",
    "payload": { "kind": "systemEvent", "text": "Remind me in 20 minutes." }
  }
}

Recurring hourly check (isolated job, no external delivery):

{
  "method": "cron.add",
  "params": {
    "name": "hourly-check",
    "enabled": true,
    "schedule": { "kind": "every", "everyMs": 3600000 },
    "sessionTarget": "isolated",
    "wakeMode": "now",
    "payload": { "kind": "agentTurn", "message": "Check battery; report only if < 20%.", "deliver": false },
    "isolation": { "postToMainPrefix": "Cron" }
  }
}

Cron expression (weekday 07:30):

{
  "method": "cron.add",
  "params": {
    "name": "weekday-wakeup",
    "enabled": true,
    "schedule": { "kind": "cron", "expr": "30 7 * * 1-5", "tz": "America/Los_Angeles" },
    "sessionTarget": "isolated",
    "wakeMode": "now",
    "payload": { "kind": "agentTurn", "message": "Wake me up and start music.", "deliver": true, "channel": "whatsapp" }
  }
}

Run history

  • cron.runs returns recent JSONL entries for a job.

Notes

  • wakeMode: "now" triggers an immediate heartbeat for main jobs.
  • Isolated jobs run in cron:<jobId> sessions and post a summary back to main.

Quick Install

/plugin add https://github.com/steipete/clawdis/tree/main/clawdis-cron

Copy and paste this command in Claude Code to install this skill

GitHub 仓库

steipete/clawdis
Path: skills/clawdis-cron
relaywhatsapp

Related Skills

subagent-driven-development

Development

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

View skill

algorithmic-art

Meta

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

View skill

executing-plans

Design

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

View skill

cost-optimization

Other

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

View skill