Rotating Single Target Cron for Openclaw

A sophisticated automation skill for creating recurring cron jobs that rotate through a roster of targets while ensuring no immediate repetitions.

sakullla
v1.0.2
Mar 15, 2026
0
867
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install rotating-single-target-cron

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install rotating-single-target-cron using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Rotating Single Target Cron?

The Rotating Single Target Cron skill is designed for developers who need to implement intelligent scheduling within their AI agent workflows. Unlike standard broadcast tools, this skill ensures that only one specific @ID is targeted per run, maintaining a persistent state to avoid picking the same target twice in a row. By integrating this into your Openclaw Skills library, you can transform static announcements into dynamic, engaging interactions that feel personalized and deliberate.

This skill provides a robust framework for managing rosters and schedules while strictly controlling output quality. It leverages a local workspace state file to track history, ensuring that even if an agent restarts, the rotation logic remains intact. It is the perfect solution for teams looking to automate repetitive social or task-based mentions without the clutter of group-wide notifications.

Rotating Single Target Cron Use Cases

  • Automating daily wake-up or check-in messages for specific team members on a rotating basis.
  • Generating unique daily story prompts or creative challenges for community engagement.
  • Scheduling one-at-a-time mentions for featured members or 'contributor of the day' highlights.
  • Delivering personalized task reminders or teasing marketing copy to specific chat participants.

How Rotating Single Target Cron Works

  1. Define the roster of @IDs and the desired delivery schedule for the recurring job.
  2. Initialize a state file within the workspace memory directory to store the last-picked target.
  3. Execute a strict logic sequence that reads the state file before every run to identify the previous recipient.
  4. Select a new target from the roster, ensuring it differs from the previous one whenever alternatives are available.
  5. Update the state file with the new @ID to preserve continuity for the next scheduled run.
  6. Generate a clean, public-chat-safe message that naturally mentions the selected target without meta-commentary.

Rotating Single Target Cron Setup

To begin using this skill within the Openclaw Skills framework, ensure your workspace has a directory for persistent state. Use the following commands to prepare the environment:

mkdir -p memory/
touch memory/rotation-state.txt

Once the directory is ready, configure the cron job by providing your AI agent with the roster of IDs and the cron-style schedule string. The agent will then handle the creation of the state-aware payload automatically.

Rotating Single Target Cron Data Schema & Taxonomy

The skill relies on a simple, high-reliability data structure stored within the workspace to manage state across sessions.

Component Location Description
State File memory/<job-slug>-last-target.txt A plain text file containing exactly one @ID or the string 'none'.
Payload Configuration Runtime Cron Job Stores the logic instructions, roster list, and content style requirements.
Delivery Target Runtime Config Defines where the final message is posted (defaults to current chat).

Rotating Single Target Cron Advanced Features

  • Persistent state tracking that survives agent restarts and workspace migrations.
  • Strict output filtering to ensure no internal logic or meta-labels appear in the final chat message.
  • Support for isolated session targets to prevent cron executions from interrupting active user prompts.
  • Intelligent roster migration that repairs state files when switching from broadcast to rotation mode.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*