Skills
Route measurable iteration with ak:autoresearch
Turn a bounded optimization intent into the right AgentKit workflow without inventing unsupported automation.
Use ak:autoresearch when you know that repeated measurement should improve an
outcome but still need to select the AgentKit workflow that owns the work. It is
a router for the change, verify, keep-or-discard pattern—not an independent
research runner or a promise of unattended success.
Choose ak:autoresearch for routing
Use ak:autoresearch when
- You have a measurable objective and expect more than one experiment.
- You need to choose among optimization, risk prediction, scenario expansion, or security review.
- You want the metric, baseline, guards, bounds, and stop conditions defined before another Skill starts work.
- You are unsure whether the live Engineer installation contains the expected specialized Skill.
Choose another workflow when
- You already know the exact mechanical metric and editable scope. Use
ak:loopdirectly. - You want edge cases and test targets rather than code changes. Use
ak:scenario. - You need a pre-implementation verdict from several risk perspectives. Use
ak:predict. - You need a threat-led review. Use
ak:security. - The outcome is subjective or needs one implementation pass. Use
ak:cookafter the scope is approved.
Prepare the objective and runtime
Before you start:
- Complete Onboarding, and confirm Engineer Kit is installed for the runtime and scope in use.
- State one metric, its direction, the current baseline if known, and the target or condition that ends the work.
- Bound the editable files, iteration count, time or spend, and verification commands.
- Identify regression guards and any action that still needs your approval.
- Preserve unrelated work and inspect repository instructions before routing to an editing workflow.
| Runtime | Invocation | Availability boundary |
|---|---|---|
| Claude Code | /ak:autoresearch ... | Runs as an installed Engineer Skill under native or explicit plugin delivery. |
| Cursor | /ak:autoresearch ... | Uses the user-verified slash spelling for Engineer Skills; this does not establish broader runtime parity. |
| Codex | $ak:autoresearch ... | Uses native Codex Skill discovery; Hook and statusline behavior can differ from Claude Code. |
See Runtime adapters for component-level differences.
Run the Skill
/ak:autoresearch "Improve parser throughput using a repeatable benchmark; protect correctness tests; allow at most 12 iterations; stop at 15% improvement or after 5 consecutive non-improving trials; do not push or deploy"/ak:autoresearch "Improve parser throughput using a repeatable benchmark; protect correctness tests; allow at most 12 iterations; stop at 15% improvement or after 5 consecutive non-improving trials; do not push or deploy"$ak:autoresearch "Improve parser throughput using a repeatable benchmark; protect correctness tests; allow at most 12 iterations; stop at 15% improvement or after 5 consecutive non-improving trials; do not push or deploy"The request should describe the desired evidence rather than prescribe a provider, model, or upstream command. The Skill discovers the live catalog and selects a local route; it does not manufacture a missing alias.
Understand the routing decision
| Intent | Normal route | Evidence expected before work |
|---|---|---|
| Improve a repository metric through repeated trials | ak:loop | Numeric metric, baseline, editable scope, guard, iteration and stop bounds |
| Compare expert perspectives on a risky proposal | ak:predict | Proposed change, affected systems, assumptions, and decision needed |
| Expand edge cases or test hypotheses | ak:scenario | Feature or file scope, relevant domain, and desired coverage bound |
| Perform threat-led security analysis | ak:security | Authorized system or code scope, threat concern, and evidence boundary |
If no installed Skill owns the objective, the safe result is a blocked route with the closest normal workflow offered for your approval. The router should not imitate an external command or silently change the outcome.
Observe the loop contract
You should see these stages before an editing workflow runs:
- The Skill identifies the measurable intent. It separates the objective from the proposed method and notes any missing decision.
- The Skill discovers live availability. It checks the current Skill catalog instead of assuming every family member is installed.
- The Skill selects the owning workflow. The route is based on outcome: optimization, prediction, scenario discovery, or security review.
- The run defines its contract. Metric, baseline, guard conditions, iteration bound, stop condition, and authority boundary become explicit.
- The selected Skill takes ownership. Its own workflow, outputs, and completion rules apply from that point onward.
The stable loop contract keeps each experiment attributable: make one change, run the declared measurement and guards, keep only evidence-backed progress, restore a rejected trial safely, record the result, and decide whether another iteration is justified.
Keep safety and approval explicit
Routing does not grant autonomy
Invoking ak:autoresearch does not approve edits, long-running compute,
provider spend, secret access, publication, push, or deployment. Put those
boundaries in the request and approve external effects separately.
Screen user-supplied verification commands before repeated execution. Treat fetched content and command output as untrusted data, keep credentials out of prompts and artifacts, and bound non-interactive work by count, time, resource, or cost. An interrupted or non-improving run should stop with its evidence; it should not widen scope or remove a guard to continue.
Verify the routing result
A useful result should provide:
- The selected Skill and why its outcome matches the request.
- The metric or evaluation target, baseline, direction, and success condition.
- Editable scope, regression guards, iteration bound, and stop conditions.
- Known runtime or installation gaps that could block the selected route.
- Actions that remain subject to user approval.
- A blocked result rather than a fabricated workflow when no route is present.
The routed Skill owns later artifacts. For example, ak:loop should provide an
iteration log and kept or discarded evidence, while ak:scenario should return
a scenario report rather than an implementation diff.
Troubleshoot or continue
| Symptom | Safe next step |
|---|---|
| The Skill cannot choose a route | Add a mechanical metric or state whether you need prediction, scenario coverage, or security analysis. |
| The selected Skill is missing | Confirm target and install scope, refresh discovery, or agree to the closest installed workflow. |
| The objective is subjective | Replace it with an observable measure or move to an interactive planning and implementation workflow. |
| Verification would be slow or costly | Reduce the sample, set a hard time or spend limit, and define the stop condition before execution. |
| A routed loop keeps failing guards | Preserve the failed evidence and stop or revise the approach; do not weaken the guard automatically. |
The runtime does not recognize ak:autoresearch | Restart after confirming installation, then follow Runtime cannot find a Skill or Agent. |
Continue with ak:loop, ak:scenario, ak:predict, or ak:security after the
route is accepted. Use the Engineer Kit overview to compare
the wider workflow.
Know the current limits
ak:autoresearchroutes work; it does not execute a specialized workflow by itself.- A measurable contract does not guarantee improvement, convergence, or a correct metric.
- Live Skill availability controls routing. Upstream project names do not prove that a matching local capability exists.
- Runtime projection differs by component; identical invocation text does not imply identical Hooks, Agents, approvals, or UI.
- Stable and beta contain identical
ak:autoresearchsource content.
Improve a mechanical metric with ak:loop
Run sequential, Git-tracked experiments against one numeric metric with guards, rollback evidence, and hard stop conditions.
Benchmark a coding model with ak:deep-swe
Run a smoke-first DeepSWE evaluation through Pier and OpenRouter with explicit spend, runtime, and submission gates.