loop-patterns

Automate recurring tasks with interval-based loops, session-scoped schedules, and self-paced wakeups.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/youssefKadaouiAbbassi/yka-code --skill loop-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loop-patterns
Source: https://github.com/youssefKadaouiAbbassi/yka-code/tree/main/skills/loop-patterns
Command: npx skills add https://github.com/youssefKadaouiAbbassi/yka-code --skill loop-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates recurring tasks, allowing you to set up scheduled jobs that run at a specified interval or time, saving you from manually repeating tasks.

Core Features & Use Cases

  • Fixed-Interval Recurrence: Schedule tasks to run at fixed intervals using /loop.
  • Session-Scope Scheduling: Use CronCreate for tasks that need to run at a specific time within a session.
  • Self-Paced Wakeup: Implement ScheduleWakeup for tasks that depend on a model's progress or external signals.

Quick Start

To start a loop that checks for new pull requests every 5 minutes, use the command: /loop 5m /check-prs

Frequently Asked Questions about loop-patterns

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

FAQPage Schema
How do I automate recurring tasks on a fixed interval?

Session-scope scheduling allows tasks to run at a specific time within an active session. By creating a session-scoped schedule, you ensure your recurring tasks execute precisely when needed during that session.

What is the best way to schedule a recurring task based on model progress?

To set up a fixed-interval loop, use the loop command followed by a time interval and the task script. For example, entering a five-minute interval with your script automates the execution of that recurring task.

Can I schedule recurring tasks to run at a specific time within a session?

Session-scope scheduling allows tasks to run at a specific time within an active session. By creating a session-scoped schedule, you ensure your recurring tasks execute precisely when needed during that session.

What is the best way to schedule a recurring task based on model progress?

Self-paced wakeups let you schedule recurring tasks based on a model's progress or external signals. This mechanism delays execution until specific progress milestones are reached, offering flexible task automation.

Do I need any external dependencies to set up task scheduling?

Use self-paced wakeups to schedule recurring tasks based on a model's progress or external signals. This approach delays the next execution until specific progress milestones are reached, offering flexible task automation.