Skip to content
Back to skills

Clud Preloop

DSecurity

Run a GitHub Actions workflow locally with preloop before pushing a branch to find out whether CI passes.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentsgoshellbashexpressdockergitapi

Works with

  • cli
  • api

Security analysis

D50/100
  • criticalPipes output to a shell interpreter
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned December 4, 2026

npx -y skills add talos-hq/clud --skill clud-preloop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clud Preloop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clud Preloop
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/talos-hq-clud-preloop/badge)](https://www.skillsdirectory.com/skills/talos-hq-clud-preloop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clud-preloop
description: Run a GitHub Actions workflow locally with preloop before pushing a branch to find out whether CI passes.
triggers:
  - When about to push a branch mainly to see whether CI passes
  - When the user asks to run a GitHub Actions workflow locally
  - When a workflow failed remotely and the fix needs more than one attempt
  - When the user mentions preloop
---
<!-- managed-by: clud -->

# clud-preloop

[preloop](https://github.com/preloopdev/preloop) runs `.github/workflows` locally on
hardware-isolated microVMs, speaking the official `actions/runner` protocol rather
than approximating it. `${{ }}` expressions, matrix builds, reusable workflows and
concurrency groups work as they do on GitHub, and it can run against **uncommitted
changes** — including untracked and gitignored files.

The valuable trigger is the one nobody says out loud: *"I'll push and see if CI goes
green."* That is a decision to spend a full remote matrix on a question a local run
answers. Cross-platform failures — a path literal that is absolute on one OS and not
another — are the class this catches cheapest.

## Platform coverage selection

Default to routine CI (no extra labels) and avoid `ci-full` on casual PRs:
`ci-full` is very expensive (~200+ runner-minutes and full multi-OS / installer
acceptance on every push) and must be reserved strictly for changes affecting
all target platforms or the installer/release pipeline (or explicit user
requests). Native PR coverage follows the changed platform implementation:
native API/FFI handling, OS branches, adapters/selectors or native runtime
contracts. Shared business logic and callers of unchanged platform code use the
routine gate. Name the implementation and select the narrowest affected tier
(`ci-windows`, `ci-macos`, `ci-test`); target inventories, helper extraction,
and local coverage gaps do not justify `ci-full` or `ci-windows`. Preserve
routine checks and full nightly/release validation.

## Code Change Rule

If the workflow is being changed to fix a bug or add behavior, use RED -> GREEN:
run it locally first and see it fail for the reason you believe, make the scoped
change, and rerun it to pass. Running a workflow locally makes that cycle cheap
enough to actually do, which is the point.

## Do not use this when

- The task is about the workflow **file** rather than its behavior: renaming a job,
  editing a matrix entry, fixing YAML indentation.
- Reading an existing remote run's logs. That run already happened; `gh run view` is
  the tool.
- The failing thing is not the workflow. A test that fails locally will fail here too,
  and going through a VM to learn that is slower than running the test.

## Before committing the agent to this path

1. `command -v preloop` — if absent, say so and stop.
2. **Install by verified download, not by piping a script into a shell.** preloop's
   README documents `curl -fsSL … | sh`; clud's own rule-writing guide uses that exact
   shape as its canonical example of a pipeline worth blocking, so a clud skill must
   not tell an agent to run it. Each release publishes per-platform tarballs with a
   matching `.sha256` (`preloop-cli-<arch>-<os>.tar.gz` plus `.sha256`, and a
   `sha256.sum`). Download the asset for the platform, verify it against its published
   checksum, and put the binary on PATH — the same material the install script uses.
3. **First run downloads a base image and builds a golden VM: 1–5 minutes.** After
   that each job forks in ~200–300 ms. If the task cannot afford the first-run cost,
   say so rather than starting it and stranding the work.

## The loop

```bash
preloop serve                                    # engine on 127.0.0.1:9090; -d to detach
preloop run -f .github/workflows/ci.yml --event pull_request
preloop dap <run-id>                             # hold the job at entry and inspect it
```

`preloop dap` pauses a job before it runs and exposes the live `github`, `env`,
`runner`, `job`, `steps` and `secrets` scopes. Reach for it when the YAML looks right
and the runtime context is what is actually wrong — a matrix value or event payload
that is not what the workflow assumed.

## Where local and remote differ

A green local run is strong evidence, not a guarantee. Say which one you ran.

- The base image is **curated, not GitHub's** — the official image is ~90 GB, and
  preloop deliberately omits dependencies that actions usually install themselves. A
  step that relies on something preinstalled on a GitHub runner can pass there and
  fail here, or the reverse. Custom and OCI-based goldens are supported.
- On Apple Silicon, x86_64 goldens run under Rosetta 2 translation, and **Docker
  actions are not supported on that path** — amd64 images inside the VM's Docker fail
  with a `rosetta-wrapper` error. Prefer arm64 goldens there.
- Some events need a payload supplied before they can be simulated.

## Relationship to clud-bosn

They do not overlap. bosn manages Docker resources on the **host**; a workflow run by
preloop uses the Docker engine **inside its own microVM**, which the host's bosn
neither sees nor tracks. Use bosn for the local build loop, preloop for the workflow.

## After local validation

When implementing a requested change, continue with the [shared landing contract](https://github.com/talos-hq/clud/blob/main/docs/architecture/launch-plan.md#landing-preference):
push, open the PR, watch hosted CI, fix failures and merge when permitted.
A request only to replay CI ends with its result; offer `/do <issue-url>`
for remaining implementation work.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.