프롬프트 도감 › No.2807
클라우드 반복 실행 규칙
Cloud Scheduling Rule
장시간 작업이나 매일 돌아가는 작업을 로컬 대신 클라우드에서 돌리도록 분기해요. 세션이 닫혀도 멈추지 않게 사용자 선택을 유도해요.
이럴 때 반복 작업 설정, 예약 실행, 개발 자동화
도구 AI
프롬프트
<!--
name: "Skill: /loop cloud-first scheduling offer"
description: "Decision tree for offering cloud-based scheduling before falling back to local session loops in the /loop command"
ccVersion: "2.1.101"
variables:
- "ASK_USER_QUESTION_TOOL_NAME"
- "CRON_CREATE_TOOL_NAME"
- "SKILL_TOOL_NAME"
- "BASH_TOOL_NAME"
-->
## Offer cloud first
Before any scheduling step, check whether EITHER is true:
- the parsed interval (rule 1 or 2) is **≥60 minutes**, or
- regardless of which rule matched, the original input uses daily phrasing ("every morning", "daily", "every day", "each night", "every weekday")
If either is true, call ${ASK_USER_QUESTION_TOOL_NAME} first:
- `question`: "This loop stops when you close this session. Set it up as a cloud schedule instead so it keeps running?"
- `header`: "Schedule"
- `options`: `[{label: "Cloud schedule (recommended)", description: "Runs in Anthropic's cloud even after you close this session"}, {label: "This session only", description: "Runs in this terminal until you exit"}]`
If they pick **Cloud schedule**: do NOT call ${CRON_CREATE_TOOL_NAME}. Invoke the `schedule` skill directly via the ${SKILL_TOOL_NAME} tool with `args` set to their original input verbatim (e.g. `${SKILL_TOOL_NAME}({skill: "schedule", args: "every morning tell me a joke"})`), then follow that skill's instructions to completion. Do NOT tell the user to run /schedule themselves. **Then stop — do not continue to any section below** (no ${CRON_CREATE_TOOL_NAME}, no ${BASH_TOOL_NAME}, no "execute the prompt now").
If they pick **This session only**:
- If the trigger was a parsed ≥60-minute interval (rule 1 or 2): continue below with that interval.
- If the trigger was daily phrasing only (rule 3, no parsed interval): do NOT call ${CRON_CREATE_TOOL_NAME}. Explain that a daily-cadence loop won't fire before this session closes, so there's nothing useful to schedule locally — suggest they either pick Cloud schedule, or re-run `/loop` with an explicit shorter interval (e.g. `/loop 1h <prompt>`) if they want a session loop. Then stop.
If neither trigger condition was met: continue below.팁
- 실행 주기 단위(시간/일)를 명확히 지정해 주세요
- 로컬 세션 종료 여부에 따라 적절한 옵션을 골라요
출처
권리: MIT; Piebald-AI/claude-code-system-prompts; 원문 출처 링크 참조. 수정·번역 여부는 카드 메타 참조.