autoresearch
하는 일
이 도구는 어떤 프로그래밍 코드든 자동으로 개선하는 데 도움을 줍니다. 개선하고 싶은 것(속도나 메모리 사용량 등)과 측정 방법을 알려 주면, 도구가 코드를 조금씩 바꿔 보고, 결과가 좋아졌는지 테스트한 뒤 좋은 변경만 남깁니다.
사용하는 경우
- ✓프로그램을 더 빠르게 실행하고 싶을 때.
- ✓프로그램이 메모리를 덜 사용하게 하고 싶을 때.
- ✓특정 작업에서 더 나은 결과를 얻기 위해 코드를 최적화하고 싶을 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/autoresearch/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 Python 스크립트의 속도를 개선하고 싶어요. 지표는 ‘time python my_script.py’로 측정한 실행 시간이며, 시간이 짧을수록 좋습니다.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
먼저 무엇을 개선할지와 측정 방법을 정합니다. 그러면 도구가 코드의 복사본을 만들고, 작은 변경을 가하고, 개선되었는지 테스트한 뒤 변경을 유지할지 버릴지 결정합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Autoresearch: Autonomous Iterative Experimentation
An autonomous experimentation loop for any programming task. You define the goal and how to measure it; the agent iterates autonomously -- modifying code, running experiments, measuring results, and keeping or discarding changes -- until interrupted.
This skill is inspired by Karpathy's autoresearch, generalized from ML training to any programming task with a measurable outcome.
Agent Behavior Rules
- DO guide the user through the Setup phase interactively before starting the loop.
- DO establish a baseline measurement before making any changes.
- DO commit every experiment attempt before running it (so it can be reverted cleanly).
- DO keep a results log (TSV) tracking every experiment.
- DO revert changes that do not improve the metric (git reset to last known good).
- DO run autonomously once the loop starts -- never pause to ask "should I continue?".
- DO NOT modify files the user marked as out-of-scope.
- DO NOT skip the measurement step -- every experiment must be measured.
- DO NOT keep changes that regress the metric unless the user explicitly allowed trade-offs.
- DO NOT install new dependencies or make environment changes unless the user approved it.
Phase 1: Setup (Interactive)
Before any experimentation begins, work with the user to establish these parameters. Ask the user directly for each item. Do not assume or skip any.
1.1 Define the Goal
Ask the user:
What are you trying to improve or optimize?
Examples: execution time, memory usage, binary size, test pass rate, code coverage, API response latency, throughput, error rate, benchmark score, build time, bundle size, lines of code, cyclomatic complexity, etc.
Record the user's answer as the goal.
1.2 Define the Metric
Ask the user:
How do we measure success? What exact command produces the metric?
I need:
- The command to run (e.g.,
dotnet test,npm run benchmark,time ./build.sh,pytest --tb=short)- How to extract the metric from the output (e.g., a regex pattern, a specific line, a JSON field)
- Direction: Is lower better or higher better?
Example: "Run
dotnet test --logger trx, count passing tests. Higher is better." Example: "Runhyperfine './my-program', extract mean time. Lower is better."
Record:
METRIC_COMMAND: the command to runMETRIC_EXTRACTION: how to extract the numeric metric from outputMETRIC_DIRECTION:lower_is_betterorhigher_is_better
1.3 Define the Scope
Ask the user:
Which files or directories am I allowed to modify?
And which files are OFF LIMITS (read-only)?
Record:
IN_SCOPE_FILES: files/dirs the agent may editOUT_OF_SCOPE_FILES: files/dirs that must not be modified
1.4 Define Constraints
Ask the user:
Are there any constraints I should respect?
Examples:
- Time budget per experiment (e.g., "each run should take < 2 minutes")
- No new dependencies
- Must keep all existing tests passing
- Must not change the public API
- Must maintain backward compatibility
- VRAM/memory limit
- Code complexity limits (prefer simpler solutions)
Record as CONSTRAINTS.
1.5 Define the Experiment Budget (Optional)
Ask the user:
How many experiments should I run, or should I just keep going until you stop me?
You can say a number (e.g., "try 20 experiments") or "unlimited" (I'll run until you interrupt).
Record as MAX_EXPERIMENTS (number or unlimited).
1.6 Simplicity Criterion
Inform the user of the default simplicity policy:
Simplicity policy (default): All else being equal, simpler is better. A small improvement that adds ugly complexity is not worth it. Removing code while maintaining or improving the metric is a great outcome. I'll weigh the complexity cost against the improvement magnitude. Does this policy work for you, or do you want to adjust it?
Record any adjustments as SIMPLICITY_POLICY.
1.7 Confirm Setup
Summarize all parameters back to the user in a clear table:
| Parameter | Value |
|---|---|
| Goal | ... |
| Metric command | ... |
| Metric extraction | ... |
…
자주 묻는 질문
도구가 코드를 더 나쁘게 만들면 어떻게 되나요?
변경이 기대한 결과를 개선하지 못하면, 도구는 그 변경을 버리고 이전의 정상 작동 버전으로 되돌립니다.
도구가 건드리면 안 되는 코드 부분을 지정할 수 있나요?
네, 수정하지 않을 파일이나 디렉터리를 ‘범위 밖’으로 지정할 수 있으며, 도구는 그것들을 변경하지 않습니다.
도구가 새로운 것을 설치하나요?
아니요, 도구는 사용자의 명시적인 승인 없이 새 라이브러리를 설치하거나 환경을 변경하지 않습니다.
상세 정보
작성자의 원본 설명
Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, auto
repo: github/awesome-copilot
인기도
- GitHub 스타
- 40k
- 순위
- #7070
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.