본문으로 건너뛰기
Skillpedia
일반 코딩40k · #7070

autoresearch

하는 일

이 도구는 어떤 프로그래밍 코드든 자동으로 개선하는 데 도움을 줍니다. 개선하고 싶은 것(속도나 메모리 사용량 등)과 측정 방법을 알려 주면, 도구가 코드를 조금씩 바꿔 보고, 결과가 좋아졌는지 테스트한 뒤 좋은 변경만 남깁니다.

사용하는 경우

  • ✓프로그램을 더 빠르게 실행하고 싶을 때.
  • ✓프로그램이 메모리를 덜 사용하게 하고 싶을 때.
  • ✓특정 작업에서 더 나은 결과를 얻기 위해 코드를 최적화하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/autoresearch/SKILL.md

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

사용 방법

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

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

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

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

  1. DO guide the user through the Setup phase interactively before starting the loop.
  2. DO establish a baseline measurement before making any changes.
  3. DO commit every experiment attempt before running it (so it can be reverted cleanly).
  4. DO keep a results log (TSV) tracking every experiment.
  5. DO revert changes that do not improve the metric (git reset to last known good).
  6. DO run autonomously once the loop starts -- never pause to ask "should I continue?".
  7. DO NOT modify files the user marked as out-of-scope.
  8. DO NOT skip the measurement step -- every experiment must be measured.
  9. DO NOT keep changes that regress the metric unless the user explicitly allowed trade-offs.
  10. 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:

  1. The command to run (e.g., dotnet test, npm run benchmark, time ./build.sh, pytest --tb=short)
  2. How to extract the metric from the output (e.g., a regex pattern, a specific line, a JSON field)
  3. Direction: Is lower better or higher better?

Example: "Run dotnet test --logger trx, count passing tests. Higher is better." Example: "Run hyperfine './my-program', extract mean time. Lower is better."

Record:

  • METRIC_COMMAND: the command to run
  • METRIC_EXTRACTION: how to extract the numeric metric from output
  • METRIC_DIRECTION: lower_is_better or higher_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 edit
  • OUT_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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬