본문으로 건너뛰기
Skillpedia
에이전트8.2k · #12522

autoresearch-create

하는 일

이 스킬은 속도나 크기처럼 고른 목표를 위해 시험하고 개선하는 반복 과정을 설정합니다. 작은 변경을 계속 시도하고 결과를 측정하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓프로그램 실행 속도처럼 무언가를 최적화하려고 여러 변경을 시도하고 싶을 때.
  • ✓AI에게 autoresearch를 실행하거나 목표에 대한 실험을 시작하게 하고 싶을 때.
  • ✓추측 대신 측정한 결과를 기록으로 남기고 싶은 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davebcn87/pi-autoresearch/blob/main/skills/autoresearch-create/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

자주 묻는 질문

시작하려면 무엇을 주어야 하나요?

최적화할 목표와 그것을 측정할 방법이 필요하며, 스킬이 둘 다 설정하도록 도와줍니다.

내 코드 변경을 되돌리나요?

버린 실험이나 실패한 실험은 자동으로 되돌리고, 남긴 실험은 커밋합니다.

결과는 어떻게 기록하나요?

모든 실행이 .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".

repo: davebcn87/pi-autoresearch

인기도

GitHub 스타
8.2k
순위
#12522
라이선스
MIT
업데이트
2026. 10. 7.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬