본문으로 건너뛰기
cccskills
무료GitHub에 공개

loop

Run a prompt immediately, then repeat it on a fixed schedule or when another check is useful. Use it to follow builds and pull requests, work through a task file, and list or cancel scheduled jobs.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Check build status at regular intervals
  • Follow up on a pull request
  • Work through tasks stored in loop.md
  • List scheduled jobs or cancel them all

포함된 파일(8)

  • SKILL.md9.9 KB
  • autonomous-loop.test.ts1.9 KB
  • autonomous-loop.ts8.2 KB
  • loop-task-file.test.ts28.2 KB
  • loop-task-file.ts16.0 KB
  • loop-tick-resolver.test.ts34.5 KB
  • loop-tick-resolver.ts19.5 KB
  • SKILL.test.ts4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/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:

  1. Empty input (no prompt, no interval): the autonomous path — run a self-paced autonomous loop. See the Autonomous mode section.
  2. 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.
  3. Trailing "every" clause: otherwise, if the input ends with every <N><unit> or every <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 PR has no interval.
  4. 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 interval 5m, prompt /babysit-prs (leading interval token)
  • check the deploy every 20m → fixed interval 20m, prompt check the deploy (trailing "every" clause)
  • run tests every 5 minutes → fixed interval 5m, prompt run tests (trailing "every" clause)
  • check every PR → prompt-only self-paced path, prompt check every PR ("every" is not followed by a time expression)
  • check the deploy → prompt-only self-paced path, prompt check the deploy
  • (empty) → self-paced autonomous loop (sentinel <<autonomous-loop-dynamic>>)
  • 5m → fixed-interval autonomous loop (interval 5m, sentinel <<autonomous-loop>>)

Prompt-only self-paced path

Use this path only when the user supplied a prompt and no interval.

  1. Do not call CronCreate for this path.
  2. If this tick opens with a <task-notification> block (a monitor or background event re-invoked you, not a bare /loop wakeup 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.
  3. Run the parsed prompt immediately now.
    • If it is a slash command, invoke it via the Skill tool.
    • Otherwise, act on it directly.
  4. 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).
  5. 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 you.
    • prompt: /loop ${original prompt} plus any state the next tick must preserve, such as monitor restarted 1/1 time.
    • reason: a short reason for the chosen delay. Include the monitor restart count here when re-arming after an auto-stop.
  6. Briefly tell the user what was done now. If a wakeup was scheduled, include when the next check is expected. If no wakeup was scheduled because a notification ended the loop, mention whether the stale fallback was cancelled; if the wakeup ID was lost, ignore or answer the stale wakeup briefly when it fires.

Fixed-interval recurring path

Use this path only for inputs with a leading interval token or a trailing "every" clause.

Interval to cron

Supported suffixes: s (seconds, rounded up to nearest minute, min 1), m (minutes), h (hours), d (days). Convert:

Interval patternCron expressionNotes
Nm where N <= 59*/N * * * *every N minutes
Nm where N >= 600 */H * * *round to hours (H = N/60, must divide 24)
Nh where N <= 230 */N * * *every N hours
Nd0 0 */N * *every N days at midnight local
Nstreat as ceil(N/60)mcron minimum granularity is 1 minute

If the interval does not cleanly divide its unit (for example 7m gives uneven gaps at :56 to :00, or 90m is 1.5 hours which cron cannot express), pick the nearest clean interval and tell the user what you rounded to before scheduling.

Action

  1. Call CronCreate with:
    • cron: the expression from the table above
    • prompt: the parsed prompt from above, verbatim (slash commands are passed through unchanged)
    • recurring: true
    • durable: true if the user's language implies persistence ("keep doing this", "set this up permanently", "every day even after restart"). Otherwise omit (defaults to session-only).
  2. Briefly confirm: what is scheduled, the cron expression, the human-readable cadence, the auto-expiry (7 days after creation by default — the CronCreate tool description states the configured limit, which may differ or be disabled), and that they can cancel sooner with CronDelete (include the job ID).
  3. Then immediately execute the parsed prompt now. Do not wait for the first cron fire.
    • If it is a slash command, invoke it via the Skill tool.
    • Otherwise, act on it directly.

loop.md task-file mode

Use this when the user wants the loop to work a task list kept in a file (they say "work through my loop.md", "loop over the tasks in .qwen/loop.md", or point at such a file). Tasks live in .qwen/loop.md (project) or ~/.qwen/loop.md (home; project wins). Instead of a natural-language prompt, set the loop's prompt to a sentinel so each fire re-reads the file:

  • Self-paced (no interval) → LoopWakeup prompt: <<loop.md-dynamic>>
  • Fixed interval → CronCreate prompt: <<loop.md>> (with recurring: true, and durable: true if persistence is implied)

At each fire you receive either the full task list (first delivery, after the file changes, or after a compaction) or a short reminder to keep working the list established earlier. Work the tasks; in self-paced mode re-arm LoopWakeup with <<loop.md-dynamic>> only when continued follow-up is useful (same "don't re-arm if complete/blocked" rules as the prompt-only path). If .qwen/loop.md is absent at fire time, the loop falls back to autonomous mode (it keeps working autonomously instead of no-op'ing); a recreated file is picked up on the next fire. Confirm to the user in plain language ("looping over your .qwen/loop.md task list…"), not the raw sentinel.

Autonomous mode

Use this for a bare /loop (no prompt, no file) — the user wants you to keep their work moving while they're away. Arm the loop with an autonomous sentinel and run the first check now:

  • Self-paced (empty input) → LoopWakeup prompt: <<autonomous-loop-dynamic>>
  • Fixed interval (/loop <interval>, no prompt) → CronCreate prompt: <<autonomous-loop>> (with recurring: true, and durable: true if persistence is implied)

The first immediate check, and each scheduled fire, advance work the conversation already established — finish things the user started, maintain an in-progress PR (address review threads, fix failing CI, resolve conflicts), honor "I'll also…" commitments. You are a steward, not an initiator: act on what the transcript already established; never invent new work or make irreversible changes (push, delete, send) without clear authorization. If everything is genuinely quiet, say so in one sentence and stop. The first fire (and the first after a compaction) delivers fuller guidance; later fires send a short reminder pointing back to it. In self-paced mode re-arm LoopWakeup with <<autonomous-loop-dynamic>> (same "don't re-arm if complete/blocked" rules). Confirm to the user in plain language ("running an autonomous loop on your work…"), not the raw sentinel.

Input

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Write clear briefs for subagents and conversation forks, agents that inherit conversation history. Specify purpose, known findings, scope, and expected output while respecting each agent's existing role and separating research requests from implementation.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Writing a focused research brief for a subagent
  • Specifying files and constraints for implementation
  • Defining scope for an agent inheriting conversation history
QwenLM/qwen-code2.9만2026년 10월 18일 업데이트

Compare a feature implemented in Qwen Code with Codex or Claude Code under the same scenario. Capture communication and terminal records, inspect tool definitions and outputs, and guide fixes toward matching observable behavior.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking a reproduced feature against its reference agent
  • Comparing tool definitions and required arguments
  • Investigating differences in terminal output
QwenLM/qwen-code2.9만2026년 10월 18일 업데이트

Reproduce a Codex or Claude Code feature in Qwen Code or another command-line agent. Capture requests, terminal output, and state changes, then use that evidence to implement focused behavior and add a verification path.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reproduce an existing agent's slash command
  • Inspect request formats and tool definitions
  • Compare terminal output and saved state
QwenLM/qwen-code2.9만2026년 10월 18일 업데이트

autofix

무료

Review local uncommitted changes, verify findings, and repeat focused repairs until the review converges or a blocker remains. Also supports Qwen Code issue fixes and review responses within workflows run through GitHub Actions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review and repair local uncommitted changes
  • Develop a focused fix for a selected issue
  • Verify and address pull request feedback
QwenLM/qwen-code2.9만2026년 10월 18일 업데이트

batch

무료

Apply the same operation across multiple files using parallel worker agents. The skill finds matching files, divides the work, and reports successes, failures, and skipped files, with a preview option before edits.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add license headers across source files
  • Convert JavaScript files to TypeScript
  • Fix the same lint issue in multiple files
QwenLM/qwen-code2.9만2026년 10월 18일 업데이트

batch-api

무료

Prepare shared instructions for translating, rewriting, or extracting information from many independent files, then submit a plan through the DashScope Batch API. Processing runs asynchronously at half the realtime list price and delivers new files later.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Translate many documents using shared terminology
  • Rewrite independent files into a consistent format
  • Extract structured data from a collection of files
QwenLM/qwen-code2.9만2026년 10월 18일 업데이트

QwenLM의 스킬 모두 보기

이 스킬의 문제 신고