ar-loop
できること
このスキルは、タイマーでオートリサーチの実験を実行し続ける定期的なループを設定します。夜間や週単位で、バックグラウンドで実験を進めたい人を対象としています。
使う場面
- ✓実験をバックグラウンドで予定どおり実行し続けたいとき。
- ✓夜の間に最適化を実行し、翌朝に結果を確認したいとき。
- ✓すでに動いている定期的な実験を停止したいとき。
スキルのリンク
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/ar-loop/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“api-speedの実験を1時間ごとに実行し、私が言ったら停止してください。”
毎週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}:
- Read
.autoresearch/{domain}/{name}/loop.jsonto get the cron ID - Call
CronDeletewith that ID - Delete
loop.json - 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-loopto 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.
人気
- GitHubのスター
- 29k
- ランキング
- #9536
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-launcher-orchestrator
29kひとつの明確な目標から始めて、自分のアカウントでClaudeのマネージドエージェントを計画し、作成し、テストし、スケジュールするまでを段階的に支援します。
grade-iterate
29kマネージドエージェントの作業をルーブリックに照らして採点し、固定された回数だけ改善させることで、終わりなく繰り返さないようにします。
interview
29kAIエージェントのアイデアについてインタビューし、回答をもとに、何かを起動する前の構築計画にまとめます。
run-without-you
29kマネージドエージェントを、スケジュールまたはイベントの発生によってあなたがいなくても動くように設定します。起動の前にcronの時刻を確認します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。