loop
Что он делает
Этот скилл настраивает повторяющийся промпт, например проверку сборки или запроса на слияние, по таймеру или в самостоятельном ритме. Он нужен людям, которые хотят, чтобы что-то отслеживалось или повторялось без ручного запуска каждый раз.
Когда использовать
- ✓Когда вам нужна задача, например проверка сборки, которая повторяется каждые несколько минут.
- ✓Когда вы хотите, чтобы запрос на слияние или развертывание проверялись снова по заданному расписанию.
- ✓Когда вам нужно посмотреть или отменить работающие повторяющиеся задания.
Ссылка на скилл
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/loop/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверяйте сборку каждые 10 минут и сообщите мне, как только она упадет.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент разбирает интервал и промпт, сразу выполняет его один раз и планирует последующие запуски. Подкоманды list и clear показывают активные задания или отменяют их.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
/loop — run a prompt repeatedly
Subcommands
If the input (after stripping the /loop prefix) is exactly one of these keywords, run the subcommand instead of scheduling:
list— call CronList and display the results. Done.clear— call CronList, then call CronDelete for every job returned. Confirm how many were cancelled. Done.
Parsing
Parse the input after removing the /loop prefix:
- Empty input (no prompt, no interval): the autonomous path — run a self-paced autonomous loop. See the Autonomous mode section.
- Leading interval token: if the first whitespace-delimited token matches
^\d+[smhd]$(e.g.5m,2h), this is the fixed-interval recurring path. The rest is the prompt. - Trailing "every" clause: otherwise, if the input ends with
every <N><unit>orevery <N> <unit-word>(e.g.every 20m,every 5 minutes,every 2 hours), this is the fixed-interval recurring path. Extract that interval and strip it from the prompt. Only match when what follows "every" is a time expression —check every PRhas no interval. - Prompt-only input: otherwise, the entire input is the prompt and this is the prompt-only self-paced path.
If an interval was given but the prompt is empty (e.g. /loop 5m), this is a fixed-interval autonomous loop — see the Autonomous mode section.
Examples:
5m /babysit-prs→ fixed interval5m, prompt/babysit-prs(leading interval token)check the deploy every 20m→ fixed interval20m, promptcheck the deploy(trailing "every" clause)run tests every 5 minutes→ fixed interval5m, promptrun tests(trailing "every" clause)check every PR→ prompt-only self-paced path, promptcheck every PR("every" is not followed by a time expression)check the deploy→ prompt-only self-paced path, promptcheck the deploy- (empty) → self-paced autonomous loop (sentinel
<<autonomous-loop-dynamic>>) 5m→ fixed-interval autonomous loop (interval5m, sentinel<<autonomous-loop>>)
Prompt-only self-paced path
Use this path only when the user supplied a prompt and no interval.
- Do not call CronCreate for this path.
- If this tick opens with a
<task-notification>block (a monitor or background event re-invoked you, not a bare/loopwakeup prompt), handle that event before re-running the prompt.- If the notification says the watched condition was met, cancel any pending fallback LoopWakeup with CronDelete if you still have its ID, then finish the loop.
- If a monitor auto-stopped on idle or max-events, restart it once if the watch is still useful, re-arm the fallback, report the restart count to the user, and include that count in the LoopWakeup prompt or reason (for example,
monitor restarted 1/1 time) so it survives context compaction. If it auto-stops again on the next tick, end the loop and report the repeated auto-stop to the user. - If the signal is ambiguous, re-arm a shorter follow-up and investigate on the next tick. If the signal remains ambiguous for three consecutive ticks, end the loop and report that the watch could not reach a clear conclusion.
- Run the parsed prompt immediately now.
- If it is a slash command, invoke it via the Skill tool.
- Otherwise, act on it directly.
- Before ending the turn, decide whether another check is useful.
- Call LoopWakeup only if continued follow-up is useful.
- Do not call LoopWakeup if the task is complete.
- Do not call LoopWakeup if the task is blocked on user input or external state that cannot be checked later.
- Do not call LoopWakeup just to keep polling when no useful next check exists.
- If you started a background agent or a Monitor, it wakes you via a terminal
<task-notification>on exit, failure, cancellation, or monitor auto-stop — so set LoopWakeup as a long fallback rather than a short poll. Do not omit it just because something is watching: the work may hang, or a Monitor may auto-stop on idle or max-events (and one owned by another agent routes its notification only to that agent). Omit LoopWakeup only on the terminal conditions above (complete, blocked, or repeated monitor auto-stop).
- When scheduling a continuation, call LoopWakeup with:
delaySeconds: the next useful delay in seconds. The runtime clamps to 60–3600 (1–60 min); follow the tool's own guidance on picking a value — it accounts for the prompt-cache window and for the fallback-heartbeat case when a background task will wake
Частые вопросы
Как посмотреть запущенные циклы?
Используйте подкоманду list, которая показывает запланированные задания.
Как остановить их все?
Используйте подкоманду clear, которая отменяет все запланированные задания.
Что если не указать интервал?
Агент запускает цикл в самостоятельном темпе и сам выбирает время.
Подробности
Оригинальное описание автора
Create a loop that runs a prompt now and follows up either on a fixed schedule or through self-paced wakeups. Usage - /loop check the build, /loop 5m check the build, /loop check the PR every 30m. /loop list to show jobs, /loop clear to cancel all.
repo: QwenLM/qwen-code
Популярность
- Звёзды на GitHub
- 29k
- Место в рейтинге
- #9782
- Лицензия
- Apache-2.0
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
codegraph
29kПомогает агенту анализировать проиндексированный код через граф вызовов, зависимости, мертвый код, горячие точки и семантический поиск.
qwen-code-claw
29kПомогает агенту передавать задачи по коду в Qwen Code: разобраться в кодовой базе, исправить баг, отрефакторить код или создать новый проект.
structured-debugging
29kУчит агента пошагово отлаживать сложные баги: сформулировать гипотезу, добавить точечные проверки, проверить ее и найти реальную причину до исправления.
tmux-real-user-testing
29kПомогает агенту тестировать терминальное приложение как живой пользователь внутри tmux, сохраняя читаемый журнал со снимком экрана на каждом действии.
Похожие скиллы
knowledge-automation
394kПомогает агенту настроить задачу по расписанию, которая добавляет новое содержимое в хранилище Knowledge, и проверить, что задача работает.
knowledge-source-ingest
394kПомогает агенту держать хранилище Knowledge в актуальном состоянии, добавляя новое из чатов, лент или почтовых ящиков без повторного добавления уже сохраненного.
benchmark
280kПомогает агенту измерять скорость и производительность кода. Полезен, чтобы убедиться, что всё быстро, и найти причины тормозов.