acquire-codebase-knowl…
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document…
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
$ npx -y skills add github/awesome-copilot --skill autoresearch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/autoresearchContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: autoresearch description: '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, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.' license: MIT compatibility: Requires git. The project must be a git repository. Requires terminal access to run commands. metadata: author: luiscantero inspired-by: https://github.com/karpathy/autoresearch
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](https://github.com/karpathy/autoresearch), generalized from ML training to **any programming task with a measurable outcome**.
---
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.
---
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.
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**.
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:
Ask the user:
> **Which files or directories am I allowed to modify?** > > And which files are OFF LIMITS (read-only)?
Record:
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`.
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`).
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`.
Summarize all parameters back to the user in a clear table:
| Parameter | Value | | ------------------ | ---------------------------- | | Goal | ... | | Metric command | ... | | Metric extraction | ... | | Direction | lower is better / higher ... | | In-scope files | ... | | Out-of-scope files | ... | | Constraints | ... | | Max experiments | ... | | Simplicity policy | ... |
Ask the user to confirm. Do not proceed until confirmed.
---
Once the user confirms:
1. **Create a branch**: Propose a tag based on today's date (e.g., `autoresearch/mar17`). Create the branch: `git checkout -b autoresearch/<tag>`.
2. **Read in-scope files**: Read all files that are in scope to bu
A community-created collection of custom agents, instructions, skills, hooks, workflows, and plugins to supercharge your GitHub Copilot experience.
Repo: github/awesome-copilot
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document…
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc…
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS…
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting…
Use this skill when the user shares ad campaign performance data and asks what to cut, scale, or test. Trigger for prompts like "analyze my ad campaigns",…
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.