Zum Inhalt springen
Skillpedia
Agenten8.2k · #12522

autoresearch-create

Was er macht

Diese Fähigkeit richtet einen wiederkehrenden Test-und-Verbesserungs-Zyklus für ein Ziel deiner Wahl ein, etwa Geschwindigkeit oder Größe. Sie ist für Menschen gedacht, die ihre KI laufend kleine Änderungen ausprobieren und die Ergebnisse messen lassen wollen.

Wann du ihn nutzt

  • ✓Wenn du etwas optimieren möchtest, etwa wie schnell ein Programm läuft, indem du viele Änderungen ausprobierst.
  • ✓Wenn du deine KI bittest, autoresearch auszuführen oder Experimente an einem Ziel zu starten.
  • ✓Wenn du gemessene Ergebnisse in einem Protokoll statt Vermutungen haben möchtest.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/davebcn87/pi-autoresearch/blob/main/skills/autoresearch-create/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Richte autoresearch ein, damit meine Sortierfunktion schneller läuft, und mach weiter, solange sie besser wird.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die Fähigkeit fragt zuerst, was gemessen werden soll, und speichert dann einen Plan sowie ein Messskript in einem Ordner namens .auto. Sie führt jede Idee aus, protokolliert das Ergebnis, behält Verbesserungen und macht fehlgeschlagene Versuche rückgängig.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

Häufige Fragen

Was muss ich zum Start angeben?

Ein Ziel zur Optimierung und eine Möglichkeit, es zu messen. Die Fähigkeit hilft dir, beides einzurichten.

Macht sie meine Codeänderungen rückgängig?

Verworfene oder fehlgeschlagene Experimente werden automatisch zurückgesetzt, behaltene werden als Commit gespeichert.

Wie verfolgt sie die Ergebnisse?

Jeder Durchlauf wird in ein Protokoll im Ordner .auto geschrieben, sodass du prüfen kannst, was versucht wurde.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
8.2k
Platz im Ranking
#12522
Lizenz
MIT
Aktualisiert
7.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills