/warden:wardenfrom warden
Inspect and control the Warden content gate. Shows whether the session's content gate is open or closed and the threat that closed it (`/warden` or `/warden status`), and explicitly clears a closed gate to re-enable Write/Edit/Bash (`/warden clear`). Clearing is the only sanctioned way to reopen the gate — it records a user override in the warden.* event stream. Use when Warden has blocked a write/edit/bash operation, or when the user asks to check or clear the content gate.
Ships in warden. 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.
You are operating the Warden content gate — the user-facing control surface for the gate that Warden's hooks open and close automatically.
Warden enforces Meta's Agents Rule of Two: an agent should hold at most two of {access to private data, ability to take external actions, processing of untrusted content}. When Warden's detection hook finds an injection pattern in content ingested via WebFetch or Read, it closes a session-scoped gate that revokes the external actions property — blocking Write, Edit, MultiEdit, and Bash until the user explicitly clears it. This skill is that explicit clear (and a status readout).
Read the user's argument after /warden:
status → status actionclear, reopen, override, unblock → clear actionIf the user passed a session id explicitly (rare), capture it as the optional second argument.
Source the plugin helpers and invoke warden_cli. The Bash tool may be zsh and keeps no functions between calls, so send this block inside bash, in one call:
bash <<'ONLOOKER_SKILL'
<this block, with the action filled in>
ONLOOKER_SKILL
set -uo pipefail
export CLAUDE_SESSION_ID="${CLAUDE_SESSION_ID}"
export CLAUDE_PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}"
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/warden-config.sh"
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/warden-events.sh"
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/warden-gate-state.sh"
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/warden-cli.sh"
# action is "status" or "clear"; SESSION_ID_ARG is optional and usually empty.
warden_cli "<action>" "${SESSION_ID_ARG:-}"
warden_cli resolves the session automatically: it prefers the current session, falls back to the single closed gate if exactly one exists, and reports ambiguity if several sessions have closed gates (re-run with an explicit session id in that case).
threat_type, source_type, source URL/path, confidence, detection method, matched pattern, and the flagged snippet (if storage is enabled).warden.threat.cleared with cleared_by: user_override. This re-enables Write/Edit/Bash for the session.When you clear the gate on the user's behalf:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub onlooker-community/ecosystem --plugin warden