Langsung ke konten
Skillpedia
Agen8.2k Β· #12522

autoresearch-create

Fungsinya

Skill ini menyiapkan siklus uji-dan-perbaiki yang berulang untuk tujuan yang Anda pilih, misalnya kecepatan atau ukuran. Skill ini untuk orang yang ingin AI mereka terus mencoba perubahan kecil dan mengukur hasilnya.

Kapan dipakai

  • βœ“Saat Anda ingin mengoptimalkan sesuatu, seperti kecepatan program, dengan mencoba banyak perubahan.
  • βœ“Saat Anda meminta AI menjalankan autoresearch atau memulai eksperimen pada sebuah target.
  • βœ“Saat Anda ingin hasil terukur yang disimpan dalam log, bukan tebakan.

Link skill

https://github.com/davebcn87/pi-autoresearch/blob/main/skills/autoresearch-create/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/davebcn87/pi-autoresearch/blob/main/skills/autoresearch-create/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œSiapkan autoresearch agar fungsi pengurutan saya berjalan lebih cepat, dan terus lanjutkan selama hasilnya terus membaik.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill pertama-tama menanyakan apa yang harus diukur, lalu menyimpan rencana dan skrip pengukur di folder bernama .auto. Skill menjalankan setiap ide, mencatat hasilnya, menyimpan perbaikan, dan membatalkan percobaan yang gagal.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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. keep auto-commits. discard/crash/checks_failed auto-reverts code changes (autoresearch files preserved). Always include secondary metrics dict. 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 flat autoresearch.* files are still read for in-flight sessions, but new sessions should use .auto/.

Setup

  1. Ask (or infer): Goal, Command, Metric (+ direction), Files in scope, Constraints.
  2. git checkout -b autoresearch/<goal>-<date>
  3. Read the source files. Understand the workload deeply before writing anything.
  4. mkdir -p .auto, then write .auto/prompt.md and .auto/measure.sh (see below). Commit both.
  5. 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 match init_experiment's metric_name) and any secondary metrics. Parsed automatically by run_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

Pertanyaan umum

Apa yang perlu saya berikan untuk memulai?

Sebuah target untuk dioptimalkan dan cara untuk mengukurnya, dan skill membantu Anda menyiapkan keduanya.

Apakah ia akan membatalkan perubahan kode saya?

Eksperimen yang dibuang atau gagal dikembalikan secara otomatis, sedangkan yang disimpan dikomit.

Bagaimana ia mencatat hasil?

Setiap percobaan ditulis ke log di folder .auto, sehingga Anda dapat meninjau apa yang telah dicoba.

Detail

Deskripsi asli dari pembuat

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".

repo: davebcn87/pi-autoresearch

Popularitas

Bintang GitHub
8.2k
Peringkat
#12522
Lisensi
MIT
Diperbarui
7/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa