agentleFS
marshal-orgmarshal-org/runlease/skills/machine/SKILL.md

machine

Skill1 starsChanged 16 days agoApache-2.0View on GitHub

Launch, use and return a leased cloud machine with Runlease. Use when a task needs a separate machine - a long build or test run, more cores or a GPU, a clean Linux box, a port to preview, or work that should not run on this computer.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. AirsupHQ/machine-skill★ 402same name
    2. jorekai/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If runlease is missing or a command fails on a sign-in, use the Runlease setup skill first.

    line 12
  2. Very specific:

    If the Runlease MCP tools are available (runlease_up, runlease_exec and the rest.

    line 13
  3. Very specific:

    Give it back: When the job is done, runlease down NAME --yes, and say so.

    line 46
  4. Distinctive:

    Run it in the background and stop it when done.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Use a leased machine

A Runlease machine is a spot VM in the person's own cloud account. It costs them money from launch until it is deleted, and it deletes itself when its lease ends. Treat it like a borrowed tool: take the smallest one for the shortest time, and give it back.

If runlease is missing or a command fails on a sign-in, use the Runlease setup skill first. If the Runlease MCP tools are available (runlease_up, runlease_exec and the rest; some agents show them with a prefix), prefer them to the shell: same actions, typed arguments.

The loop

runlease up -p gcp -n NAME --ttl 1h -d          # launch. -p aws for AWS. Always -d and always a name
runlease exec NAME -- bash -c 'cd /work && make test'    # run. Compound commands need bash -c
runlease push NAME ./local.tar /tmp/local.tar   # copy a file up
runlease pull NAME /tmp/result.json ./result.json        # copy a file back
runlease snooze NAME 30m                        # set the lease to end 30m from now
runlease down NAME --yes                        # delete it now
runlease list                                   # what is running, time left, cost

Rules that prevent the common mistakes

  1. Name every machine (-n), short and specific to the task. You will need the name for every later command.
  2. Always pass -d. Without it up tries to open an interactive shell.
  3. Read the ☁ line up prints: project or account, region, identity. Wrong one: stop, ask. A 📍 Using ... line above it means Runlease picked the zone, region or network itself because none was named. Tell the person what it picked.
  4. exec runs one program. runlease exec box -- 'a && b' fails. Use runlease exec box -- bash -c 'a && b'.
  5. The first exec may need a wait. The machine takes 30-60 seconds to connect after up -d. Retry runlease exec NAME -- true every 10 seconds, for up to 3 minutes, before giving up.
  6. The machine starts empty. Nothing from this computer is on it: no repo, no credentials, no tools beyond the base image (Debian 12 on GCP, Amazon Linux 2023 on AWS). Push what the job needs, or clone it there. Never push SSH keys, cloud credentials or .env files unless the person asks for exactly that.
  7. Pick the lease from the job, not from habit: 30m for a test run, 2h for a working session. Extend with snooze when it is not enough. snooze sets the time remaining; it does not add.
  8. Give it back. When the job is done, runlease down NAME --yes, and say so. Do not leave machines for the lease to clean up.
  9. No NAT gateway? up stops and lists the choices. Show them to the person. Do not add --public-ip yourself.

Sizes

-s compute.small is the default (about 2 vCPU / 2 GB). Also: compute.micro, compute.medium, compute.large, compute.xlarge, compute.2xlarge, compute.gpu. runlease catalog lists what each maps to. up prints the hourly rate and the cost of the lease: tell the person the figure before launching anything larger than compute.large, and always before compute.gpu.

Reaching a port

runlease forward NAME -L 3000:localhost:3000    # blocks while the forward is open

Run it in the background and stop it when done. The port is reached through the tunnel; nothing is opened on the machine's network.

Limits to know

  • The free public relay allows two machines at once per person. runlease whoami shows the count.
  • A spot machine can be taken back by the cloud at any time. Keep results off it: pull them as you go.
  • runlease list shows the machines this computer tracks, from a local record, plus any untracked ones it finds in the cloud. The state of tracked machines is cached: runlease sync refreshes it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.