Skip to content
Skill Authoring
Command

/security-scan

Scan a Claude Code plugin for security risks in executable artifacts (hooks, scripts, MCP configs, dependencies).

BOOST
From plugin
nlpm
15315 skills8 agents15 commands1 hook
Install
> /plugin marketplace add xiaolai/nlpm
> /plugin install nlpm@xiaolai

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/security-scan

Context preview

What this command does when you run it.

Scan a Claude Code plugin for security risks in executable artifacts (hooks, scripts, MCP configs, dependencies).

Command definition

security-scan.md
name: security-scan
description: Scan a Claude Code plugin for security risks in executable artifacts (hooks, scripts, MCP configs, dependencies).
user-invocable: true
argument-hint: "[path]"
allowed-tools: Read, Glob, Grep, Task

Security Scan

Scan a plugin or skill repo for security risks before auditing or contributing.

Step 1: Parse Input

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.

Step 2: Dispatch Security Scanner

Dispatch the `security-scanner` agent on the target directory.

Wait for the agent to complete and collect its report.

Step 3: Present Results

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:**

  • Target path does not exist → "Directory not found: {path}"
  • `security-scanner` agent returns no report → "Security scan failed: no report produced. Re-run /nlpm:security-scan {path}."
Read more
Ships withnlpm

Natural-Language Programming Manager — score, check, fix, and test NL artifacts across Claude Code, Codex CLI, and Antigravity. Tier-aware scoring with per-tool overlays. Part of the xiaolai plugin marketplace.

Get the whole plugin

Other commands on nlpm.

report
Command

report

Render a self-contained HTML report — per-file scores, score trend, cross-artifact graph, vocabulary noun-verb map, drift…

@xiaolai@xiaolaiInstall Command