Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

security-scan · ruvnet — Claude Code skill: what it does, how to install

Scans a repo at three depths: dependency audit, hard-coded secrets, risky code patterns. Useful before a release or while reviewing a PR.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill security-scan -a claude-code
Open on GitHub

What security-scan does

The skill runs three passes over the repo: npm audit on dependencies, a grep for hard-coded secrets, and a grep for risky code patterns. The --depth quick|standard|deep flag only controls how many directory levels the second and third passes descend — 3, 5 or 10. On quick the pattern pass is skipped.

Everything goes through npx @claude-flow/cli@latest. security scan --depth DEPTH --output json does the run, security cve --list prints known CVEs, security threats --model stride --export md writes a threat-model template. That last one is a STRIDE/DREAD/PASTA template and never reads your code.

Findings are pattern matches; the scan does not follow data flow or trace auth logic. Open every hit at the reported line before you pass it on. Ignore matches in comments, error strings, test fixtures and generated bundles such as coverage/ or playwright-report/. At the end memory_store keeps the summary under the security-findings namespace, and hooks_post-task takes the results for pattern training.

What it helps with

  • audit dependencies with npm audit before a deploy
  • hunt down hard-coded keys in source files
  • check a PR for security regressions
  • list known CVEs for the project
  • draft a STRIDE threat model in Markdown

Example prompts for the agent

  • Run the security-scan skill at standard depth and list every finding with its file and line.
  • Scan this PR at quick depth, secrets in the new files first.
  • Do a deep security-scan before the deploy and store the findings.

How to install security-scan

1Skills CLI (Vercel)

npx skills add ruvnet/ruflo --skill security-scan -a claude-code

2Manually: put the files in place

~/.claude/skills/security-scan/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/security-scan/

From the same set104

The whole set →
ruflo ruvnet This skill adds multi-agent orchestration, memory, routing, and MCP tools to a project. Use it for swarm tasks and multi-step workflows. Claude Code CX Codex Cursor +1 4,000installs Swarm Orchestration ruvnet Skill for managing agent swarms with parallel execution, dynamic topology, and automatic load balancing. Use when a single agent is not enough and you need to orchestrate specialists of different types. Claude Code CX Codex Cursor +1 2,100installs github-project-management ruvnet Turns issue triage and board upkeep into gh and ruv-swarm calls: labels, subtasks, duplicate lookup. Useful when the tracker holds more tickets than order. Claude Code CX Codex Cursor +1 1,400installs github-workflow-automation ruvnet Automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. Claude Code CX Codex Cursor +1 1,300installs github-code-review ruvnet Runs a swarm of specialized AI agents to inspect GitHub pull requests for security, performance, and architecture issues. Claude Code CX Codex Cursor +1 1,300installs stream-chain ruvnet Chains sequential agent steps together using streaming JSON flow and provides ready-to-run pipelines. Claude Code CX Codex Cursor +1 1,200installs flow-nexus-swarm ruvnet Deploy cloud-based AI agent swarms and define event-driven workflows with message queues. Use it to coordinate tasks, inspect runs, and scale a swarm. Claude Code CX Codex Cursor +1 1,200installs performance-analysis ruvnet Detects bottlenecks in Claude Flow swarms, profiles agent operations, and generates reports with actionable optimization recommendations. Claude Code CX Codex Cursor +1 1,200installs

Other versions of security-scan

Similar

shopify-apps sickn33 Patterns for Shopify app development with Remix and React Router. Guides App Bridge setups, Polaris UI components, billing flows, and webhooks. Claude Code CX Codex Cursor +1 1,000installs backend-security-coder sickn33 Hardens backend application code with allowlist validation, safe database queries, secure cookie handling, and API authentication logic. Claude Code CX Codex Cursor +1 1,000installs twilio-communications sickn33 Helps build Twilio communication features: SMS, voice calls, WhatsApp messaging, and two-factor verification. Useful when wiring IVR systems or securing account logins. Claude Code CX Codex Cursor +1 994installs mantis-plan official google Generates a targeted security review plan based on your threat model and historical findings. Run at the start of a review campaign to map code boundaries and prioritize what to check. Claude Code CX Codex Cursor +1 1,600installs mantis-summarize official google Builds a security-focused codebase map with mantis-summary.md files in each directory. Reduces token overhead during planning and research. Claude Code CX Codex Cursor +1 1,600installs trailmark trailofbits Builds and inspects multi-language code graphs to trace taint propagation, map attack surfaces, and prioritize security audits. Claude Code CX Codex Cursor +1 4,000installs git-guardrails-claude-code Matt Pocock This skill adds a Claude Code hook that stops risky Git commands before they run. Use it when an agent must not push or discard working-tree changes. Claude Code 499,069installs ponytail-review DietrichGebert ponytail-review reviews a change beyond the diff, checking connected code, bugs, risks, load, tests, speed, and unnecessary code. Use it for PRs and commits. Claude Code CX Codex Cursor +1 56,300installs

Questions about security-scan

How do I install security-scan in Claude Code?

Run npx skills add ruvnet/ruflo --skill security-scan -a claude-code. The skill lands at ~/.claude/skills/security-scan/SKILL.md.

What does security-scan do?

It runs npm audit, then greps for secrets and risky patterns down the depth you pick. Findings can go to MCP memory and to hooks_post-task.

What is the difference between standard and deep?

standard walks 5 directory levels, deep walks 10. Dependencies are checked at both depths, while quick never runs the pattern grep.

Source text

SKILL.md · MIT
---
name: security-scan
description: Run full security scans on the codebase using Ruflo security tools. Use when reviewing PRs for security regressions, auditing auth/input-handling code, before production deploys, or when the user asks for a security check at quick/standard/deep depth.
allowed-tools: Bash(npx *) mcp__plugin_ruflo-core_ruflo__memory_store mcp__plugin_ruflo-core_ruflo__hooks_post-task Read Grep
argument-hint: "[depth: quick|standard|deep]"
---
Run a security scan at the specified depth.

Via CLI:
```bash
npx @claude-flow/cli@latest security scan --depth DEPTH --output json
npx @claude-flow/cli@latest security cve --list
npx @claude-flow/cli@latest security threats --model stride --export md
```

What the scan really does (`v3/@claude-flow/cli/src/commands/security.ts`): phase 1 runs `npm audit` for dependencies, phase 2 greps for hard-coded secrets, phase 3 greps source for risky code patterns. `--type deps|code|all` picks phases; `--depth` only sets how many directory levels phases 2 and 3 descend:

| Depth | Dependencies | Secrets (levels) | Code patterns (levels) |
|-------|--------------|------------------|------------------------|
| quick | yes | 3 | skipped |
| standard | yes | 5 | 5 |
| deep | yes | 10 | 10 |

It is a pattern scanner, not a taint or auth-flow analyser, and `security threats` is a separate STRIDE/DREAD/PASTA template, not a scan of your code. Treat every finding as a lead, not a verdict: open the file at the reported line before reporting it, and drop matches in comments, error strings, generated bundles (`coverage/`, `playwright-report/`) and test fixtures. Say which of the phases above you ran and which you did not.

Store findings via MCP: `mcp__plugin_ruflo-core_ruflo__memory_store({ key: "scan-findings", value: "SUMMARY", namespace: "security-findings" })`

Train patterns: `mcp__plugin_ruflo-core_ruflo__hooks_post-task({ taskId: "security-scan", success: true, storeResults: true })`

© ruvnet · MIT · ruvnet/ruflo

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor