Skip to content
Skills Library
DevOps & cloud · Automation

matrix-cloud-run

/matrix-cloud-run

Run commands and coding-agent tasks in observable Matrix OS terminal tabs. Use when a user asks to execute a command, inspect files, build a Matrix app, run validation, or perform coding work on a Matrix cloud computer.

Repository
matrix-os ↗
Licence
AGPL-3.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.

What it does and when to use it

Run commands and coding-agent tasks in observable Matrix OS terminal tabs. Use when a user asks to execute a command, inspect files, build a Matrix app, run validation, or perform coding work on a Matrix cloud computer.

Original author description

Run commands and coding-agent tasks in observable Matrix OS terminal tabs. Use when a user asks to execute a command, inspect files, build a Matrix app, run validation, or perform coding work on a Matrix cloud computer.

How it works

  1. MCP-first execution
  2. CLI fallback terminal policy
  3. CLI fallback readiness gate
  4. Validate the destination
  5. Run tasks
  6. Handoff
Original SKILL.md headings · 111 lines, 830 words
SKILL.md preview
---
name: matrix-cloud-run
description: Run commands and coding-agent tasks in observable Matrix OS terminal tabs. Use when a user asks to execute a command, inspect files, build a Matrix app, run validation, or perform coding work on a Matrix cloud computer.
---

# Run Work on Matrix OS

Use the hosted Matrix MCP tools for remote work. Authenticate HTTP connections with the coding client's browser OAuth flow; no local Matrix CLI is required. The Matrix CLI fallback has separate authentication and is only for users who choose it or clients without remote MCP support.

## MCP-first execution

1. Call `list_computers` and choose the explicit `runtimeSlot`; never guess or silently fall back to another computer.
2. Use `run_command` with the `command` argv array for short probes that need captured output. Hosted HTTP defaults to and caps commands at 45 seconds; use persistent terminals for longer work.
3. For observable or long-running work, use `create_terminal`, `create_terminal_tab` when useful, `select_terminal_tab`, and `send_terminal_input`. Report the terminal and tab names so the user can reconnect in Matrix.
4. Use `list_files`, `read_file`, `download_file`, and `upload_file` for bounded Matrix-home files. These tools never read or write arbitrary local paths.
5. Use `list_chats`, `search_chats`, and `get_chat` only when prior Matrix chat context is relevant; these tools are read-only.

For HTTP authentication failures, reconnect using `codex mcp login <configured-server-name>` or Claude Code's `/mcp` authentication flow. Do not collect tokens in chat. `matrix login` only repairs stdio/CLI authentication, not HTTP OAuth. If hosted MCP is unavailable, explain that status and offer the CLI fallback explicitly.

## CLI fallback terminal policy

- Always use `matrix run -it --project <project> ... -- <argv...>` for remote commands; use `main` outside a known project.
- When another terminal or concurrent task is needed, create another tab in the same project workspace.
- Report every returned tab ID and `matrix shell connect --project <project> --tab <tab-id>` command immediately.
- Pass prompts as command arguments after `--`; never interpolate user input into `sh -c`, `bash -lc`, substitutions, or a single shell string.

## CLI fallback readiness gate

Verify the local CLI, hosted profile, login, identity, and instance:

```bash
matrix --version
matrix profile show cloud
matrix doctor
matrix whoami
matrix status
matrix instance info --json
```

`matrix instance info --json` reads authenticated instance metadata from the gateway. A successful structured response confirms metadata reachability, not command execution. Use `matrix doctor` and a separate bounded one-shot `matrix run --project main -- true` command when execution health is required; do not infer execution readiness from `matrix instance info`.

If login is missing or expired, run `matrix login --profile cloud` and let the user complete browser/device authentication. If the instance is not provisioned, use `https://app.matrix-os.com` and wait until it is ready.

Check only the selected agent in separate readiness tabs:

```bash
matrix run -it --project main -- codex --version
matrix run -it --project main -- codex login status
matrix run -it --project main -- claude --version
matrix run -it --project main -- claude auth status
```

Run only the Codex pair or Claude pair. Authenticate a disconnected agent in `auth-codex-<suffix>` or `auth-claude-<suffix>`. Never scan, read, or upload local credential files. Ask before installing a missing global tool and prefer Matrix's visible developer-tool installation path.

## Validate the destination

- Normalize a safe relative destination under the Matrix home.
- Reject empty paths, absolute paths, backslashes, control characters, and `.` or `..` segments.
- Use `apps/<slug>` for a runnable Matrix app and `projects/<name>` for ordinary work.
- Inspect an existing destination before using it and stop on conflicting contents.

Use separate observable tabs for each probe:

```bash
matrix run -it --project main -- test -e <dir>
matrix run -it --project main -- test -d <dir>
matrix run -it --project main -- ls -la <dir>
```

For a new app, create the normalized directory before selecting it:

```bash
matrix run -it --project main -- mkdir -p -- apps/<slug>
matrix run -it --project main -C apps/<slug> -- pwd
```

`-C` selects an existing directory; it never creates it. Do not pass a nonexistent path to `matrix run -C`.

## Run tasks

Create a new tab for every command:

```bash
matrix run -it --project <project> -C <dir> -- <argv...>
matrix shell connect --project <project> --tab <tab-id>
```

Observe the session through completion and report its actual command result. Never infer success from partial output or a disconnected local terminal.

For Codex inspection:

```bash
matrix run -it --project <project> -C <dir> -- codex --ask-for-approval never --sandbox read-only exec -- <prompt>
```

For Codex changes:

```bash
matrix run -it --project <project> -C <dir> -- codex --ask-for-approval never --sandbox workspace-write exec -- <prompt>
```

Pair unattended Codex with `--ask-for-approval never` and an explicit sandbox. Never use `danger-full-access` without explicit direction.

Run Claude without repetitive permission questions using its verified auto mode:

```bash
matrix run -it --project <project> -C <dir> -- claude --permission-mode auto -p <prompt>
```

Auto mode keeps background safety checks while minimizing clarification and permission prompts. If the installed Claude version or account does not support auto mode, report that limitation and stop; do not fall back to a permission bypass.

## Handoff

Report the normalized destination, exact argv, validation performed, changed files, outcome, every terminal reference, and every `matrix shell connect --project <project> --tab <tab-id>` command.
Files in this package (2)
  • SKILL.md 6 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named matrix-cloud-run.

Database snapshot: 13.11.2026 · package version 1570e351c8d3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100matrix-os
    Set up and operate a Matrix OS cloud computer from a local AI agent using observable project-scoped terminal tabs. Use for Matrix CLI login and recovery, in-VPS Codex or Claude authentication, remote commands, Matrix app creation, and collision-safe GitHub repository changes.
  • 100matrix-github-project
    Clone, verify, reuse, and change GitHub repositories in observable project-scoped terminal tabs on a Matrix OS cloud computer. Use when a user supplies a GitHub repository, asks to continue work in an existing checkout, wants a Matrix app checkout, or requests code changes and validation on Matrix.
  • 100matrix-optimizer
    Optimize GitHub Actions matrix strategies for testing across multiple versions, platforms, and configurations. Use when configuring matrix builds, testing multiple versions, cross-platform testing, or optimizing CI resource usage. Trigger words include "matrix strategy", "test…
  • 100cloud-run-service-config
    Configure cloud run service config operations. Auto-activating skill for GCP Skills. Triggers on: cloud run service config, cloud run service config Part of the GCP Skills skill category. Use when configuring systems or services. Trigger with phrases like "cloud run service…
  • 100cloudharness
    Operate Cloud Harness MCP safely and effectively: open isolated remote coding workspaces with optional environment/secrets injection, inspect capabilities, inspect and edit files, run bounded commands or managed tasks, work with Git, worktrees, and brokered GitHub actions,…
  • 90esp32-ci-target-matrix-design
    Use when designing, reviewing, debugging or validating ci target matrix design for ESP32 firmware; apply target-specific constraints, failure analysis and measurable verification before release.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.