Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mac-remote

БесплатноЗапускает вложенные скриптыНе проверен

Inspect or administer a macOS machine over SSH, on the LAN or through a reverse tunnel. Every command requires explicit approval before execution, including…

j3ffyangот j3ffyang79 установок в других каталогах

Об этом скилле

Remote management of a macOS machine

Inspect or administer a macOS host over SSH without installing an agent on it. Every command requires explicit approval before execution. Prefer read-only inspection before proposing changes.

Approval gate

  1. Show the exact command or complete command batch.
  2. Identify the target and explain the purpose.
  3. For state-changing commands, describe the effects and rollback method.
  4. Wait for the user's explicit approval of those commands.
  5. Execute only the approved commands.
  6. If another command is needed, request approval before execution.

This gate covers read-only checks, scripts, application launches, configuration changes, verification, retries, and rollback commands. It also covers local and relay commands used for Mac management. For scripts, show their contents or identify the reviewed script and its exact arguments. Approval covers only the displayed commands and the stated execution. A general task request is not approval for undisclosed commands. Tool permissions do not replace user approval.

About this skill

  • Two paths, one host. A LAN alias and a -away alias that rides a reverse tunnel through a relay. Both land on the same machine and verify against the same pinned host key.
  • Prefer the LAN path. Measured for the same report: about 1 s on the LAN, about 7 s through the tunnel.
  • One round trip, not twenty. Every probe runs inside a single remote bash -s. LAN links jitter by tens of milliseconds and the tunnel crosses two oceans twice, so a probe-per-connection design is unusable.
  • No sudo. The skill has no business escalating, and every probe below runs unprivileged.
  • Approval is required for every command. The host belongs to whoever sits at it.

Resolving the target

For desktop automation and VSCodium setup, read Desktop setup. Apply the approval gate to every command in that reference.

Aliases live in ~/.ssh/config, and they are the only place the address is recorded. Never guess a hostname or an address.

ssh -G <alias> | grep -E '^(host|hostname|port|proxyjump) '   # what an alias really resolves to

Set MAC_HOST (or pass the host as the first argument) so the scripts stay address-free:

export MAC_HOST=<alias>

A machine reached two ways usually has two aliases:

Alias Route When
<target> direct, LAN address same network
<target>-away ProxyJump <relay> → <relay>:127.0.0.1:<port> → mac:22 any other network

Never hardcode the address in a script or a skill. A DHCP lease moves; ~/.ssh/config is where that is maintained.

Procedure — the health report

scripts/mac_health.sh                      # uses $MAC_HOST
scripts/mac_health.sh <alias>              # explicit host
scripts/mac_health.sh --full <alias>       # + log scan, updates, hardware profile

It reports: identity and OS, uptime, load and swap, disk, top CPU and memory consumers, battery and sleep policy, FileVault / SIP / Gatekeeper / firewall, Time Machine state, and addressing. With --full it adds recent errors, pending updates, and a hardware profile with the serial number and UUID masked.

The fast tier is the default on purpose. log show and softwareupdate -l each cost seconds, and the update check reaches the network.

Read-only command examples

Present the selected commands as a batch for approval before execution:

ssh <alias> 'df -h /; sysctl -n vm.swapusage; tmutil latestbackup'
ssh <alias> 'ps -Ao rss=,pid=,comm= -m | head -5'
ssh <alias> 'log show --last 10m --predicate "process == \"kernel\"" --style compact | tail -20'

Stop and ask

All commands require approval. For these actions, explain the consequences before requesting approval:

Action Why it is not automatic
sudo anything needs a password the user holds, and is outside this contract
kill or restart a process or app can lose unsaved work
write, move, or delete a file the machine is not yours
softwareupdate -i, package installs changes system state
pmset or machine-wide launchctl changes affects power and boot behaviour
reboot or shutdown ends the tunnel and any remote session

If a probe needs root, say so and stop. Do not reach for sudo.

Verify app launches

  1. Request approval for the launch command.
  2. After launch, request approval for process and listener checks.
  3. Confirm the expected process exists.
  4. For a proxy, confirm the configured port has a listener.
  5. Ask the user to confirm the visible result.

A successful open -a only confirms that the launch request returned successfully. It does not prove the app stayed running. A listener does not prove upstream connectivity.

Remove apps and old agents

  1. Request approval to inspect the exact app path and matching processes.
  2. For an agent, inspect its plist and launchd status after approval.
  3. Distin
Полный SKILL.md на ClawHub

Установить mac-remote в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл mac-remote?

Inspect or administer a macOS machine over SSH, on the LAN or through a reverse tunnel. Every command requires explicit approval before execution, including read-only checks. Use for health reports, app launches, VSCodium workspace setup, SSH UI automation, screenshot permissions, app removal, and tunnel diagnosis.

Как установить скилл mac-remote?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mac-remote запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить mac-remote с