/onex:authorizefrom onex
Grants temporary authorization for Edit/Write operations in the current session. Supports configurable scope, tools, and TTL.
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.
None: SKILL.md is the whole skill.
Usage: /authorize [scope] [tools] [ttl_seconds]
Grant authorization for Edit/Write operations in the current session. Backed
by node_authorize in omnimarket — logic lives in the node handler, this
skill is a thin UX wrapper.
Invokes node_authorize, which writes a ModelAgentAuthorizationGrant to
$ONEX_STATE_DIR/session/authorization.json via a tempfile + os.replace
atomic swap. The PermissionRequest authorization gate hook reads
this file to auto-approve in-scope Edit/Write requests.
Grant schema (on-disk contract):
{
"scope": ["src/**", "tests/**"],
"granted_at": "2026-04-17T16:00:00+00:00",
"expires_at": "2026-04-17T20:00:00+00:00",
"tools": ["Edit", "Write"]
}
expires_at: null — non-expiring grant (explicit opt-in via ttl_seconds=0).expires_at < now() both collapse to "no grant"; the hook
falls through to the default PermissionRequest flow.Run the node directly via the ONEX node runner:
Use the deterministic node_authorize entrypoint with scope, tool, and
TTL arguments. The node runner returns the same typed authorization result
that the wrapper renders to the user.
Under a full Kafka runtime, the skill wrapper publishes a command envelope to
onex.cmd.omnimarket.authorize-start.v1; the node consumes it, writes the
file, and emits onex.evt.omnimarket.authorize-completed.v1. Under
RuntimeLocal (no infra), the handler runs in-process via
EventBusInmemory — the file is written either way.
$ONEX_STATE_DIR/session/authorization.json. The canonical relative path
constant is exported as AUTHORIZATION_FILE_RELATIVE_PATH from
omnimarket.nodes.node_authorize.models.model_agent_authorization_grant.
Downstream consumers (Task 3 PermissionRequest hook, audit tooling) should
import load_grant_if_valid(path) from the same module. It returns None
for missing, malformed, or expired grants — callers make exactly one
decision.
ONEX_STATE_DIR unset — handler raises RuntimeError. Caller must export
the env var before invocation (set at plugin install time).authorization.json is ever observable.The prior /tmp/omniclaude-auth/{session_id}.json scheme read by
plugins/onex/hooks/lib/auth_gate_adapter.py remains in place for the
PreToolUse gate until the Task 3 PermissionRequest hook ships.
This skill writes the authorization grant file; the PreToolUse adapter migration
is tracked under the unused-hooks epic.
omnimarket/src/omnimarket/nodes/node_authorize/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
authorization, edit-write, session-grant, permission-request
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