/nlpm:security-scan [path]from nlpm
Scans a Claude Code plugin directory for security risks in executable artifacts (hooks, scripts, MCP configs, dependencies) and produces a report with a BLOCK/REVIEW/PASS gate recommendation.
Ships in nlpm. Installing the plugin adds it to Claude Code.
Scan a plugin or skill repo for security risks before auditing or contributing.
If arguments provided: use as target directory path. If no arguments: use the current working directory.
Check the target exists and contains at least one of:
.claude-plugin/agents/commands/skills/hooks/scripts/If none found: report "Not a Claude Code plugin directory" and stop.
Dispatch the security-scanner agent on the target directory.
Wait for the agent to complete and collect its report.
Display the full report in this exact structure: the agent report as the body, followed by the gate banner as the footer. The security-scanner agent emits the body; this command appends only the banner.
{security-scanner agent report — verbatim}
────────────────────────────────────────────────────────────
{GATE BANNER — chosen per recommendation, see below}
────────────────────────────────────────────────────────────
Gate banners:
If the recommendation is BLOCK:
SECURITY GATE: BLOCKED
Critical/High security findings. Do NOT install or contribute to this plugin without resolving these findings first.
If the recommendation is REVIEW:
SECURITY GATE: REVIEW NEEDED
Medium-severity findings detected. Review the findings before proceeding.
If the recommendation is PASS:
SECURITY GATE: PASSED
No Critical/High security findings. Safe to proceed with audit and contribution.
Error handling:
security-scanner agent returns no report → "Security scan failed: no report produced. Re-run /nlpm:security-scan {path}."What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
15 commands in this plugin
/checkCheck cross-artifact consistency — reference integrity, orphans, contradictions/fixAuto-fix fixable findings in NL artifacts — missing fields, heading gaps, field renames/initPrepare NLPM for this project — detect artifacts, set strictness, capture baseline trend snapshot/lsDiscover all natural language programming artifacts in a repository/reportRender a self-contained HTML report — per-file scores, score trend, cross-artifact graph, vocabulary noun-verb map, drift candidates, and findings — into .claude/nlpm-reports/. Opens directly via file://. No server, no build, no network./scoreScore NL programming artifacts — 100-point quality score per filenpx claudepluginhub xiaolai/nlpm --plugin nlpmOther plugins' commands for the same job