loop
O que ela faz
Esta skill configura um prompt que se repete, como verificar um build ou um pull request, em um intervalo cronometrado ou em um agendamento de ritmo próprio. É para quem quer algo monitorado ou repetido sem iniciar tudo manualmente a cada vez.
Quando usar
- ✓Quando você quer uma tarefa, como verificar um build, repetida a cada poucos minutos.
- ✓Quando você quer que um pull request ou uma implantação seja verificado de novo em um horário definido.
- ✓Quando você quer listar ou cancelar os loops repetidos que estão rodando.
Link da skill
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/loop/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Verifique o build a cada 10 minutos e me avise assim que falhar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente interpreta o intervalo e o prompt, executa uma vez imediatamente e agenda as próximas execuções. Os subcomandos de listar e limpar mostram ou cancelam os trabalhos ativos.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Como vejo meus loops em execução?
Use o subcomando de listagem, que mostra os trabalhos agendados.
Como paro todos?
Use o subcomando de limpeza, que cancela todos os trabalhos agendados.
E se eu não informar o intervalo?
O agente executa um loop de ritmo próprio e escolhe ele mesmo o intervalo.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 29 mil
- Posição no ranking
- #9782
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
codegraph
29 milAjuda seu agente a analisar uma base de código indexada por meio do seu grafo de chamadas, das dependências, do código morto, dos pontos críticos e da busca semântica.
qwen-code-claw
29 milAjuda seu agente a passar tarefas de programação para o Qwen Code, como entender uma base de código, corrigir bugs, refatorar código ou gerar um novo projeto.
structured-debugging
29 milEnsina seu agente um método passo a passo para depurar bugs difíceis: formular uma hipótese, adicionar verificações pontuais, testá-la e encontrar a causa real antes de corrigir.
tmux-real-user-testing
29 milAjuda seu agente a testar um aplicativo de terminal como um usuário real dentro do tmux, salvando um registro legível passo a passo com uma captura de tela de cada ação.
Skills parecidas
knowledge-automation
394 milAjuda seu agente a configurar uma tarefa recorrente que traz conteúdo novo para o seu Knowledge vault em uma agenda e a verificar se ela roda.
knowledge-source-ingest
394 milAjuda seu agente a manter o Knowledge vault atualizado com itens novos de canais de chat, feeds ou caixas de e-mail, sem adicionar de novo o que já existe.
benchmark
280 milAjuda seu agente a medir a velocidade e a performance do código. É útil para garantir que as coisas estão rápidas e para encontrar problemas de lentidão.