infra-setup
Infra Setup guides users through switching evo's execution backend to local options (worktree, pool) or remote providers (Modal, E2B, Daytona, AWS, Azure, SSH, manual, custom). Use it when users need to configure where experiments run, verify prerequisites like SDK installation and authentication, and apply the correct config command without silently installing dependencies or mixing provider credentials with benchmark runtime environment variables.
git clone --depth 1 https://github.com/evo-hq/evo /tmp/infra-setup && cp -r /tmp/infra-setup/plugins/evo/skills/infra-setup ~/.claude/skills/infra-setupSKILL.md
# Infra Setup
Use this when the user wants to change where experiments run: local worktrees, pool slots, or a remote provider such as Modal, E2B, Daytona, AWS, Azure, SSH, manual, or a custom dotted-path provider.
## Goals
- Be explicit about the target backend/provider.
- Check prerequisites before mutating evo config.
- Never install provider SDKs silently.
- Give one actionable auth command per provider.
- Keep provider credentials separate from benchmark runtime env.
## Flow
1. Identify the target:
- `worktree` or `pool` means local backends.
- `modal`, `e2b`, `ssh:...`, or another remote spec means `backend=remote`.
2. If the target is remote, parse the provider choice the same way evo CLI does:
- `modal`
- `e2b`
- `daytona`
- `aws`
- `azure`
- `manual`
- `ssh:user@host[:port]`
- another built-in provider name
- dotted import path for a custom provider
3. Check whether `evo` is on PATH and whether it is the expected `evo-hq-cli` package (`evo --version`). If the provider SDK is missing, evo's provider loader prints the provider-specific extra or SDK package to install; use that message rather than guessing.
4. For SDK-backed providers, verify the SDK import only when you can run the check in the same environment that owns the `evo` executable. If missing, ask the user before installing it.
- If `evo` was installed with `uv tool` or `pip`/`venv`, prefer the matching extra on `evo-hq-cli`:
- `uv-tool`: `uv tool install --reinstall 'evo-hq-cli[<provider-extra>]'`
- `venv` / `pip`: `python -m pip install 'evo-hq-cli[<provider-extra>]'`
- If `evo` was installed with `pipx`, inject the provider SDK into the same `evo-hq-cli` environment:
- `pipx`: `pipx inject evo-hq-cli <provider-sdk>`
5. Check auth and show exactly one provider-specific auth command or setup step. Use `references/provider-matrix.md`.
6. Once prerequisites are satisfied, run the explicit config command:
```bash
evo config backend remote --provider <provider> --provider-config ...
```
Or for local backends:
```bash
evo config backend worktree
evo config backend pool --workspaces /abs/slot-a,/abs/slot-b
```
7. Be explicit that incomplete provider setup usually surfaces on
`evo new --remote <provider> ...`, because that is where remote
allocation and bootstrap actually happen.
8. If the benchmark itself needs application keys, configure runtime env
separately with `evo env load <path> --all` or
`evo env load <path> --allow KEY1,KEY2`. Provider auth provisions the
sandbox; runtime env is what benchmark/gate processes see.
## Pre-assumptions
Before trying to switch a workspace to a remote provider, confirm the basics:
- the target backend is clear from the user's request; only ask if the
intent is genuinely ambiguous between `worktree`, `pool`, and `remote`
- the machine running evo has the right provider SDK or transport installed
- the user has auth for that provider available now, not "somewhere else"
- the provider-specific minimum config exists
- `modal`: auth + optional config
- `e2b`: API key + optional config
- `daytona`: API key and API URL/target if needed
- `aws`: creds, region, image, SSH key pair/private key, and usually network config
- `azure`: subscription, resource group, region, SSH key/private key, and VM/image choices
- `ssh`: reachable host, working SSH user, and key/port if needed
- `manual`: reachable remote endpoint URL and bearer token
- for SSH-backed VM providers, the guest assumptions are plausible before allocation:
- the image enables SSH
- the SSH user matches the image
- the image architecture matches the selected instance type
- the host can run evo's remote workspace runtime
## Provider notes
See `references/provider-matrix.md` for the compact provider summary, common config, and provider-specific setup/auth command.Initialize evo for the current repository by exploring the codebase, proposing unexplored optimization dimensions, constructing the benchmark inside a baseline worktree, and running the first experiment. Use when the user invokes /evo:discover, mentions setting up evo, wants to instrument a codebase for autonomous optimization, or asks to start a new evo run on a project.
Run the evo optimization loop with parallel subagents until interrupted.
Read-only evo run reporting. Use when the user invokes /evo:report, asks what happened overnight, asks what improved recently, asks for the best/frontier candidates, asks for a quick score chart without opening the dashboard, or wants the scatter plot in chat output. Never run benchmarks, gates, Slurm commands, evo run, or ad-hoc verification scripts for report requests.
Protocol that evo optimization subagents follow when dispatched from /optimize. Auto-loaded by spawned subagents via their host's skill loader. The orchestrator may also invoke this skill to understand the brief shape its dispatched subagents expect + what they're required to emit -- useful when writing briefs or debugging a subagent's behavior.
This skill should be used when picking or diagnosing a training move (SFT, LoRA, DPO/KTO/ORPO, RFT, GRPO/PPO/RLOO, RLHF), or when the user mentions fine-tuning, post-training, training recipe, reward design, or weight updates. Decision tree by reward shape, smoke-run gate, three failure diagnostics, five false-progress patterns. Provider recipes and I/O contract in references/.
Land the winning experiment from an evo run as a clean, mergeable change -- open a PR when the repo has a remote, otherwise merge into the working branch. Distills the best-scoring experiment down to the minimal diff that reproduces its behaviour, shaped for the qualities a maintainer merges on (scope discipline, test integrity, style adherence), then attaches an advisory mergeability report. Use when the user invokes /evo:ship, asks to land/merge/ship the best result, or wants to turn a finished optimization into a pull request.