Skip to content
Development
Command

/scan

Launch a comprehensive security audit on the current project. Detects vulnerabilities, scans dependencies, checks OWASP Top 10, and generates a structured report.

From plugin
fusengine-claude-plugins
3434 skills40 agents34 commands
$ npx -y skills add fusengine/claude-plugins --agent claude-code

Command definition

scan.md
description: Launch a security audit on the current project (whole repository or a change vs its merge base). Detects vulnerabilities, scans dependencies, checks OWASP Top 10:2025, verifies each finding, and writes a structured report under docs/security/.
argument-hint: "[--full] [--diff [base]] [--deps-only] [--headers] [--auth] [path]"
disable-model-invocation: false

Security Scan

Execute a security audit following the 6-phase workflow of the `security-expert` agent. The audit reports; it never modifies the audited code.

Usage

  • `/scan` or `/scan --full` - Full security audit of the current repository (default scope)
  • `/scan --diff [base]` - Review of a change: files changed vs the merge base (`base` defaults to `origin/HEAD`) plus untracked files; only issues introduced by the change are reported
  • `/scan --deps-only` - Dependency audit only
  • `/scan --headers` - Security headers check only
  • `/scan --auth` - Authentication patterns audit only
  • `/scan path/to/dir` - Scan a specific directory

Workflow

Severity scale, confidence threshold, noise policy and report format: [`../rules/security-rules.md`](../rules/security-rules.md).

Phase 1: DETECT

  • Marker files (package.json, composer.json, go.mod, Cargo.toml, ...) and framework versions
  • Agent configuration (`.claude/`, `.mcp.json`, `.claude-plugin/`, hooks, skills, agents, `.github/workflows/` running an AI agent) → skill `agentic-security`
  • Diff scope: `git diff --name-only --merge-base <base>` + `git ls-files --others --exclude-standard` (read-only git only)

Phase 2: RESEARCH

  • CVEs and advisories for the detected stack (skill `cve-research`)

Phase 3: SCAN (candidates)

  • Run `bun ${CLAUDE_PLUGIN_ROOT}/../node_modules/@fusengine/harness/dist/cli/bin.mjs scan <dir>` — a first-pass pattern scanner; its `coverage` block (harness ≥ 0.1.115) lists what was scanned, skipped and unsupported; a language absent from `coverage.languages` was not scanned, and an empty result is NOT a clean result
  • Always complete it with the manual patterns of skill `security-scan` for every language, file type and vulnerability class it does not cover (secrets: `references/secrets-patterns.md`)
  • Dependency audit (skill `dependency-audit`); optional CLIs checked with `command -v`, never installed, missing = "not run"
  • Headers/cookies (skill `security-headers`), auth (skill `auth-audit`)
  • Agent configuration, when detected (skill `agentic-security`)
  • Data-flow review: untrusted input traced to sensitive sinks in the scoped files

Phase 4: VERIFY

  • Second read-only pass per candidate that tries to refute it (data flow, framework protections, reachability)
  • Confidence 1-10; ≥ 8 with an exploit scenario → finding; < 8 → "Needs manual review"

Phase 5: REPORT

  • Write `docs/security/YYYY-MM-DD-<scope>.md` in the audited repository
  • Each finding: id, title, severity, confidence, CWE, standard reference, location, evidence, exploit scenario, recommendation
  • Never print a secret value: file:line and secret type only

Phase 6: HANDOFF

  • Return the report path, counts per severity, the findings, the "Needs manual review" list and the tools "not run"
  • Fixes are dispatched by the caller (domain expert, then sniper); `/scan` itself changes no audited file

Arguments

  • `$ARGUMENTS` specifies scan options and target path

Examples

  • `/scan` → Full OWASP + dependency + secrets audit of the repository
  • `/scan --diff` → Security review of the current branch vs `origin/HEAD`
  • `/scan --deps-only` → Quick dependency vulnerability check
  • `/scan src/api/` → Scan only the API directory
Read more
@fusengine
Ships withfusengine-claude-plugins

A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.

34200 skills40 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
34
Star history of fusengine/agents on GitHub, a chart by star-history.com

Other commands on fusengine-claude-plugins.

apex

apex

Command

APEX Methodology - The systematic Analyze-Plan-Execute-eLicit-eXamine approach for intelligent development. Reduces hallucination…

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command