/os-control-mcp:cross-layer-verifyfrom os-control-mcp
Verify that an action actually worked by fusing TWO independent senses onto the machine — the GUI (screen-mcp's pixel-change signal) and the OS (os-control-mcp's os_verify: systemd unit state + journald). Use whenever an action is supposed to have a system effect you must confirm across a long or high-stakes task: clicking a Restart/Apply/Start button in a GUI, toggling a service from a settings panel, or any step where "it looked like it worked" is not good enough. The loop catches the failure a single-layer agent cannot see — a GUI that changed while the service never did (or a service that changed while the UI froze). Requires os-control-mcp; the pixel half additionally needs screen-mcp (without it, verification degrades cleanly to OS-only).
Ships in os-control-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One sense lies. A screenshot can't tell a spinner from a frozen app; systemd can't see a dialog. Fuse both and you can tell a real success from a no-op — the thing that makes long-horizon work survivable. This skill encodes the loop:
begin → act → read both senses → end → reconcile.
os_verify action=begin — snapshot the baseline. Pass the units the action
should affect (e.g. ["nginx.service"]), optionally expect (unit → wanted state,
e.g. {"nginx.service": "active"}), and scope (system|user). Keep the returned
token.screen_click on the GUI
button, an os_service restart, a manual step.screen_verify — preferred. It polls until the screen settles or a timeout,
grades the GUI itself (CONFIRMED/PARTIAL/NO_OP/DIVERGED), and returns a
pixel block ready to hand straight to step 4. Takes expect_text / expect_gone
/ expect_change, so you can assert the button's effect rather than just "something
moved". Use this when the GUI effect may take a moment to appear.screen_sense — passive. Returns {"pixel": {changed, opened, modal, no_op, activity}} for whatever the last action already left behind, with no waiting. Use
it when the action is known to be instantaneous, or when you have already screenshotted.os_verify action=end — pass the token and, if you have one, pixel=<the pixel object from screen_verify or screen_sense>. It re-reads systemd + journald
and returns the verdict.Both emit the same {"changed": bool, ...} contract; os_verify reads changed and
ignores the rest, so either is safe to pass.
os_verify action=begin units=["dbus.service"] -> token
screen_click / os_service / manual step
screen_verify expect_change=true region=[...] -> {"verdict":"CONFIRMED","pixel":{"changed":true}}
os_verify action=end token=<token> pixel={"changed":true}
A GUI-only action (a hover) against an untouched unit returns
status: DIVERGED, cross_layer: "pixel-changed-os-static", reconciled: false.
An inert action on both layers returns status: NO_OP, reconciled: true,
cross_layer: null. Both quadrants were exercised end-to-end against a live desktop.
| status | meaning | do |
|---|---|---|
| CONFIRMED | expectation met (or a plausible OS effect happened), no journal errors, layers agree | proceed |
| PARTIAL | some expected units met, others not | inspect the per-unit block; finish the rest |
| NO_OP | nothing changed at the OS layer and (if given) the screen was static | the action did nothing — re-ground and retry, don't build on it |
| DIVERGED | a unit failed, journald logged errors, OR the layers disagree | STOP. Read cross_layer + journal.sample. Do not assume success. |
cross_layer: "pixel-changed-os-static" is the signal to care about most: the GUI moved
but the service never did — the button "worked" visually and did nothing real. That is
exactly the silent failure that compounds over a long task.
os_verify is read-only — it never mutates; it only observes and reconciles. Safe
to call freely.token is stateless (it carries the baseline), so begin and end need not be
adjacent — do arbitrary work in between.pixel; you still get OS-layer
verification (unit state + journald), just without the GUI cross-check.expect is optional. With it you assert the intended end-state and get CONFIRMED/
PARTIAL grading; without it, os_verify reports whether anything changed and flags
failures/errors.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
os-control-mcp@88plug is listed by 88plug/claude-code-plugins — review the source before installing
npx claudepluginhub 88plug/claude-code-plugins --plugin os-control-mcp