Skip to content

nddipiazza/robos / .agents/skills/deploy-to-vm

deploy-to-vm

Verified

Deploy one or more packages/apps/libraries from the local repository to the running RobOS QEMU VM.

FileKindSize
SKILL.mdskill md2.3 KB
---
name: deploy-to-vm
description: Deploy one or more packages/apps/libraries from the local repository to the running RobOS QEMU VM.
---

# Deploy to RobOS VM

Deploy one or more packages from the local repo to the running RobOS VM.

## Input

$ARGUMENTS — Package name(s) to deploy (e.g. `app-launcher`, `icon-manager`, `robos-icons robos-lib`). Use `all` to deploy every package in `packages/`.

## Steps

### 1. Verify VM is reachable

```bash
ssh -p 2224 -o StrictHostKeyChecking=no -o ConnectTimeout=5 robos@localhost 'echo SSH_OK'
```

If not reachable, start the VM first (`/start-vm`).

### 2. Resolve packages

- If `all`: list all directories in `packages/`
- Otherwise: use the provided package name(s)
- Verify each `packages/<name>/` exists locally

### 3. Deploy each package

For each package, determine if it's an **app** (has `main.js` + `renderer/`) or a **library** (no renderer):

**For apps:**
```bash
scp -P 2224 -o StrictHostKeyChecking=no -r packages/<name>/* robos@localhost:/tmp/<name>-deploy/
ssh -p 2224 -o StrictHostKeyChecking=no robos@localhost "
  sudo rm -rf /usr/local/share/robos/<name> &&
  sudo cp -r /tmp/<name>-deploy /usr/local/share/robos/<name> &&
  sudo chmod -R a+rX /usr/local/share/robos/<name> &&
  sudo bash -c 'cd /usr/local/share/robos/<name> && npm install --quiet' &&
  sudo cp /usr/local/share/robos/<name>/<name>.desktop /usr/share/applications/<name>.desktop 2>/dev/null;
  rm -rf /tmp/<name>-deploy
"
```

**For libraries (no renderer/):**
```bash
scp -P 2224 -o StrictHostKeyChecking=no -r packages/<name>/* robos@localhost:/tmp/<name>-deploy/
ssh -p 2224 -o StrictHostKeyChecking=no robos@localhost "
  sudo rm -rf /usr/local/share/robos/<name> &&
  sudo cp -r /tmp/<name>-deploy /usr/local/share/robos/<name> &&
  sudo chmod -R a+rX /usr/local/share/robos/<name> &&
  rm -rf /tmp/<name>-deploy
"
```

**IMPORTANT reminders:**
- Always `sudo chmod -R a+rX` after `sudo cp -r` — otherwise Electron can't read the files
- `.desktop` files go to `/usr/share/applications/` (NOT `/usr/local/share/applications/`)
- Clean up `/tmp/<name>-deploy/` after install

### 4. Verify

For each deployed package:
```bash
ssh -p 2224 -o StrictHostKeyChecking=no robos@localhost 'ls /usr/local/share/robos/<name>/'
```

### 5. Report

List each package with deploy status (success/fail).
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall