Sign in
Explore
Workflows · WorkflowEveryday codingReviewed

claude-scheduled-tasks-implementation

Repeat a Claude Code prompt on a timed interval with the /loop skill; the guide demos /loop 1m with a time prompt.

Kind
Workflow
Works with
Claude Code
Source
shanraisshan/claude-code-best-practice @ 6d0844baf620
Path
implementation/claude-scheduled-tasks-implementation.md
License
MIT
Jobs
Automation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Scheduled Tasks Implementation

![Last Updated](https://img.shields.io/badge/Last_Updated-Mar_10%2C_2026-white?style=flat&labelColor=555)

<table width="100%">
<tr>
<td><a href="../">← Back to Claude Code Best Practice</a></td>
<td align="right"><img src="../!/claude-jumping.svg" alt="Claude" width="60" /></td>
</tr>
</table>

---

<a href="#loop-demo"><img src="../!/tags/implemented-hd.svg" alt="Implemented"></a>

The `/loop` skill is used to schedule recurring tasks on a cron interval. Below is a demo of `/loop 1m "tell current time"` — a simple recurring task that fires every minute.

---

## Loop Demo

### 1. Scheduling the Task

<p align="center">
  <img src="assets/impl-loop-1.png" alt="/loop 1m tell current time — scheduling and cron setup" width="100%">
</p>

`/loop 1m "tell current time"` parses the interval (`1m` → every 1 minute), creates a cron job, and confirms the schedule. Key notes:

- Cron's minimum granularity is **1 minute** — `1m` maps to `*/1 * * * *`
- Recurring tasks **auto-expire after 3 days**
- Jobs are **session-scoped** — they live in memory only and stop when Claude exits
- Cancel anytime with `cron cancel <job-id>`

---

### 2. Loop in Action
…