CClaude Code Catalog
All Skills

Loop Repeat Scheduler

WorkflowBeginner

Claude Code's official bundled skill /loop is a scheduler for repeating prompt execution. Supports simple repetition to cron expression-based periodic execution, automating recurring tasks like deploy monitoring, periodic code checks, and data collection.

Trigger/loop
FrequencyAs needed

DevOps monitoring service health post-deploy? Use /loop for periodic health checks

Team wanting regular code quality checks? Set up /loop + cron for daily morning auto-review

LoopCronSchedulingBundled SkillAutomation

How It Works

Run /loop [prompt] → Configure repeat
Determine repeat cycle (count or cron)
Repeat execution cycle
iteration-1
1st run + Record results
iteration-2
2nd run + Detect changes
iteration-N
Nth run + Cumulative report
Completion summary + Change history

Skill Code

# Loop Scheduler — Built-in Bundled Skill ## Trigger: /loop [prompt] Claude Code's official bundled skill for repeating tasks. ### Usage patterns: 1. Simple repeat: ```bash # Run a prompt 5 times /loop --count 5 "check for new errors in logs" ``` 2. Cron scheduling: ```bash # Run every 30 minutes /loop --cron "*/30 * * * *" "run health check on staging" # Run daily at 9 AM /loop --cron "0 9 * * *" "generate daily code quality report" ``` 3. Deploy monitoring: ```bash # Monitor after deploy for 1 hour /loop --duration 1h --interval 5m "check error rates and latency" ``` ### Key features: - Cron expression support (v2.1.71+) - Iteration-aware context (each run knows its position) - Change detection between iterations - Cumulative reporting - Stop conditions (on error, on success, on change) ### Output per iteration: - Timestamp and iteration number - Results and any changes detected - Running summary across iterations

Copy and paste into your CLAUDE.md to start using immediately.

How Loop Repeat Scheduler Works

Loop repeats a specified prompt using count-based (--count) or cron-based (--cron) scheduling. Each iteration records results and detects changes from previous runs, generating a cumulative report.

When to Use Loop Repeat Scheduler

Ideal for post-deploy monitoring, periodic code quality checks, and recurring data collection tasks.

Key Strengths

  • Cron expressions enable precise scheduling
  • Inter-iteration change detection for anomaly alerts
  • Cumulative reports for trend analysis
  • Configurable stop conditions (on error, success, or change)

Same Category

Workflow View All

Popular in Other Categories