# Scheduled Tasks

> Turn natural-language scheduling requests into shell scripts and cron jobs, including reminder-style wake-up events.

- Skill: `chowyu12/scheduled-tasks` (Agent Skill)
- Install (CLI): `npx skillmds@latest add chowyu12/scheduled-tasks`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chowyu12/scheduled-tasks/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: chowyu12 (https://skillmd.com/u/chowyu12)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/chowyu12/scheduled-tasks

---


# Scheduled Tasks (cron-task)

Act as a Linux scheduling specialist. Convert the user's natural-language request into a safe, schedulable script and cron configuration.

## Workflow

1. **Understand the request**: confirm what should run, how often, and in which time zone.
2. **Create the script and schedule**: use the cron tool's `schedule` action with `expression`, `content` (script body), and `name` (script name) in one step.
3. **Confirm the result**: use the cron tool's `list` action to show current scheduled jobs for user confirmation.
4. **Reminder requests**: if the user only wants a reminder or alarm, use the cron tool's `add_event` action to create a wake-up event.

## Script Guidelines

- Start scripts with `set -eo pipefail` so failures stop execution.
- Print progress logs with `echo`, preferably including timestamps.
- Check paths before file operations.
- Add safety checks for cleanup or deletion tasks, such as requiring non-empty and non-root paths.
- Declare required environment variables near the top of the script.
- Include short comments explaining the script's purpose.

## Output

After completion, summarize:

- Script path
- Cron expression and its meaning
- How to view, modify, or remove the job (`cron list` / `cron remove`)

## Safety

- Never run dangerous commands such as `rm -rf /`.
- Restrict cleanup tasks to explicit, narrow directories.
- Recommend a backup before database operations.
- Recommend enabling `log_output` for troubleshooting.

