BrainHarness Autoresearch
Use when user wants to optimize, improve, benchmark, or evaluate a skill's prompt. Triggers on "optimize skill", "improve skill prompt", "benchmark skill"…
от zning19941 230 установок в других каталогах
Установить BrainHarness Autoresearch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
brainharness-autoresearch
Previously published as
brainforge-autoresearch, with earlier namesautoresearch/openclaw-autoresearch. Renamed for the BrainHarness marketplace; functionality unchanged.
Autonomous prompt optimization for AI agent skills. Runs controlled experiments to find better prompt variants using the Karpathy autoresearch pattern: generate hypothesis, mutate prompt, evaluate, repeat.
When to use
- 用户说"优化一下这个 skill" / User says "optimize this skill's prompt"
- 用户要对比不同 prompt 版本的效果 / User wants to benchmark prompt variants
- 用户说"run autoresearch on X" / "eval skill X" / "improve skill X"
- 用户对 skill 输出质量不满,想系统性改进 / User is unhappy with skill output quality and wants systematic improvement
Do not use:
- 一次性的小改动(直接改 prompt 即可) / One-off prompt tweaks — just edit the prompt directly
- 调试某个特定失败 case / Debugging a specific failure — investigate the root cause instead
- Skill 脚本本身有 bug(代码逻辑问题不是 prompt 问题) / Skill script has a bug — fix the code, not the prompt
Requirements
- Python 3.10+
autoresearch.pyscript in the skill directory- LLM API access (MiniMax, OpenAI, or Anthropic)
- Target skill must have a prompt file (SKILL.md, SYSTEM.md, or similar)
Procedure
Always follow these steps in order: (1) Create eval.json, (2) Run autoresearch command, (3) Review results and apply best prompt.
Step 1: Gather context
Before running, you need:
| Parameter | Description | Example |
|---|---|---|
--target |
Path to the skill directory or prompt file to optimize | ../workspace/skills/brain-search/SKILL.md |
--evals |
Path to eval definition JSON file | eval.json |
--provider |
LLM provider for running experiments | minimax (default), openai, anthropic |
--runs |
Number of runs per experiment (statistical significance) | 5 (default) |
--max-experiments |
Maximum experiments before stopping | 30 (default) |
--dashboard |
Open live results dashboard in browser | flag, no value |
Step 2: Create eval.json
Define test inputs and evaluation criteria. Each eval is a binary pass/fail check.
{
"test_inputs": [
"search for latest AI agent frameworks",
"find news about LLM inference optimization",
"搜一下 transformer 架构的最新进展"
],
"evals": [
{
"name": "has_sources",
"type": "rule",
"rule": "regex",
"pattern": "(https?://|Source:|来源:)"
},
{
"name": "no_hallucinated_urls",
"type": "rule",
"rule": "banned_phrases",
"phrases": ["example.com", "placeholder.url"]
},
{
"name": "sufficient_detail",
"type": "rule",
"rule": "word_count",
"min": 50,
"max": 500
},
{
"name": "contains_summary",
"type": "rule",
"rule": "contains",
"values": ["summary", "key findings", "结论"]
},
{
"name": "no_apology_prefix",
"type": "rule",
"rule": "not_contains",
"values": ["I apologize", "I'm sorry, but"]
},
{
"name": "actionable_output",
"type": "llm",
"question": "Does the response provide actionable information the user can immediately use (links, specific facts, concrete next steps)?",
"pass_description": "The response contains specific actionable items like URLs, concrete facts, or clear next steps",
"fail_description": "The response is vague, generic, or lacks specific actionable information"
}
]
}
Rule types:
| Rule | Parameters | Description |
|---|---|---|
regex |
pattern |
Pass if regex matches output |
banned_phrases |
phrases (list) |
Pass if NONE of the phrases appear |
word_count |
min, max (optional) |
Pass if word count is within range |
contains |
values (list), optional match: "any" (default) or "all" |
Pass if any/all values appear in output (case-insensitive) |
not_contains |
values (list) |
Pass if NONE of the values appear in output (case-insensitive) |
LLM eval type:
| Field | Description |
|---|---|
type |
Must be "llm" |
name |
Unique name for this eval |
question |
What to ask the judge LLM about the output |
pass_description |
Description of what a passing output looks like |
fail_description |
Description of what a failing output looks like |
See eval-guide.md for detailed guidance on writing effective evals.
Step 3: Run autoresearch
python autoresearch.py \
--target ../workspace/skills/brain-search/SKILL.md \
--evals eval.json \
--provider minimax \
--runs 5 \
--max-experiments 30 \
--dashboard
Step 4: Review results and apply changes
The script writes results to results.tsv in the working directory. Each row is one experiment:
experiment_id parent_id mutation_description avg_score pass_rate evals_detail prompt_diff
Find the best performing variant:
cat results.tsv | sor
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл BrainHarness Autoresearch?
Use when user wants to optimize, improve, benchmark, or evaluate a skill's prompt. Triggers on "optimize skill", "improve skill prompt", "benchmark skill", "eval skill", "run autoresearch", "tune prompt", "prompt optimization", "skill evaluation", "A/B test prompt", "find best prompt", "auto-improve skill". Runs automated prompt experiments using the Karpathy autoresearch pattern.
Как установить скилл BrainHarness Autoresearch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл BrainHarness Autoresearch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…