From aport-guardrails
Set up APort guardrails for Claude Code. Creates a passport and activates the PreToolUse hook that enforces policy on every tool call. Local evaluation by default, zero network calls.
npx claudepluginhub aporthq/aport-agent-guardrails --plugin aport-guardrailsThis skill uses the workspace's default tool permissions.
You are setting up APort Agent Guardrails for Claude Code. Follow these steps in order.
Set up APort guardrails for OpenClaw. Local-first policy enforcement that checks tool calls against your passport before execution. Zero network calls by default. Open-source (Apache 2.0).
Tunes Secure Claude Code security profiles to strict, balanced, or minimal levels. Lists protections and explains guards via commands and docs. Use to adjust or understand local policy.
Scans Claude Code .claude/ directory for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Audits CLAUDE.md, settings.json, MCP servers, hooks, and agents.
Share bugs, ideas, or general feedback.
You are setting up APort Agent Guardrails for Claude Code. Follow these steps in order.
Run these checks. If either fails, tell the user what to install and stop.
bash --version | head -1
Expected: GNU bash, version 4 or higher.
jq --version
Expected: jq-1.x. If missing, tell the user: brew install jq (macOS) or apt install jq (Linux).
${CLAUDE_PLUGIN_ROOT}/bin/aport-status.sh 2>/dev/null
If this prints passport info, guardrails are already active. Ask the user if they want to reconfigure. If they say no, stop here.
If it prints nothing or errors, continue to Step 3.
APORT_FRAMEWORK=claude-code ${CLAUDE_PLUGIN_ROOT}/bin/aport-create-passport.sh --framework=claude-code
This is an interactive wizard. It will prompt the user for:
Let the user interact with the wizard directly. Do not answer the prompts for them.
Expected outcome: A passport file is created at ~/.claude/aport/passport.json.
${CLAUDE_PLUGIN_ROOT}/bin/aport-status.sh
Expected: Shows passport location, agent ID, and evaluation mode. If this succeeds, tell the user guardrails are active.
The PreToolUse hook is registered automatically by the plugin system. No settings.json editing is needed.
If the wizard fails or status shows no passport:
~/.claude/aport/ directory exists~/.claude/DEBUG_APORT=1 prefix for verbose output