autoresearch
Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements.
Skill by marcioaltoe
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/marcioaltoe-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: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
autoresearch- Description
- Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements. Based on Karpathy's autoresearch methodology. Use when: optimize this skill, improve this skill, run autoresearch on, make this skill better, self-improve skill, benchmark skill, eval my skill, run evals on. Outputs: an improved SKILL.md, a results log, and a changelog of every mutation tried.
- License
- MIT
- Instructions
- 334 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- eval-guide.md · references/
SKILL.md (first lines)
# Autoresearch for Skills
Most skills work about 70% of the time. The other 30% you get garbage. The fix isn't to rewrite the skill from scratch. It's to let an agent run it dozens of times, score every output, and tighten the prompt until that 30% disappears.
This skill adapts Andrej Karpathy's autoresearch methodology (autonomous experimentation loops) to Claude Code skills. Instead of optimizing ML training code, we optimize skill prompts.
---
## the core job
Take any existing skill, define what "good output" looks like as binary yes/no checks, then run an autonomous loop that:
1. Generates outputs from the skill using test inputs
2. Scores every output against the eval criteria
3. Mutates the skill prompt to fix failures
4. Keeps mutations that improve the score, discards the rest
5. Repeats until the score ceiling is hit or the user stops it
**Output:** An improved SKILL.md + `results.tsv` log + `changelog.md` of every mutation attempted + a live HTML dashboard you can watch in your browser.
---
## before starting: gather context
**STOP. Do not run any experiments until all fields below are confirmed with the user. Ask for any missing fields before proceeding.**
1. **Target skill** — Which skill do you want to optimize? (need the exact path to SKILL.md)
2. **Test inputs** — What 3-5 different prompts/scenarios should we test the skill with? (variety matters — pick inputs that cover different use cases so we don't overfit to one scenario)
3. **Eval criteria** — What 3-6 binary yes/no checks define a good output? (these are your "test questions" — see [references/eval-guide.md](references/eval-guide.md) for how to write good evals)
4. **Runs per experiment** — How many times should we run the skill per mutation? Default: 5. (more runs = more reliable scores, but slower and more expensive. 5 is the sweet spot for most skills.)
5. **Run interval** — How often should experiments cycle? Default: every 2 minutes. (shorter = faster iteration, but costs more)
6. **Budget cap** — Optional. Max number of experiment cycles before stopping. Default: no cap (runs until you stop it).
---
## step 1: read the skill
Before changing anything, read and understand the target skill completely.
1. Read the full SKILL.md file
2. Read any files in `references/` that the skill links to
3. Identify the skill's core job, process steps, and output format
4. Note any existing quality checks or anti-patterns already in the skill
Do NOT skip this. You need to understand what the skill does before you can improve it.
---
## step 2: build the eval suite
Convert the user's eval criteria into a structured test. Every check must be binary — pass or fail, no scales.
**Format each eval as:**
```
EVAL [number]: [Short name]
Question: [Yes/no question about the output]
Pass condition: [What "yes" looks like — be specific]
Fail condition: [What triggers a "no"]
```
**Rules for good evals:**
- Binary only. Yes or no. No "rate 1-7" scales. Scales compound variability and give unreliable results.
- Specific enough to be consistent. "Is the text readable?" is too vague. "Are all words spelled correctly with no truncated sentences?" is testable.
- Not so narrow that the skill games the eval. "Contains fewer than 200 words" will make the skill optimize for brevity at the expense of everything else.
- 3-6 evals is the sweet spot. More than that and the skill starts parroting eval criteria back instead of actually improving.
See [references/eval-guide.md](references/eval-guide.md) for detailed examples of good vs bad evals.
**Max score calculation:**
```
max_score = [number of evals] × [runs per experiment]
```
Example: 4 evals × 5 runs = max score of 20.
---
## step 3: generate the live dashboard
Before running any experiments, create a live HTML dashboard at `autoresearch-[skill-name]/dashboard.html` and open it in the browser.
The dashboard must:
- Auto-refresh every 10 seconds (reads from results.tsv)
- Show a score progression line chart (experiment number on X axis, pass rate % on Y axis)
- Show a colored bar for each experiment: green = keep, red = discard, blue = baseline
- Show a table of all experiments with: experiment #, score, pass rate, status, description
- Show per-eval breakdown: which evals pass most/least across all runs
- Show current status: "Running experiment [N]..." or "Idle"
- Use clean styling with soft colors (white background, pastel accents, clean sans-serif font)
Generate the dashboard as a single self-contained HTML file with inline CSS and JavaScript. Use Chart.js loaded from CDN for the line chart. The JS should fetch `results.json` (which you update after each experiment alongside results.tsv) and re-render.
**Open it immediately** after creating it: `open dashboard.html` (macOS) so the user can see it in their browser.
**Update `results.json`** after every experiment so the dashboard stays current. The JSON format:
```json
{
"skill_name": "[name]",
"status": "running",
"current_experiment": 3,
"baseline_score": 70.0,
"best_score": 90.0,
"experiments": [
{
"id": 0,
"score": 14,
"max_score": 20,
"pass_rate": 70.0,
"status": "baseline",
"description": "original skill — no changes"
}
],
"eval_breakdown": [
{ "name": "Text legibility", "pass_count": 8, "total": 10 },From marcioaltoe/skills, MIT.
More from marcioaltoe/skills
- 0.570score
context7-cli
marcioaltoe
Use the ctx7 CLI to fetch library documentation and configure Context7 MCP.
SkillAFreshness: AClaude Code +9 - 0.567score
write-prd
Marcio Altoé
Write a PRD as a durable local artifact at docs/specs/<slug>/_prd.md — research first, clarify with one multiple-choice question at a time, record decisions…
SkillAFreshness: AClaude Code +9 - 0.567score
write-idea
Marcio Altoé
Expand a raw product idea into a research-backed spec at docs/specs/<slug>/_idea.md — targeted questions, parallel codebase + market research…
SkillAFreshness: AClaude Code +9 - 0.565score
business-analyst
Marcio Altoé
Turns exploration into decision-ready analysis: scores feature ideas on six viability criteria with KPI targets, converts open questions into A/B/C options…
SkillAFreshness: AClaude Code +9 - 0.565score
setup-context-driven
Marcio Altoé
Adopt, update, or verify a repository's Context-Driven Baseline through the public Roundfix Baseline Command.
SkillAFreshness: AClaude Code +9 - 0.560score
skill-catalog-curation
Marcio Altoé
Curates this repository's installable skills catalog.
SkillAFreshness: AClaude Code +9 - 0.560score
knowledge-workspace
Marcio Altoé
Work with project documentation and the central knowledge repository (marcioaltoe/secondbrain).
SkillAFreshness: AClaude Code +9 - 0.539score
brainstorming
Marcio Altoé
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.
SkillAFreshness: AClaude Code +9 - 0.479score
agentic-cli-design
marcioaltoe
Design principles for building CLI tools that LLM/AI agents can safely and reliably operate.
SkillCFreshness: CClaude Code +9 - 0.476score
exa-web-search
marcioaltoe
Deep research powered by Exa.
SkillCFreshness: CClaude Code +9 - 0.474score
find-rules
marcioaltoe
Discover and understand project rules, coding standards, and architectural guidelines before starting a task.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Oct 9, 2026 (19 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/marcioaltoe/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.753score
autoresearch
pedronauck
Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements.
SkillBFreshness: B★ 641Claude Code +9 - 0.278score
autoresearch
aresbit
Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements.
SkillDFreshness: D★ 45Claude Code +9 - 0.258score
autoresearch
Lua2147
Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements.
SkillDFreshness: D★ 2Claude Code +9
More from marcioaltoe
- 0.570score
context7-cli
marcioaltoe
Use the ctx7 CLI to fetch library documentation and configure Context7 MCP.
SkillAFreshness: AClaude Code +9 - 0.479score
agentic-cli-design
marcioaltoe
Design principles for building CLI tools that LLM/AI agents can safely and reliably operate.
SkillCFreshness: CClaude Code +9 - 0.476score
exa-web-search
marcioaltoe
Deep research powered by Exa.
SkillCFreshness: CClaude Code +9 - 0.474score
find-rules
marcioaltoe
Discover and understand project rules, coding standards, and architectural guidelines before starting a task.
SkillCFreshness: CClaude Code +9
Cite this page
autoresearch skill. Agent Mart. https://agentmart.dev/skills/marcioaltoe-autoresearch (last updated 2026-10-24)