plugins/hypercore/skills/autoresearch-code/SKILL.md
[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.
npx skillsauth add alpoxdev/hypercore autoresearch-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@rules/experiment-loop.md @rules/validation-and-exit.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>
<purpose>.hypercore/autoresearch-code/[codebase-name]/: results.tsv, results.json, changelog.md, dashboard.html, and baseline.md.<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.When the codebase structure is weak:
</skill_architecture>
<workflow>| 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>
<deliverables>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..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.
</deliverables> <validation>The run must satisfy:
.omx/specs/autoresearch-[codebase-name]/result.json exists and records passed: true or status: "passed".development
[Hyper] Use when working on Vite + TanStack Router projects - enforces architecture rules (layers, routes, hooks, services, conventions) with mandatory validation before any code change. Triggers on file creation, route work, hook patterns, or any structural change in a Vite + TanStack Router codebase.
development
[Hyper] Update semantic versions across node/rust/python projects, keep discovered version files synchronized, and prefer the installed `git-commit` skill for the final git step with a direct fallback when it is unavailable.
development
[Hyper] Use when working on TanStack Start projects and the task involves auth, sessions, cookies, CSRF, secrets, env exposure, server functions/routes, headers/CSP, webhooks, or security review/fixes. Triggers on protecting routes, hardening auth flows, preventing secret leaks, securing server boundaries, or reviewing HTTP/security behavior in a TanStack Start app.
tools
[Hyper] Enforce TanStack Start architecture in existing Start projects, especially project/folder structure, route structure, nested shared folder organization, server functions, loader/client-server boundaries, importProtection, hooks, SSR/hydration, and hypercore conventions. Use before structural code changes, folder-structure reviews, route work, server function work, or architecture audits in TanStack Start codebases.