본문으로 건너뛰기
Skillpedia
에이전트29k · #9536

ar-loop

하는 일

이 스킬은 타이머에 따라 autoresearch 실험을 계속 돌리는 반복 루프를 설정합니다. 밤새 또는 매주처럼 백그라운드에서 실험을 돌리고 싶은 사람에게 맞습니다.

사용하는 경우

  • ✓실험을 일정에 따라 백그라운드에서 계속 돌리고 싶을 때.
  • ✓밤새 최적화를 돌리고 아침에 결과를 확인하고 싶을 때.
  • ✓이미 실행 중인 반복 실험을 멈추고 싶을 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/ar-loop/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/ar-loop/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“api-speed 실험을 한 시간마다 실행하고, 제가 말하면 멈춰 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 실험을 확인하고, 간격을 주지 않았다면 간격을 묻고, 맞는 일정으로 반복 작업을 만듭니다. 실험 이름을 말해서 실행 중인 루프를 멈출 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

/ar-loop — Autonomous Experiment Loop

Start a recurring experiment loop that runs at a user-selected interval.

Usage

/ar-loop engineering/api-speed             # Start loop (prompts for interval)
/ar-loop engineering/api-speed 10m         # Every 10 minutes
/ar-loop engineering/api-speed 1h          # Every hour
/ar-loop engineering/api-speed daily       # Daily at ~9am
/ar-loop engineering/api-speed weekly      # Weekly on Monday ~9am
/ar-loop engineering/api-speed monthly     # Monthly on 1st ~9am
/ar-loop stop engineering/api-speed        # Stop an active loop

What It Does

Step 1: Resolve experiment

If no experiment specified, list experiments and let user pick.

Step 2: Select interval

If interval not provided as argument, present options:

Select loop interval:
  1. Every 10 minutes  (rapid — stay and watch)
  2. Every hour         (background — check back later)
  3. Daily at ~9am      (overnight experiments)
  4. Weekly on Monday   (long-running experiments)
  5. Monthly on 1st     (slow experiments)

Map to cron expressions:

Interval Cron Expression Shorthand
10 minutes */10 * * * * 10m
1 hour 7 * * * * 1h
Daily 57 8 * * * daily
Weekly 57 8 * * 1 weekly
Monthly 57 8 1 * * monthly

Step 3: Create the recurring job

Use CronCreate with this prompt (fill in the experiment details):

You are running autoresearch experiment "{domain}/{name}".

1. Read .autoresearch/{domain}/{name}/config.cfg for: target, evaluate_cmd, metric, metric_direction
2. Read .autoresearch/{domain}/{name}/program.md for strategy and constraints
3. Read .autoresearch/{domain}/{name}/results.tsv for experiment history
4. Run: git checkout autoresearch/{domain}/{name}

Then do exactly ONE iteration:
- Review results.tsv: what worked, what failed, what hasn't been tried
- Edit the target file with ONE change (strategy escalation based on run count)
- Commit: git add {target} && git commit -m "experiment: {description}"
- Evaluate: python {skill_path}/scripts/run_experiment.py --experiment {domain}/{name} --single
- Read the output (KEEP/DISCARD/CRASH)

Rules:
- ONE change per experiment
- NEVER modify the evaluator
- If 5 consecutive crashes in results.tsv, delete this cron job (CronDelete) and alert
- After every 10 experiments, update Strategy section of program.md

Current best metric: {read from results.tsv or "no baseline yet"}
Total experiments so far: {count from results.tsv}

Step 4: Store loop metadata

Write to .autoresearch/{domain}/{name}/loop.json:

{
  "cron_id": "{id from CronCreate}",
  "interval": "{user selection}",
  "started": "{ISO timestamp}",
  "experiment": "{domain}/{name}"
}

Step 5: Confirm to user

Loop started for {domain}/{name}
  Interval: {interval description}
  Cron ID: {id}
  Auto-expires: 3 days (CronCreate limit)

  To check progress: /ar-status
  To stop the loop:  /ar-loop stop {domain}/{name}

  Note: Recurring jobs auto-expire after 3 days.
  Run /ar-loop again to restart after expiry.

Stopping a Loop

When user runs /ar-loop stop {experiment}:

  1. Read .autoresearch/{domain}/{name}/loop.json to get the cron ID
  2. Call CronDelete with that ID
  3. Delete loop.json
  4. Confirm: "Loop stopped for {experiment}. {n} experiments completed."

Important Limitations

  • 3-day auto-expiry: CronCreate jobs expire after 3 days. For longer experiments, the user must re-run /ar-loop to restart. Results persist — the new loop picks up where the old one left off.
  • One loop per experiment: Don't start multiple loops for the same experiment.
  • Concurrent experiments: Multiple experiments can loop simultaneously ONLY if they're on different git branches (which they are by default — each experiment gets autoresearch/{domain}/{name}).
자주 묻는 질문

어떤 간격을 쓸 수 있나요?

10분마다, 매시간, 매일 오전 9시쯤, 매주 월요일, 매월 1일에 실행할 수 있습니다.

간격을 주지 않으면 어떻게 되나요?

에이전트가 선택지 메뉴를 보여 주고 하나를 고르도록 요청합니다.

루프는 어떻게 멈추나요?

실험 이름과 함께 중지 옵션을 사용하면 됩니다.

상세 정보

작성자의 원본 설명

Use for /ar-loop, or to run an autoresearch experiment on a schedule (10 min to monthly) with CronCreate.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9536
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬