setup-shell
Install or refresh Agent Guard's plugin-local shell integration. Use when the user explicitly asks to enable or update shell command masking, or when a…
Diagnose, install, and verify Agent Guard's plugin-local binary, jq and gitleaks dependencies, the active host integration, and live hook protection. Use when Agent Guard reports degraded protection, a SessionStart warning asks for setup, plugin hooks fail or appear bypassed, or
$ npx -y skills add JeongJaeSoon/agent-guard --skill setup-agent-guard --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/setup-agent-guardContext preview
The summary Claude sees to decide when to auto-load this skill.
Diagnose, install, and verify Agent Guard's plugin-local binary, jq and gitleaks dependencies, the active host integration, and live hook protection. Use when Agent Guard reports degraded protection, a SessionStart warning asks for setup, plugin hooks fail or appear bypassed, or
name: setup-agent-guard description: Diagnose, install, and verify Agent Guard's plugin-local binary, jq and gitleaks dependencies, the active host integration, and live hook protection. Use when Agent Guard reports degraded protection, a SessionStart warning asks for setup, plugin hooks fail or appear bypassed, or a user asks to finish or repair Agent Guard installation. disable-model-invocation: true
Make Agent Guard operational without silently changing the machine. Diagnose first, request approval before package-manager or download actions, and finish with a real smoke test.
1. Resolve the Agent Guard executable without confusing the plugin with a standalone install.
2. Run the read-only diagnosis:
"<agent-guard-bin>" setup
`setup` and `doctor` report only local dependencies. Their `host hook protection: unverified` notice is expected even when they exit `0`; do not call that result runtime protection.
3. If `jq` is missing, identify the available system package manager and show the exact install command. Ask for explicit user approval before running it. Do not use `sudo` unless the user explicitly approves elevated installation.
4. If `gitleaks` is missing, prefer Agent Guard's private, checksum-pinned installer:
"<agent-guard-bin>" setup --install \
--gitleaks-version "<version>" \
--gitleaks-checksum "<published-sha256>"Never substitute an unverified checksum and never bypass TLS verification.
5. If an approved dependency installation is blocked by the host sandbox:
install destination, or bypass the sandbox silently.
private gitleaks installer, preserve the plugin-local binary path, version, and published checksum from the approved command above.
`"<agent-guard-bin>" setup` diagnosis, and continue only when the dependency reports `ok`.
6. Verify the plugin-local installation:
"<agent-guard-bin>" check "<agent-guard-bin>" smoke-test
Treat `check` as dependency/config validation and `smoke-test` as proof of the binary's own behavior. They do not prove that the host is dispatching plugin hooks.
7. Identify the active host and verify its plugin boundary before claiming that protection is active.
8. Run live host probes through the normal command tool selected by the active host for the current task. Do not read a real sensitive file.
printf '%s\n' 'AGENT_GUARD_LIVE_PRE_TOOL_PROBE'
The expected result is an Agent Guard block before the marker is printed. If the marker appears, the live command boundary is not protected.
printf '%s\n' 'AGENT_GUARD_LIVE_POST_TOOL_PROBE'
The raw marker must not reach the model; expect `[REDACTED]` in a masked or sanitized replacement. These sentinels prove host dispatch without reading a sensitive file or printing a credential-shaped value; the plugin-local smoke test separately proves the real detection rules.
Agent Guard is a local-first guardrail for Claude Code, Codex, Git hooks, GitHub Actions, and direct shell use. It blocks common secret-exposure paths before a supported tool runs, redacts supported tool output, and scans changed files after mutations.
Repo: JeongJaeSoon/agent-guard
Install or refresh Agent Guard's plugin-local shell integration. Use when the user explicitly asks to enable or update shell command masking, or when a…