autoresearch-create
Skill này làm gì
Skill này thiết lập một chu trình thử nghiệm và cải tiến lặp lại cho mục tiêu bạn chọn, như tốc độ hoặc kích thước. Dành cho người muốn AI liên tục thử các thay đổi nhỏ và đo kết quả.
Khi nào nên dùng
- ✓Khi bạn muốn tối ưu một thứ gì đó, như tốc độ chạy của một chương trình, bằng cách thử nhiều thay đổi.
- ✓Khi bạn yêu cầu AI chạy autoresearch hoặc bắt đầu thử nghiệm trên một mục tiêu.
- ✓Khi bạn muốn kết quả đo được ghi trong nhật ký thay vì phỏng đoán.
Liên kết skill
https://github.com/davebcn87/pi-autoresearch/blob/main/skills/autoresearch-create/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập autoresearch để hàm sắp xếp của tôi chạy nhanh hơn, và tiếp tục chừng nào nó còn cải thiện.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill trước tiên hỏi bạn cần đo gì, rồi lưu một kế hoạch và một script đo lường trong thư mục tên .auto. Nó chạy từng ý tưởng, ghi lại kết quả, giữ các cải tiến và hoàn tác các lần thử thất bại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi cần cung cấp gì để bắt đầu?
Một mục tiêu để tối ưu và cách đo nó, và skill giúp bạn thiết lập cả hai.
Nó có hoàn tác thay đổi mã của tôi không?
Các thử nghiệm bị loại hoặc thất bại được hoàn tác tự động, còn những thử nghiệm được giữ lại thì được commit.
Nó theo dõi kết quả như thế nào?
Mỗi lần chạy được ghi vào nhật ký trong thư mục .auto, để bạn xem lại những gì đã thử.
Chi tiết
Mô tả gốc của tác giả
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".
Độ phổ biến
- Sao GitHub
- 8.2k
- Vị trí xếp hạng
- #12522
- Giấy phép
- MIT
- Cập nhật
- 7/10/2026
Bình luận
- …
Thêm skill từ kho mã này
autoresearch-finalize
8.2kGiúp agent của bạn biến chuỗi thay đổi thử nghiệm lộn xộn thành các nhánh riêng biệt, gọn gàng và sẵn sàng để xem xét.
autoresearch-hooks
8.2kDạy agent của bạn viết các script nhỏ chạy trước và sau mỗi thử nghiệm, để gửi cảnh báo, lưu ghi chú hoặc lấy tài liệu nghiên cứu.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.