home / skills / jeremylongshore / claude-code-plugins-plus-skills / performing-security-code-review
/plugins/examples/security-agent/skills/performing-security-code-review
This skill performs security-focused code reviews using the security-agent plugin to identify vulnerabilities and guide remediation.
npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill performing-security-code-reviewReview the files below or copy the command above to add this skill to your agents.
---
name: performing-security-code-review
description: |
Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin. it analyzes code for potential vulnerabilities like sql injection, xss, authentication flaws, and insecure dependencies. AI assistant uses this skill wh... Use when assessing security or running audits. Trigger with phrases like 'security scan', 'audit', or 'vulnerability'.
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*)
version: 1.0.0
author: Jeremy Longshore <[email protected]>
license: MIT
---
# Security Agent
This skill provides automated assistance for security agent tasks.
## Overview
This skill empowers Claude to act as a security expert, identifying and explaining potential vulnerabilities within code. It leverages the security-agent plugin to provide detailed security analysis, helping developers improve the security posture of their applications.
## How It Works
1. **Receiving Request**: Claude identifies a user's request for a security review or audit of code.
2. **Activating Security Agent**: Claude invokes the security-agent plugin to analyze the provided code.
3. **Generating Security Report**: The security-agent produces a structured report detailing identified vulnerabilities, their severity, affected code locations, and recommended remediation steps.
## When to Use This Skill
This skill activates when you need to:
- Review code for security vulnerabilities.
- Perform a security audit of a codebase.
- Identify potential security risks in a software application.
## Examples
### Example 1: Identifying SQL Injection Vulnerability
User request: "Please review this database query code for SQL injection vulnerabilities."
The skill will:
1. Activate the security-agent plugin to analyze the database query code.
2. Generate a report identifying potential SQL injection vulnerabilities, including the vulnerable code snippet, its severity, and suggested remediation, such as using parameterized queries.
### Example 2: Checking for Insecure Dependencies
User request: "Can you check this project's dependencies for known security vulnerabilities?"
The skill will:
1. Utilize the security-agent plugin to scan the project's dependencies against known vulnerability databases.
2. Produce a report listing any vulnerable dependencies, their Common Vulnerabilities and Exposures (CVE) identifiers, and recommendations for updating to secure versions.
## Best Practices
- **Specificity**: Provide the exact code or project you want reviewed.
- **Context**: Clearly state the security concerns you have regarding the code.
- **Iteration**: Use the findings to address vulnerabilities and request further reviews.
## Integration
This skill integrates with Claude's code understanding capabilities and leverages the security-agent plugin to provide specialized security analysis. It can be used in conjunction with other code analysis tools to provide a comprehensive assessment of code quality and security.
## Prerequisites
- Appropriate file access permissions
- Required dependencies installed
## Instructions
1. Invoke this skill when the trigger conditions are met
2. Provide necessary context and parameters
3. Review the generated output
4. Apply modifications as needed
## Output
The skill produces structured output relevant to the task.
## Error Handling
- Invalid input: Prompts for correction
- Missing dependencies: Lists required components
- Permission errors: Suggests remediation steps
## Resources
- Project documentation
- Related skills and commandsThis skill enables the AI assistant to perform a security-focused code review using the security-agent plugin. It identifies common vulnerabilities such as SQL injection, XSS, authentication and authorization flaws, insecure dependencies, and misconfigurations. The skill produces a structured report with findings, severity levels, and recommended fixes.
When triggered, the assistant activates the security-agent plugin and analyzes the provided code, project files, or dependency manifests. The plugin inspects input handling, data access patterns, authentication flows, use of cryptography, and third-party libraries, then maps findings to known vulnerability types and CVEs where applicable. The output is a prioritized, actionable security report showing vulnerable code locations and remediation guidance.
What inputs does the skill need to run an effective review?
Provide the relevant source files, configuration, and dependency manifests. Context about runtime and environment reduces noise and improves accuracy.
Can this detect business‑logic vulnerabilities?
It detects many patterns but may miss subtle business‑logic flaws; combine automated scans with manual review for those cases.
How are findings prioritized?
Findings are assigned severity levels based on exploitability and impact, with remediation recommendations and affected code locations.