autoresearch
Runs an autonomous experiment loop on any programming task: you define the goal, metric, and eval command; the agent edits code, measures, and keeps or…
Skill by luiscantero
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mouadja02-autoresearch
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/autoresearch
What's inside
- Skill name
autoresearch- Description
- Runs an autonomous experiment loop on any programming task: you define the goal, metric, and eval command; the agent edits code, measures, and keeps or discards each change until interrupted. Use when optimizing a measurable target (speed, accuracy, size, score) by iteration.
- 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
- Instructions
- 269 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
> **Attribution:** Sourced from [autoresearch by luiscantero](https://github.com/luiscantero) by [luiscantero](https://github.com/luiscantero). # 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](https://github.com/karpathy/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 | ... |
From mouadja02/skills, MIT.
More from mouadja02/skills
- 0.637score
eval-driven-dev
mouadja02
Improve AI application with evaluation-driven development.
SkillAFreshness: A★ 11Claude Code +9 - 0.637score
gdpr-compliant
mouadja02
Apply GDPR-compliant engineering practices across your codebase.
SkillAFreshness: A★ 11Claude Code +9 - 0.637score
ai-team-orchestration
mouadja02
Bootstraps and runs a multi-agent development team with roles (dev, QA, DevOps), parallel work, and sprint plans that survive context resets.
SkillAFreshness: A★ 11Claude Code +9 - 0.637score
semantic-kernel
mouadja02
Create, update, refactor, explain, or review Semantic Kernel solutions using shared guidance plus language-specific references for .NET and Python.
SkillAFreshness: A★ 11Claude Code +9 - 0.637score
python-pypi-package-builder
mouadja02
End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.
SkillAFreshness: A★ 11Claude Code +9 - 0.634score
nano-banana-pro-openrouter
mouadja02
Generate or edit images via OpenRouter with the Gemini 3 Pro Image model.
SkillAFreshness: A★ 11Claude Code +9 - 0.632score
structured-autonomy-plan
mouadja02
Use when an autonomous agent run needs a plan before execution — decomposing the goal, setting explicit boundaries and stop conditions, and defining what the…
SkillAFreshness: A★ 11Claude Code +9 - 0.632score
memory-merger
mouadja02
Merges mature lessons from a domain memory file into its instruction file.
SkillAFreshness: A★ 11Claude Code +9 - 0.632score
create-agentsmd
mouadja02
Generates a complete AGENTS.md at the repository root following the agents.md format: setup, build, test, style, and PR conventions coding agents need.
SkillAFreshness: A★ 11Claude Code +9 - 0.632score
rich-claude-code-tui-clone
mouadja02
Use when building a Python terminal UI inspired by Claude Code with Rich.
SkillAFreshness: A★ 11Claude Code +9 - 0.632score
bmm-skills
mouadja02
Routes requests to the BMad Method (v6.12.4) agile framework: persona agents, planning skills (brief, PRFAQ, PRD, UX, spec, architecture, epics, sprint…
SkillAFreshness: A★ 11Claude Code +9 - 0.632score
ai-ready
mouadja02
Installs John Papa's ai-ready skill, which makes a repository AI-ready by generating AGENTS.md, copilot-instructions.md, CI workflows, and issue templates.
SkillAFreshness: A★ 11Claude Code +9
Signals
- Stars
- 11
- Forks
- 5
- Open issues
- 25
- Last commit (this folder)
- Oct 16, 2026 (12 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mouadja02/skills
- Website
- mouadja02.github.io/skills/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
autoresearch skill. Agent Mart. https://agentmart.dev/skills/mouadja02-autoresearch (last updated 2026-10-24)