From hypercore
[Hyper] Optimize an existing codebase through baseline-first experiments, binary evaluation, and one-mutation-at-a-time iteration. Use for codebase autoresearch, measured bottleneck reduction, benchmarked code optimization, and evidence-backed refactors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hypercore:autoresearch-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
@rules/experiment-loop.md
SKILL.ko.mdassets/dashboard-template.htmlreferences/artifact-spec.ko.mdreferences/artifact-spec.mdreferences/code-baseline-guide.ko.mdreferences/code-baseline-guide.mdreferences/eval-guide.ko.mdreferences/eval-guide.mdreferences/reporting-and-code-improvement.ko.mdreferences/reporting-and-code-improvement.mdreferences/self-test-pack.api.ko.mdreferences/self-test-pack.api.mdreferences/self-test-pack.ko.mdreferences/self-test-pack.mdreferences/self-test-pack.monorepo.ko.mdreferences/self-test-pack.monorepo.mdreferences/self-test-pack.node.ko.mdreferences/self-test-pack.node.mdreferences/self-test-pack.web.ko.mdreferences/self-test-pack.web.md@rules/experiment-loop.md @rules/validation-and-exit.md @references/reporting-and-code-improvement.md
Improve an existing codebase through measurable experiments instead of one large rewrite.
<output_language>
Default all user-facing deliverables, saved artifacts, reports, plans, generated docs, summaries, handoff notes, commit/message drafts, and validation notes to Korean, even when this canonical skill file is written in English.
Preserve source code identifiers, CLI commands, file paths, schema keys, JSON/YAML field names, API names, package names, proper nouns, and quoted source excerpts in their required or original language.
Use a different language only when the user explicitly requests it, an existing target artifact must stay in another language for consistency, or a machine-readable contract requires exact English tokens. If a localized template or reference exists (for example *.ko.md or *.ko.json), prefer it for user-facing artifacts.
</output_language>
.hypercore/autoresearch-code/[codebase-name]/: results.tsv, results.json, changelog.md, dashboard.html, baseline.md, code-explanation.md, and final-report.md. Human-readable artifact content must explain in Korean where the score moved, what code changed, which proof commands passed, and whether the change is held, promoted, or rolled back.<routing_rule>
Use autoresearch-code when the user wants iterative, evaluation-based optimization of an existing codebase.
Prefer direct execution for a single obvious bug fix, one small refactor, or a small change with obvious validation.
Route neighboring work elsewhere:
bug-fix or a direct scoped fix.skill-maker.docs-maker.version-update.Do not use autoresearch-code when:
</routing_rule>
<trigger_conditions>
Positive examples:
Negative examples:
Boundary example:
</trigger_conditions>
<supported_targets>
</supported_targets>
<required_inputs>
Collect these before the first mutation:
generic, web, node, api, or monorepo.5.Input policy:
For broad optimization requests without a prompt pack:
</required_inputs>
<language_support>
</language_support>
<scope_contract>
Before experiment 0:
baseline.md.</scope_contract>
<baseline_contract>
Before experiment 0:
baseline.md before editing code.Use references/code-baseline-guide.md when the baseline shape is unclear.
</baseline_contract>
<autoresearch_integration>
This skill is not complete from .hypercore experiment logs alone. When used through $autoresearch, also satisfy this bridge contract.
Default validation mode:
mission-validator-scriptState storage:
.omx/state/.../autoresearch-state.json:
validation_mode: mission-validator-scriptcompletion_artifact_path: .omx/specs/autoresearch-{codebase-name}/result.jsonmission_validator_command: command that runs final proof/eval and updates result JSONoutput_artifact_path: .hypercore/autoresearch-code/{codebase-name}/results.jsonCompletion artifact example:
{
"status": "passed",
"passed": true,
"summary": "best score improved without regression",
"output_artifact_path": ".hypercore/autoresearch-code/my-repo/results.json"
}
Exit rules:
.hypercore score is necessary evidence, not sufficient evidence.completion_artifact_path exists and records passed: true or status: "passed"..hypercore results and .omx/specs/.../result.json.</autoresearch_integration>
<autonomy_contract>
After the baseline plan is explicit:
</autonomy_contract>
<skill_architecture>
Keep the core skill focused on triggers, owned work, workflow, and mutation discipline.
Load support files intentionally:
dashboard.html and results.js from the official dashboard template with scripts/render-dashboard.sh.Artifact lifecycle requirements:
.hypercore/autoresearch-code/[codebase-name]/.results.tsv and results.json after every experiment.dashboard.html as a live view derived from results.json.results.json.status as running during the loop and complete at exit.file:// URL, including Markdown-formatted detail logs loaded from results.js.When the codebase structure is weak:
</skill_architecture>
| Phase | Task | Output |
|---|---|---|
| 0 | Read the target scope and current validation surface | Baseline understanding |
| 1 | Convert success conditions into binary evals | Eval set |
| 2 | Initialize experiment workspace and artifacts | .hypercore/autoresearch-code/[codebase-name]/ |
| 3 | Run experiment 0 against the unmodified codebase | Baseline score |
| 4 | Repeat one-mutation-at-a-time experiments | Keep/discard decision |
| 5 | Verify final results and summarize the run | Final report |
.hypercore/autoresearch-code/[codebase-name]/, write baseline.md, initialize results.tsv, results.json, changelog.md, and render dashboard.html with scripts/render-dashboard.sh.0 as baseline.<mutation_defaults>
Prefer these mutation types:
Avoid these mutation types:
</mutation_defaults>
At exit, leave behind:
.hypercore/autoresearch-code/[codebase-name]/dashboard.html..hypercore/autoresearch-code/[codebase-name]/results.json..hypercore/autoresearch-code/[codebase-name]/results.js or an equivalent file-based bridge..hypercore/autoresearch-code/[codebase-name]/results.tsv..hypercore/autoresearch-code/[codebase-name]/changelog.md..hypercore/autoresearch-code/[codebase-name]/baseline.md..hypercore/autoresearch-code/[codebase-name]/code-explanation.md or results.json.code_explanation..hypercore/autoresearch-code/[codebase-name]/final-report.md..hypercore/autoresearch-code/[codebase-name]/run-contract.md when run assumptions were inferred..hypercore/autoresearch-code/[codebase-name]/trace-summary.md when trace-backed evals or runtime traces were used..hypercore/autoresearch-code/[codebase-name]/source-ledger.md when external/current claims influenced code choices..hypercore/autoresearch-code/[codebase-name]/details/ for long logs, proof snippets, or structured diagnostics..omx/specs/autoresearch-[codebase-name]/result.json completion artifact.validation_mode and completion_artifact_path bridge state in .omx/state/.../autoresearch-state.json.Follow references/artifact-spec.md for schemas and examples.
The run must satisfy:
.omx/specs/autoresearch-[codebase-name]/result.json exists and records passed: true or status: "passed".results.json.code_explanation or code-explanation.md so the dashboard can show where and how the score improved.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub alpoxdev/hypercore --plugin hypercore