loop
alirezarezvani/claude-skills
Schedule autonomous experiment loops at fixed intervals (10min to monthly) using cron scheduling.
What is loop?
Starts a recurring experiment loop that runs at user-selected intervals (10 minutes, hourly, daily, weekly, or monthly). Uses CronCreate for scheduling and automatically manages experiment iterations, commits, and evaluation. Use when you need to run autoresearch experiments continuously on a schedule.
- Schedule experiments to run at 10-minute, hourly, daily, weekly, or monthly intervals
- Automatically execute one experiment iteration per scheduled run: review results, make one targeted change, commit, and evaluate
- Store loop metadata and cron job IDs for tracking and stopping loops
- Auto-detect consecutive crashes (5+) and self-delete the cron job with alerts
- Update experiment strategy documentation every 10 runs
How to install loop
npx skills add https://github.com/alirezarezvani/claude-skills --skill loop- An autoresearch experiment already set up with config.cfg, program.md, and results.tsv
- CronCreate tool available for scheduling recurring jobs
- Git repository with experiment branches
How to use loop
- 1.Run /ar:loop {domain}/{name} to start a new loop, optionally specifying interval (10m, 1h, daily, weekly, monthly)
- 2.If no interval provided, select from the presented menu
- 3.The skill resolves the experiment, creates a cron job, and stores metadata in .autoresearch/{domain}/{name}/loop.json
- 4.Monitor progress with /ar:ar-status or check results.tsv directly
- 5.Stop any loop with /ar:loop stop {domain}/{name}
Use cases
- Run rapid API performance experiments every 10 minutes while monitoring in real-time
- Schedule overnight daily experiments to test changes and report results by morning
- Set up weekly long-running experiments that iterate slowly over time
- Monitor monthly slow-moving experiments without manual intervention
- Automatically escalate experiment strategies based on historical results
- Researchers running iterative autoresearch experiments
- Engineers optimizing APIs or systems over time
- Teams running continuous integration-style experiment loops
- Anyone needing hands-off experiment scheduling
loop FAQ
CronCreate jobs auto-expire after 3 days. Results persist, so you can re-run /ar:loop to restart the loop and pick up where it left off.
No, only one loop per experiment. Multiple different experiments can loop simultaneously if they're on separate git branches.
After 5 consecutive crashes in results.tsv, the skill automatically deletes the cron job and alerts you.
It reviews results.tsv to see what worked and failed, then makes one escalating change based on the experiment strategy in program.md.
The skill provides five preset intervals (10m, 1h, daily, weekly, monthly) mapped to specific cron expressions; custom cron expressions are not supported.
Full instructions (SKILL.md)
Source of truth, from alirezarezvani/claude-skills.
name: "loop" description: "Start an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly). Uses CronCreate for scheduling. Use when the user runs /ar:loop or asks to run an autoresearch experiment continuously on a schedule." command: /ar:loop
/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: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}).
Related skills
More from alirezarezvani/claude-skills and the wider catalog.

marketing-demand-acquisition
Creates demand generation campaigns, optimizes paid ad spend across LinkedIn, Google, and Meta, develops SEO strategies, and structures partnership programs. Use when planning demand gen strategy, growth marketing, advertising campaigns, PPC optimization, lead generation, pipeline generation, or marketing budgets. Covers multi-channel acquisition (Google Ads, LinkedIn Ads, Meta Ads), CAC analysis, MQL/SQL workflows, attribution modeling, technical SEO, and co-marketing partnerships. Default calibration profile is a Series A+ B2B SaaS scaling internationally (EU/US/Canada, hybrid PLG/Sales-Led) — adapt benchmarks for other stages and motions rather than skipping the skill.

marketing-ops
Central router for the marketing skill ecosystem. Use when unsure which marketing skill to use, when orchestrating a multi-skill campaign, or when coordinating across content, SEO, CRO, channels, and analytics. Also use when the user mentions 'marketing help,' 'campaign plan,' 'what should I do next,' 'marketing priorities,' or 'coordinate marketing.'

marketing-skills
Directory and router for 44 specialist marketing skills across content, SEO, CRO, channels, growth, and intelligence.

marketing-strategy-pmm
Product marketing skill for positioning, GTM strategy, competitive intelligence, and product launches. Use when the user asks about product positioning, go-to-market planning, competitive analysis, target audience definition, ICP definition, market research, launch plans, or sales enablement. Covers April Dunford positioning, ICP definition, competitive battlecards, launch playbooks, and international market entry. Produces deliverables including positioning statements, battlecard documents, launch plans, and go-to-market strategies.

mdr-745-specialist
EU MDR 2017/745 compliance specialist for medical device classification, technical documentation, clinical evidence, and post-market surveillance. Covers Annex VIII classification rules, Annex II/III technical files, Annex XIV clinical evaluation, Art. 86 PSUR schedules, and EUDAMED integration. Use when classifying a medical device under MDR, building or gap-checking a technical file, planning clinical evaluation or PMS/PSUR cadence, or preparing for notified body review (e.g., 'what class is my device under MDR', 'review my PSUR schedule').

merge
Merge winning agent branch into base, archive losers, and clean up worktrees after AgentHub evaluation.