/nuguard:nuguard-behaviorfrom nuguard
Runs intent-aware behavioral tests against a live AI application endpoint, checking SBOM-policy alignment, intent drift, policy violations, and data leakage.
Ships in nuguard. Installing the plugin adds it to Claude Code.
Run behavioral testing against a live AI application endpoint and interpret the results.
Read .claude/nuguard.local.md.
/nuguard-config to collect LLM credentials and target
settings before proceeding. Do not continue to Step 1 until the config exists.llm_api_key, llm_model, target_url, auth_type, and auth
credential fields. These are used to build the CLI environment and to ensure nuguard.yaml
has the correct values.Check which uv 2>/dev/null. If uv is present, use uv run nuguard. Otherwise check which nuguard 2>/dev/null; if on PATH use nuguard. If neither is available, run pip install nuguard first.
Use --config PATH if provided, otherwise look for nuguard.yaml in the current directory.
If nuguard.yaml does not exist, invoke /nuguard-init to generate it (it will be pre-filled
from .claude/nuguard.local.md automatically). Do not continue until nuguard.yaml exists.
LITELLM_API_KEY=<llm_api_key> nuguard behavior --config nuguard.yaml --mode static+dynamic
Omit LITELLM_API_KEY=... if no API key is in the config.
Flag mapping:
--mode MODE (default static+dynamic; options: static, dynamic, static+dynamic)--target URL overrides behavior.target in nuguard.yaml--policy PATH for Cognitive Policy check--fail-on LEVEL (default high)--output PATH to write the report to a fileIf the command exits non-zero, check stderr and help the user diagnose the issue (target unreachable, missing auth config, API key invalid, etc.).
Available flags: --config PATH, --mode static|dynamic|static+dynamic, --target URL, --policy PATH, --fail-on LEVEL, --output PATH
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
7 commands in this plugin
/nuguard-analyzeStatic risk analysis on an AI-SBOM — NGA rules, MITRE ATLAS, CVE scans/nuguard-configConfigure NuGuard — set LLM credentials, target URL, and authentication for this project/nuguard-initInitialise nuguard.yaml, canary.example.json and cognitive-policy.md in the current project/nuguard-redteamAdversarial red-team / pentest testing — prompt injection, data exfiltration, privilege escalation, MCP toxic-flow/nuguard-sbomGenerate an AI Bill of Materials (AI-SBOM) from source code or a git repository/nuguard-scanNuGuard unified scan — SBOM generation → static analysis, with optional policy/red-team validationnpx claudepluginhub nuguardai/nuguard --plugin nuguardOther plugins' commands for the same job