/onex:verify_pluginfrom onex
Runs post-deployment verification checks to confirm the omniclaude plugin is correctly loaded after deploy and restart. Reports PASS/FAIL per check category.
Ships in onex. 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.
Read when SKILL.md points to them.
Run a complete post-deployment verification suite. Report PASS or FAIL for each check category.
IMPORTANT: Run this skill only in a fresh Claude Code session opened after the deploy + restart cycle. Running it in a stale session may produce false positives from cached environment state.
Do not resolve the plugin root from
~/.claude/plugins/. Neitherinstalled_plugins.jsonnorplugins/cache/<marketplace>/<plugin>/currentis guaranteed to be the load path. For adirectory-source marketplace,${CLAUDE_PLUGIN_ROOT}resolves to the marketplace's owninstallLocation— the source checkout — and the cache is never read. A cache tree observed in the field was 24 days stale and carried ahooks.jsontwo minor versions behind the one executing. Verifying the cache verifies a tree that does not run.
Read back the real load path (step 0 — everything else depends on it):
python3 "$CLAUDE_PLUGIN_ROOT/hooks/lib/plugin_deploy_readback.py"
This resolves the load path the way Claude Code does
(known_marketplaces.json → source type → installLocation → marketplace.json plugin
source) and prints, per agent class (main session / Task() subagent / Workflow agent()
subagent): the resolved root, the loaded hooks.json version, every registered hook with an
EXEC-OK check, and the behind/dirty state of the load-path tree vs its upstream.
Report its VERDICT line and every tripwire verbatim. In particular:
MERGED_NOT_DEPLOYED — the tree is behind upstream. For a directory source there is no
install step, so git -C <load path repo> pull --ff-only is the deploy. A merged hook is
not a live hook.LOAD_PATH_MISMATCH — expected today; it means the registry is lying, not that the plugin
is broken.RESOLUTION_RULE_CHANGED — stop. The load path moved. Re-derive it from
known_marketplaces.json before reporting any verdict; do not report a result from the
previous assumption.Then bind the rest of the suite to the path it resolved — fail closed, because a suite
that runs against an empty or wrong PLUGIN_ROOT produces the confident-but-false verdict
this step exists to prevent:
READBACK="$CLAUDE_PLUGIN_ROOT/hooks/lib/plugin_deploy_readback.py"
RB_JSON=$(python3 "$READBACK" --json --no-fetch); rb_rc=$?
if [ "$rb_rc" -eq 1 ]; then
echo "ABORT: load path unresolvable — report the readback output, run nothing else."; exit 1
fi
PLUGIN_ROOT=$(printf '%s' "$RB_JSON" \
| python3 -c 'import json,sys; print(json.load(sys.stdin).get("resolved_load_path") or "")')
if [ -z "$PLUGIN_ROOT" ] || [ ! -d "$PLUGIN_ROOT" ]; then
echo "ABORT: resolved_load_path empty or not a directory — do not fall back to the cache."; exit 1
fi
echo "Verifying: $PLUGIN_ROOT"
Exit 3 (alarm-level tripwire) is not an abort — it is a finding to report alongside the rest of the suite.
Run structural checks (Layer 1):
bash "$PLUGIN_ROOT/skills/verify_plugin/verify-deploy.sh"
Report the exit code and full output verbatim.
In-session behavioral checks (Layer 2):
a. Poly enforcer — weak indirect signal The fact that this skill is running does not prove the enforcer is fully functional. It only proves the current invocation was not blocked. Report this as "enforcer did not block this session" rather than "enforcer is active."
# Check the hook script exists and is executable
ls -la "$PLUGIN_ROOT/hooks/scripts/pre_tool_use_poly_enforcer.sh" 2>/dev/null || echo "NOT FOUND"
b. Session-start context injected:
echo "CLAUDE_PLUGIN_ROOT=${CLAUDE_PLUGIN_ROOT:-(NOT SET)}"
c. Resolve the interpreter the hooks actually run on — do this before the two
probes below. The plugin's own lib/.venv is NOT it: that venv left find_python()'s
resolution chain in April 2026 and was removed as an orphan. Probing it verified an
interpreter no hook uses. Resolve the chain instead, in common.sh find_python()'s
own order:
PYTHON=""
REPO_ROOT="$(cd "$PLUGIN_ROOT/../.." 2>/dev/null && pwd || true)"
CANDIDATES=()
CANDIDATES+=("${PLUGIN_PYTHON_BIN:-}")
CANDIDATES+=("${CLAUDE_PLUGIN_DATA:+$CLAUDE_PLUGIN_DATA/.venv/bin/python3}")
CANDIDATES+=("${REPO_ROOT:+$REPO_ROOT/.venv/bin/python3}")
CANDIDATES+=("${ONEX_REGISTRY_ROOT:+$ONEX_REGISTRY_ROOT/omniclaude/.venv/bin/python3}") # local-path-ok: find_python() chain entry 4, named so this probe matches the interpreter that runs
CANDIDATES+=("${OMNICLAUDE_PROJECT_ROOT:+$OMNICLAUDE_PROJECT_ROOT/.venv/bin/python3}")
for candidate in "${CANDIDATES[@]}"; do
if [[ -n "$candidate" && -x "$candidate" ]]; then PYTHON="$candidate"; break; fi
done
echo "hook interpreter: ${PYTHON:-(none resolved)}"
Report which entry answered. "None resolved" is a finding, not a skip — the hooks have no interpreter on this host.
d. Hook runtime daemon — probe via the resolved interpreter (portable, not nc -U):
SOCKET="$PLUGIN_ROOT/hooks/hook-runtime.sock"
export PLUGIN_SOCK="$SOCKET"
"$PYTHON" - <<'PYEOF'
import socket, os, json, sys
sock_path = os.environ.get("PLUGIN_SOCK", "")
if not sock_path or not os.path.exists(sock_path):
print(f"socket not found at {sock_path} (daemon may not be running)")
sys.exit(0)
try:
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as s:
s.settimeout(2)
s.connect(sock_path)
s.sendall(json.dumps({"action": "ping"}).encode())
resp = s.recv(1024)
print(f"daemon responded: {resp.decode()!r}")
except Exception as e:
print(f"daemon probe failed: {e}")
PYEOF
e. Python venv accessible from hook context — same resolved interpreter:
"$PYTHON" -c \
"import omniclaude; print(f'omniclaude version: {omniclaude.__version__}')"
f. Skill count sanity check (rough proxy only — does not prove discovery or registry resolution):
count=$(ls "$PLUGIN_ROOT/skills/" | grep -v '^_' | wc -l | tr -d ' ')
echo "Skill directories: $count"
# Threshold: set this to (current count at deploy time) and update when skills are added/removed.
# This is a floor check, not a contract. It catches accidental mass-deletion, not individual corruption.
[[ "$count" -ge 90 ]] && echo "✓ skill count ok" || echo "✗ skill count too low (expected ≥ 90)"
Report summary table:
| Check | Type | Status | Notes |
|---|---|---|---|
| File structure | file_exists | ✓/✗ | |
| Load-path readback | command_exit_0 | ✓/✗ | resolved root + hooks.json version + tripwires |
| JSON validity | command_exit_0 | ✓/✗ | |
| Skill naming (snake_case) | command_exit_0 | ✓/✗ | |
| Python venv imports | python_import | ✓/✗ | |
| No editable installs | command_exit_0 | ✓/✗ | |
| Hook smoke (exec+shape) | command_exit_0 | ✓/✗ | N hooks, structural only |
| Settings consistency | file_exists | ✓/✗ | compatibility sanity |
| Enforcer hook exists | file_exists | ✓/✗ | weak indirect signal |
| Session context injected | in_session | ✓/✗ | |
| Hook runtime daemon | python_socket | ✓/✗ | informational |
| Skill count | in_session | ✓/✗ | rough floor check |
Final verdict: Output ✓ PLUGIN VERIFIED or ✗ VERIFICATION FAILED (N checks failed).
node_verify_effectonex node node_verify_effectOn non-zero exit, a SkillRoutingError JSON envelope is returned — surface it directly, do not produce prose.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (omninode-ai/omniclaude) — no native marketplace selected
npx claudepluginhub p/omninode-ai-onex-plugins-onex128 skills in this plugin
/adversarial_pipelineAdversarial PipelineAutonomous 3-stage adversarial plan-to-ticket pipeline — design_to_plan → hostile_reviewer gate (≥3 issues required) → plan_to_tickets. All stages run as background agents. Zero foreground work./agent_healthcheck/onex:agent_healthcheck — dispatch-only shimDispatch-only shim for agent stall detection and recovery. All detection and recovery logic lives in node_worker_stall_recovery (omnimarket). The skill parses args, builds the input envelope, dispatches to the node, and renders the receipt./aislop_sweep