autoresearch-create
できること
このスキルは、速度やサイズなど、あなたが選んだ目標のために、繰り返しのテストと改善のサイクルを設定します。小さな変更を繰り返し試し、その結果を測りたい人向けです。
使う場面
- ✓多くの変更を試して、プログラムの実行速度などを最適化したいとき。
- ✓AIにautoresearchを実行させ、ある対象で実験を始めさせたいとき。
- ✓推測ではなく、測定された結果をログに残したいとき。
スキルのリンク
https://github.com/davebcn87/pi-autoresearch/blob/main/skills/autoresearch-create/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“並べ替え関数をより速く動くようにautoresearchを設定してください。改善が続く限り、続けてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、まず何を測るかを尋ね、その後、.autoというフォルダに計画と測定用のスクリプトを保存します。各アイデアを実行し、結果を記録し、改善は残して、失敗した試みは元に戻します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Autoresearch
Autonomous experiment loop: try ideas, keep what works, discard what doesn't, never stop.
Tools
init_experiment— configure session (name, metric, unit, direction). Call again to re-initialize with a new baseline when the optimization target changes.run_experiment— runs command, times it, captures output.log_experiment— records result.keepauto-commits.discard/crash/checks_failedauto-reverts code changes (autoresearch files preserved). Always include secondarymetricsdict. Dashboard: ctrl+shift+t.
Session files
All session files live in a single .auto/ subfolder at the working directory root. This keeps everything in one place — easy to preserve across reverts, gitignore, and clean up.
| File | Purpose |
|---|---|
.auto/prompt.md |
Experiment prompt / playbook (heart of the session) |
.auto/measure.sh |
Benchmark script — emits METRIC name=value lines |
.auto/log.jsonl |
Append-only result log (written by the tools) |
.auto/ideas.md |
Ideas backlog (optional) |
.auto/checks.sh |
Correctness checks (optional) |
.auto/config.json |
Session config (optional) |
.auto/hooks/{before,after}.sh |
Lifecycle hooks (optional) |
Always create files in the
.auto/layout. Legacy flatautoresearch.*files are still read for in-flight sessions, but new sessions should use.auto/.
Setup
- Ask (or infer): Goal, Command, Metric (+ direction), Files in scope, Constraints.
git checkout -b autoresearch/<goal>-<date>- Read the source files. Understand the workload deeply before writing anything.
mkdir -p .auto, then write.auto/prompt.mdand.auto/measure.sh(see below). Commit both.init_experiment→ run baseline →log_experiment→ start looping immediately.
.auto/prompt.md
This is the heart of the session. A fresh agent with no context should be able to read this file and run the loop effectively. Invest time making it excellent.
# Autoresearch: <goal>
## Objective
<Specific description of what we're optimizing and the workload.>
## Metrics
- **Primary**: <name> (<unit>, lower/higher is better) — the optimization target
- **Secondary**: <name>, <name>, ... — independent tradeoff monitors
## How to Run
`./.auto/measure.sh` — outputs `METRIC name=number` lines.
## Files in Scope
<Every file the agent may modify, with a brief note on what it does.>
## Off Limits
<What must NOT be touched.>
## Constraints
<Hard rules: tests must pass, no new deps, etc.>
## What's Been Tried
<Update this section as experiments accumulate. Note key wins, architectural
insights, and discarded ideas: why they failed and what would justify revisiting them.>
Update .auto/prompt.md periodically — especially the "What's Been Tried" section — so resuming agents have full context.
.auto/measure.sh
Bash script (set -euo pipefail) that: pre-checks fast (syntax errors in <1s), runs the benchmark, and outputs structured lines to stdout. Keep the script fast — every second is multiplied by hundreds of runs.
For fast, noisy benchmarks (< 5s), run the workload multiple times inside the script and report the median. This produces stable data points and makes the confidence score reliable from the start. Slow workloads (ML training, large builds) don't need this — single runs are fine.
Structured output
METRIC name=value— primary metric (must matchinit_experiment'smetric_name) and any secondary metrics. Parsed automatically byrun_experiment.
Design the script to inform optimization
The script should output whatever data helps you make better decisions in the next iteration. Think about what you'll need to see after each run to know where to focus:
- Phase timings when the workload has distinct stages
- Error counts, failure categories, or test names when checks can fail in different ways
- Memory usage, cache hit rates, or other runtime diagnostics when relevant
- Anything domain-specific that would help localize regressions or identify bottlenecks
The script runs the same code every iteration — but you can update it during the loop if you discover you need more signal. Add instrumentation as you learn what matters.
Agent-supplied ASI via log_experiment
Use log_experiment's asi parameter to annotate each run with whatever would help the next iteration make a better decision. Free-form key/value pairs — you de
よくある質問
開始するには何を伝える必要がありますか?
最適化する対象と、それを測定する方法が必要です。スキルはその両方の設定を手伝います。
私のコードの変更は取り消されますか?
捨てられた実験や失敗した実験は自動的に元に戻され、残されたものはコミットされます。
結果はどのように記録されますか?
すべての実行が.autoフォルダのログに書かれるため、何を試したかを確認できます。
詳細
作者による元の説明
Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
人気
- GitHubのスター
- 8.2k
- ランキング
- #12522
- ライセンス
- MIT
- 更新日
- 2026/10/7
コメント
- …
このリポジトリの他のスキル
autoresearch-finalize
8.2k実験による変更の乱雑な一連を、レビューの準備ができた、きれいで別々のブランチに整理するよう、エージェントを支援します。
autoresearch-hooks
8.2k各実験の前後で実行される、通知、保存されたメモ、リサーチの取得のための小さなスクリプトを、エージェントが書けるように教えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。