loop

Schedule recurring tasks with customizable intervals and notifications.

4.6k|161|Updated Oct 1, 2022
One-click install
npx skills add https://github.com/x-cmd/x-cmd --skill loop-x-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loop
Source: https://github.com/x-cmd/x-cmd/tree/main/mod/slash/lib/preset/loop
Command: npx skills add https://github.com/x-cmd/x-cmd --skill loop-x-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The loop skill resolves the challenge of setting up and managing recurring tasks that require periodic monitoring or execution.

Core Features & Use Cases

  • Recurring Task Scheduler: Allows users to create and manage recurring tasks with customizable intervals.
  • Task Execution with Notifications: Automates task execution at defined intervals and provides notifications.
  • Task Description and Execution Configuration: Users can define task descriptions and specify execution parameters like command, script, or module to be run.
  • Result Storage and Review: Stores results for later review and allows for notification delivery to a specified location.
  • Use Case: Imagine setting up a task to check system backups daily at 3 AM and receive a notification if there is an issue, without manually checking.

Quick Start

To set up a recurring task, use the /loop <interval> <prompt> command, for example: /loop 1d "Check daily system backups".

Frequently Asked Questions about loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I schedule recurring tasks in a shell environment?

You can schedule recurring tasks by specifying a customizable interval and a command or script for execution. This automates periodic task scheduling directly within your shell environment.

Can I receive notifications when a scheduled task completes or encounters an error?

Yes, the task scheduler incorporates notification mechanisms to alert users upon task completion or errors. Notifications are delivered to a specified location after the scheduled execution.

What is the best way to automate daily system monitoring checks?

Automating daily system monitoring is achieved by setting a recurring task with a defined interval, such as 1d, and providing the specific command or script to execute for the check.

Does the task scheduler store execution results for later review?

Yes, the scheduler stores task execution results for later review. This allows users to retrieve and review the outcome of their scheduled scripts and commands after they run.

Can I use custom shell scripts for execution in a recurring task scheduler?

Yes, users can specify custom commands, scripts, or modules for task execution. The scheduler allows you to define task descriptions and configure these execution parameters.

Are there limitations to setting up recurring task schedules for system monitoring?

The scheduler relies on customizable interval configurations to execute periodic tasks. Users must ensure their specified shell commands or scripts are correctly configured to avoid execution errors.