agentleFS
ryanmoelterryanmoelter/plume/.claude/skills/plume-vm-setup/SKILL.md

plume-vm-setup

Skill0 starsChanged 10 days agoApache-2.0View on GitHub

Set up Plume's macOS test VMs from scratch, or rebuild them — install Tart, turn on the Labs toggle, build the base image with make-base-image.sh, grant the debug app Full Disk Access in the VM with plume-vm grant-fda, verify, and reset the clones after a macOS or Xcode update. Use on "set up VMs", "set up the VM pool", "rebuild the base image", "the VM base is out of date", "Full Disk Access in the VM", or when plume-vm says the base is missing, has no Xcode, or lacks Full Disk Access.

  • Installs packages

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. Distinctive:

    Ask the user before steps that need them: installing Homebrew packages, turning on Labs in an app they are running, and the Full Disk …

    line 10
  2. Very specific:

    Build the base image: Run scripts/vm/make-base-image.sh in the foreground.

    line 25
  3. Very specific:

    Add --with-xcode when the user needs plume-vm test.

    line 27
  4. Very specific:

    Run scripts/vm/make-base-image.sh --force, with --with-xcode if the old base had Xcode.

    line 42

≈ “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

Set up Plume's test VMs

docs/vm-testing.md is the reference. This is the order to run things in; read the doc for what each step does and why.

Ask the user before steps that need them: installing Homebrew packages, turning on Labs in an app they are running, and the Full Disk Access clicks.

First-time setup

  1. Install Tart. It lives in the openai/tools tap, and Homebrew refuses its tart and softnet formulas until they are trusted.

    brew tap openai/tools
    brew trust --formula openai/tools/tart
    brew trust --formula openai/tools/softnet
    brew install tart
  2. Turn on Labs. The Plume that will own the VMs needs Settings ▸ Labs ▸ "macOS VMs for testing". From a shell: defaults write com.ryanmoelter.Plume labsVMsEnabled -bool true, or com.ryanmoelter.Plume.debug for debug builds. Relaunch the app afterwards; it reads the setting at launch.
  3. Build the base image. Run scripts/vm/make-base-image.sh in the foreground. The first run downloads about 30 GB.
    • Without flags, the base has no Xcode. That is enough for plume-vm launch.
    • Add --with-xcode when the user needs plume-vm test. It copies the selected Xcode in, which must match the host's.
  4. Grant Full Disk Access. This step is manual, once per base image. Build the debug app, then run scripts/vm/plume-vm grant-fda with PLUME_SOCKET set to the socket of the Plume the user is looking at. It prints the clicks: Show the VM in a device tab, turn on Plume α in the guest's System Settings, enter admin. Relay them to the user, and wait for the script to finish. It checks the grant, then saves the VM as the new base. The script refuses to start while you hold a VM. If the VM it claims has an older clone, it resets that slot and claims again, so it grants in a fresh clone. If the base already has the grant, it checks that the grant matches this build's signature, then says so and saves nothing. Before saving, it shuts the guest down and fails if the VM didn't stop cleanly. Saving waits up to 10 minutes for every other VM to stop, naming the busy slot; ask the user to release it. If the save still fails, the script keeps the granted clone and says so: release every VM, leave that slot unclaimed, and run grant-fda again with the same app. It resumes at the save, with no second grant. If it stops anywhere else, it releases its VM; run it again.
  5. Verify.
    • scripts/vm/plume-vm claim, then scripts/vm/plume-vm launch --seed 1. The launch prints no Full Disk Access warning.
    • scripts/debug/plume-control.py --socket <controlSocket> list plumeID=full-disk-access-dismiss-button returns an empty result.
    • With --with-xcode, also run scripts/vm/plume-vm test.
    • Finish with scripts/vm/plume-vm release. Never leave a VM claimed.

Rebuilding after a macOS or Xcode update

The base must match the host's macOS major, and with Xcode, the host's Xcode version. plume-vm test refuses a mismatched Xcode and names this fix.

  1. Release every VM: scripts/vm/plume-vm list shows none leased.
  2. Run scripts/vm/make-base-image.sh --force, with --with-xcode if the old base had Xcode. vms/base-<os>.json records whether it did.
  3. The rebuild deletes every free plume-<os>-<n> clone. For each clone it names as skipped, run plume devices reset vm:<n> once that VM is free.
  4. The new base has no Full Disk Access grant. Repeat step 4 and step 5 above.

A debug rebuild doesn't need a new grant, because TCC matches the signing certificate, not the binary. A build signed by another certificate does.

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.