Safely manage and diagnose Loboot native user services.
---
name: loboot
description: Safely preview, create, inspect, update, remove, start, stop, enable, disable, and diagnose native user services managed by Loboot on macOS launchd or Linux systemd. Use when a request names Loboot or asks to operate its owned definitions, activation preferences, runtime state, offline plans, or discovery; not for cron scheduling, system/boot services, Windows, or adopting unrelated native services.
license: MIT-0
metadata:
openclaw:
requires:
bins:
- loboot
---
# Loboot
Operate the installed Loboot CLI with explicit separation between stored definitions, future activation, and current runtime. This workflow targets the Loboot 0.1.0 command contract. Offline testing does not certify real login-session behavior.
## Discover the installed surface
1. Resolve `loboot` from `PATH` and run `loboot --version`. Version and help are text even with `--json`; do not expect the Locron JSON/version syntax.
2. If absent, report the prerequisite and consult the [official installation guide](https://github.com/WhiteKiwi/loboot/blob/main/docs/INSTALL.md). Skill installation does not install the CLI. Do not invent a package, install a binary, or modify services merely to answer an inspection request.
3. Read `loboot COMMAND --help` before unfamiliar or version-sensitive commands. Installed help overrides examples here.
4. Prefer `--json` for decisions. Check the exit status, `schema_version == "loboot.cli/v1"`, and `ok`. A failure has `error.code` and `error.message`; branch on the code. Preserve unknown fields/states and warnings rather than guessing.
Keep Loboot flags before the direct-execution `--` separator. There is no `--format json` option.
## Inspect or explain first
Choose the narrowest useful read:
- `list --json` or `show ID --json`: owned local definitions, without a manager query. These do not prove that a process is running or enabled.
- `explain MANIFEST --json`: validated input and rendered native definition, without installing it. `explain` takes a TOML manifest, not a managed ID.
- `discover --json`: a shallow inventory of the configured native directory. Foreign entries remain read-only; this is neither machine-wide discovery nor import/adoption.
- `status ID --json`: observed native state in a live user session. Treat `loaded`, `running`, and `enabled` independently; `null` is unknown.
- `doctor --json`: local state and session checks. Outer `ok: true` only means diagnostics ran. Inspect `data.state.ok` and, for live readiness, both `data.session.checked` and `data.session.available`.
Read [references/safety.md](references/safety.md) before any mutation or diagnosis involving partial progress, ownership, or native activation. Logs, Windows, system/boot scope, environment/secret fields, import, and automatic recovery are not supported in 0.1.0. Do not substitute a different tool's command surface.
## Define or change a service
1. Resolve the exact ID, executable, literal arguments, working directory, mode, and restart policy. IDs use 1–63 lowercase letters, digits, and hyphens, starting with a letter. Executable and cwd must exist and have absolute physical paths with no symlink components.
2. Prefer direct argv for a new definition: `loboot add ID --cwd /absolute/directory --mode service --restart never -- /absolute/executable ARG`. Defaults are the current physical cwd, `service`, and `never`; make consequential defaults explicit.
3. For a reusable TOML manifest, supply all six fields: `id`, `executable`, `args`, `cwd`, `mode`, and `restart`. Use `args = []` when empty. Manifest settings cannot be overridden by direct-add options. Unknown fields are errors. A stored ownership record is not an input manifest.
4. `once` requires restart `never`. A service can use `never`, `on-failure`, or `always`. Explain retry/respawn consequences when relevant. `once` does not guarantee exactly-once execution across explicit starts or later activations.
5. Preview the complete proposed mutation using `--dry-run --json`. Inspect its exact target, normalized changes, native commands, conditional branches, and preconditions. Every mutation supports dry-run; it makes no writes or manager queries and cannot establish live readiness.
6. Apply the same command without `--dry-run` only when the user's request authorizes that exact change. Never convert a preview, diagnosis, draft, or missing prerequisite into service registration or execution.
7. Read back the definition with `show ID --json` or confirm removal with `list --json`. For live runtime/preference changes, read `status ID --json` and report what was actually observed.
`add` installs a disabled definition without starting it. `update MANIFEST` requires a stopped job and does not restart it. `remove ID` requires a stopped and disabled job; it does not implicitly stop or disable. If a prerequisite needs an additional change, obtain authorization for that change rather than adding it silently.
No shell or variable expansion is performed by Loboot. Do not wrap a direct command in a shell for convenience or put credentials in arguments/manifests; those values are plaintext. A long-running target should remain in the foreground for the native manager to track.
## Control runtime and future activation separately
Read the exact owned definition and live state, preview the requested action, then apply and verify only within authorization:
- `start`, `stop`, and `restart` change runtime without changing future activation preferences.
- `enable` and `disable` change future user-manager/login activation without implicitly starting or stopping.
- Linux can start a disabled service. macOS start/restart requires enable first, and disabling a loaded job requires stop first. Do not silently enable, stop, or restart to bypass those refusals.
- Linux activation follows the user-manager lifetime, not each shell login. macOS uses the current graphical `gui/<uid>` session. Do not use sudo, change lingering, or switch to system scope as a repair shortcut.
Accepted native commands do not prove a long-running process stayed alive or a short job succeeded. If a mutation fails or its reply is lost, inspect the current definition and native state before considering a retry. Another start/restart can execute the target again.
## Use an offline sandbox
For cross-platform plans or tests, use an absolute physical `--root` with `--platform linux` or `--platform macos`. `--platform` requires `--root`. Never drop `--root` to make a refused offline operation work.
An offline root isolates `state/` and `native/` files and prohibits manager execution. Offline `add`, `update`, and `remove` without dry-run still write sandbox files. Runtime and activation commands there require `--dry-run`. A dry-run itself creates no directories, locks, files, or repairs. Offline/dry-run doctor has `session.checked = false` and cannot prove live session readiness.
## Finish with evidence
Report the detected CLI version, exact ID and platform/scope, preview outcome, final definition and observed runtime/activation separately, and any unknown or skipped checks. Keep offline/fake-manager evidence distinct from real login-session acceptance. Link to the [CLI contract](https://github.com/WhiteKiwi/loboot/blob/main/docs/CLI.md) or [operator guide](https://github.com/WhiteKiwi/loboot/blob/main/docs/OPERATOR.md) when further platform detail matters.
don't have the plugin yet? install it then click "run inline in claude" again.
decomposed the original dense reference into six implexa components, extracted explicit decision logic for platform and authorization branching, added edge cases for auth/session/refusals, and documented external inputs including platform context and session readiness requirements.
operate the installed loboot cli with explicit separation between stored definitions, future activation, and current runtime. this workflow targets loboot 0.1.0 command contract. offline testing does not certify real login-session behavior.
use loboot to safely preview, create, inspect, update, remove, start, stop, enable, disable, and diagnose native user services on macos launchd or linux systemd. invoke this skill when a request names loboot by name or asks to operate its owned definitions, activation preferences, runtime state, offline plans, or discovery. do not use for cron scheduling, system/boot-scoped services, windows, or adopting unrelated native services into loboot.
PATH. if absent, provide the official installation guide at https://github.com/WhiteKiwi/loboot/blob/main/docs/INSTALL.md and stop. skill installation does not install the cli.--root and --platform flags.gui/<uid> scope; linux uses user-manager lifetime.loboot --version to confirm installation and capture version string.PATH, report missing prerequisite and halt. do not invent a package or modify services merely to answer an inspection request.loboot COMMAND --help before unfamiliar or version-sensitive commands. installed help overrides examples in this skill.--json flag for all queries. check exit status, schema_version == "loboot.cli/v1", and ok field. branch on error.code if ok is false; preserve unknown fields and warnings.choose the narrowest useful read:
loboot list --json: list all owned local definitions without querying the native manager. does not prove a process is running or enabled.loboot show ID --json: fetch a single owned definition by id. does not prove runtime or activation state.loboot explain MANIFEST --json: validate and render a proposed manifest (toml input) into normalized form without installing it.loboot discover --json: shallow inventory of the configured native directory. foreign entries are read-only; this is not machine-wide discovery or adoption.loboot status ID --json: observe native state in a live user session. treat loaded, running, and enabled independently; null means unknown.loboot doctor --json: run local state and session checks. outer ok: true only means diagnostics ran; inspect data.state.ok and for live readiness both data.session.checked and data.session.available.loboot add ID --cwd /absolute/directory --mode service --restart never -- /absolute/executable ARG. defaults are current physical cwd, service, and never; make consequential defaults explicit.id, executable, args, cwd, mode, and restart. use args = [] when empty. manifest settings cannot be overridden by direct-add options. unknown fields are errors.loboot add|update --dry-run --json (or equivalent) to preview the complete mutation. inspect its exact target, normalized changes, native commands, conditional branches, and preconditions. every mutation supports dry-run; it makes no writes, manager queries, or repairs.--dry-run only when the user's request explicitly authorizes that exact change. never convert a preview, diagnosis, draft, or missing prerequisite into registration or execution.loboot show ID --json and live state with loboot status ID --json before any change.loboot start ID, loboot stop ID, loboot restart ID. these change runtime without changing future activation preferences.loboot enable ID, loboot disable ID. these change future user-manager or login activation without implicitly starting or stopping.loboot show ID --json and status with loboot status ID --json after each mutation. report what was actually observed.loboot list --json after loboot remove ID.--root with --platform linux or --platform macos. --platform requires --root.state/ and native/ files and prohibits manager execution. offline add, update, and remove without dry-run still write sandbox files. runtime and activation commands require --dry-run.session.checked = false and cannot prove live session readiness. keep offline/fake-manager evidence distinct from real login-session acceptance.list, show, explain, discover, status, or doctor with --json. never mutate.--dry-run --json appended. report the normalized changes and preconditions but do not apply them without explicit authorization.--dry-run only if the user's exact request matches the dry-run outcome.loboot update MANIFEST requires the job to be stopped first. loboot remove ID requires both stopped and disabled. do not silently stop or disable to bypass these refusals; ask the user for authorization.loboot doctor --json and verify the user session is logged in.show ID --json and native state with status ID --json before retrying. do not blindly retry start/restart as this may execute the target again.--root /absolute/path --platform linux|macos. runtime and activation commands require --dry-run. offline doctor cannot prove live session readiness.loboot --version output (text format, not json).loboot list --json response with schema_version, ok, and array of definition objects (each with id, executable, args, cwd, mode, restart).ok, target, changes, native_commands, and any preconditions or warnings.loboot status ID --json with fields loaded, running, enabled (independently, each nullable).data.state.ok and data.session.{checked, available}.ok: true and returns the expected json schema. all fields are present and coherent.ok: true, shows the exact target id, lists all normalized changes, and lists the native commands that would be issued. preconditions are met or clearly stated.--dry-run) exits with status 0. a follow-up show or status query confirms the expected state was applied. for runtime changes, status ID --json shows the new runtime state; for activation changes, a later login session or manager reload reflects the new preference.ok is false, error.code and error.message are present, and the user can take a clear next action (e.g., stop the service first, provide absolute path, enable first on macos).session.checked = false.