osmatrix-ci
osmatrix-ci: run GitHub Actions workflows locally
osmatrix gives agents local guests (an ubuntu container, windows/macos VMs, or any machine over ssh) and local GitHub Actions runs with act. This skill covers the CI loop. Sibling skills in the same plugin: osmatrix-guests (run commands, copy files, forward ports and drive the GUI inside a guest) and osmatrix-setup (host checks, creating guests, troubleshooting).
Use the MCP tools (ci_plan, ci_run, ...) when they are available: they are the supported interface. ci_run and env_exec are annotated as destructive, so the client asks the user to confirm them.
If the osmatrix MCP tools are missing from this session, tell the user before doing anything else. Say that the osmatrix MCP server isn't loaded, so you'll use the osmatrix CLI instead, and suggest the likely fix: enable or restart the osmatrix MCP server in the client's MCP/plugin settings (a server that failed once may stay failed until it is toggled off and on). Then continue with the CLI: every tool has a matching command (see references/reference.md); add --json for machine output. Check osmatrix --version first. If the command isn't found, tell the user osmatrix isn't installed and offer to run it from npm, as npx osmatrix@0.4.0 <command> or after npm i -g osmatrix@0.4.0. Running either downloads and executes the package, so wait for the user to agree; if they don't, stop.
Always pass the repository's absolute host path as repo to every ci_* tool: the MCP server's working directory may be the plugin cache, not the user's checkout.
How legs run
A workflow's matrix is expanded into legs. ubuntu-* legs run with act on the host's Docker; windows-* / macos-* legs run act inside the matching VM (host mode), after checking the working tree out in it with Git, as actions/checkout does (details in references/reference.md).
Linux legs use act_linux_image from the osmatrix config. At its default (catthehacker/ubuntu:act-24.04), osmatrix runs them in a local layer over it, osmatrix/ubuntu:act-24.04-<hash>-rust<version>, which adds the Rust toolchain GitHub's ubuntu runners preinstall (rustup stable with rustfmt and clippy, at the runner image's version, looked up once a day). The first Linux leg after that version changes builds it (a few minutes, needs network; the leg's log says so) and concurrent runs wait for the build. Offline, legs fall back to the newest local image, then to act's plain image without Rust, and the log warns: report Rust failures after such a warning as an environment gap. A user-set act_linux_image is used as is. Details in references/reference.md.
A windows/macos leg needs that guest to be ready (env_status, CLI osmatrix status). If the guest is absent or its status detail says "not set up", follow osmatrix-setup first; VM setup takes 20–60 min. VMs are slow to boot (1–3 min), so don't start VMs you don't need, and leave a VM running while you iterate.