check-security

Scan Python codebases with Bandit and report security vulnerabilities by severity.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sunLeee/optimization --skill check-security-sunleee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-security
Source: https://github.com/sunLeee/optimization/tree/main/.claude/skills/quality/check/check-security
Command: npx skills add https://github.com/sunLeee/optimization --skill check-security-sunleee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bandit-based security scanning helps identify common vulnerabilities in Python codebases, reducing the risk of security issues slipping into production.

Core Features & Use Cases

  • Automated security scanning of Python projects with Bandit to classify issues by severity (HIGH/MEDIUM/LOW).
  • Recursive and targeted scans for specific paths, with guidance for remediation based on CWE mappings.
  • CI integration guidance and a repeatable workflow for installation, execution, and result parsing.

Quick Start

Run /check-security on a codebase to scan for vulnerabilities using Bandit.

Frequently Asked Questions about check-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a Python codebase for security vulnerabilities?

To scan a Python codebase for security vulnerabilities, you can run a tool like Bandit to perform static analysis. It identifies common flaws, classifies them by severity, and maps them to CWE identifiers for remediation.

What is static analysis for finding Python security flaws?

Static analysis for Python security flaws involves scanning source code without executing it to identify dangerous patterns. Tools like Bandit detect vulnerabilities, categorize risk by severity, and provide remediation guidance based on CWE mappings.

Does Bandit support targeted path scanning for specific directories?

Yes, Bandit supports targeted path scanning for specific directories within a Python project. This allows you to focus security checks on particular code paths rather than executing a full-repo scan, saving time during targeted code review.

Can I filter Bandit security scan results by severity level?

Yes, you can filter Bandit security scan results by severity level. The scanner classifies identified vulnerabilities into HIGH, MEDIUM, and LOW categories, allowing you to prioritize remediation efforts based on the risk profile of the findings.

How do I integrate Bandit security scanning into a CI workflow?

You can integrate Bandit security scanning into a CI workflow by scripting the installation, execution, and result parsing phases deterministically. This establishes a repeatable workflow to automatically detect Python vulnerabilities during code integration.

What limitations should I expect when using Bandit for code review?

Bandit focuses on static analysis to identify common security vulnerabilities in Python code. It does not execute code, so it will not detect runtime issues or complex logic flaws, serving strictly as a deterministic, scriptable component of a broader code review.