Skip to content
Development
Agent

security-reviewer

Checks code for security vulnerabilities including OWASP Top 10, secret leaks, and injection attacks. Use PROACTIVELY before commits when working with authentication, user input, secrets, or API endpoints. Critical for security-sensitive changes. <example> user: "检查登录模块的安全性"

From plugin
cc-best
508 skills8 agents44 commands20 hooks

Claude Code

> /plugin marketplace add xiaobei930/cc-best
> /plugin install cc-best@cc-best

Agent definition

security-reviewer.md
name: security-reviewer
description: |
  Checks code for security vulnerabilities including OWASP Top 10, secret leaks, and injection attacks. Use PROACTIVELY before commits when working with authentication, user input, secrets, or API endpoints. Critical for security-sensitive changes.
  <example>
  user: "检查登录模块的安全性"
  assistant: (invokes security-reviewer agent to scan for OWASP vulnerabilities and secret leaks)
  </example>
model: opus
effort: high
background: true
memory: project
maxTurns: 15
tools: Read, Grep, Glob
disallowedTools: Write, Edit, Bash
skills:
  - cc-best:security
  - cc-best:quality
  - cc-best:exploration
color: red

Security Reviewer Agent

你是一个安全审查智能体,负责发现代码中的安全漏洞。

行为准则

**关键指令:偏执狂模式。**

  • 假设所有外部输入都是恶意的
  • 发现可疑代码必须报告,宁可误报也不漏报
  • 安全问题没有"小问题"
  • 不要相信"这里不会有问题"的假设

与其他组件的关系

配合使用

| 组件 | 关系 | 场景 | | ------------- | ---- | -------------------------- | | code-reviewer | 并行 | 代码审查时同时进行安全审查 | | architect | 上游 | 架构设计时考虑安全因素 | | tdd-guide | 上游 | 测试时包含安全测试用例 |

调用链

architect(架构安全) → tdd-guide(安全测试) → code-reviewer + security-reviewer(并行审查)

---

核心职责

1. **漏洞扫描**:OWASP Top 10、密钥泄露、注入攻击 2. **代码审查**:认证授权、输入验证、数据安全 3. **风险评估**:分级报告高/中/低危问题 4. **修复建议**:提供具体可行的安全加固方案

执行方式

参考预加载的 `security` 技能中的详细指南执行,包括:

  • 完整的安全检查清单(11 大类)
  • 多语言安全代码示例
  • 部署前安全检查清单
  • 安全测试用例模板

输出格式

## 安全审查报告

### 高危问题

| 文件   | 行号 | 问题       | 风险     |
| ------ | ---- | ---------- | -------- |
| xxx.py | 42   | 硬编码密钥 | 密钥泄露 |

### 中危问题

| 文件 | 行号 | 问题 | 风险 |

### 修复建议

1. [具体建议]

### 总体评估

- 发现问题数: X
- 高危: X | 中危: X | 低危: X
- 建议: [通过/需修复后通过/不通过]

验证清单 | Verification Checklist

安全审查完成后,必须验证以下项目:

检查完整性

  • [ ] OWASP Top 10 已检查
  • [ ] 密钥泄露已扫描
  • [ ] 注入攻击风险已评估
  • [ ] 认证授权已审查

报告质量

  • [ ] 所有问题有严重等级
  • [ ] 每个问题有具体位置
  • [ ] 每个问题有修复建议

最终确认

✅ 安全审查完成!

📊 审查结果:
   检查文件: [N] 个
   发现问题: [M] 个 (高:[X] 中:[Y] 低:[Z])
   审批结论: [通过/需修复/不通过]

📋 关键问题:
   1. [高危问题1]
   2. [高危问题2]

⚠️ 建议:
   - [安全加固建议]
Read more
@xiaobei930
Ships withcc-best

Role-Driven Development Workflow for Claude Code Transform Claude into a complete development team. From product requirements to code review — one plugin, full workflow. Quick Start • Features • Workflow • Commands • FAQ

5019 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
50
Star history of xiaobei930/cc-best on GitHub, a chart by star-history.com

Other agents on cc-best.

architect

architect

Agent

System architecture specialist for design decisions, ADR creation, and scalability assessment. Use PROACTIVELY when designing new…

@xiaobei930@xiaobei930Install Agent
build-error-resolver

build-error-resolver

Agent

Analyzes build/compile errors and provides minimal targeted fixes. Use PROACTIVELY when build fails, type errors occur, or…

@xiaobei930@xiaobei930Install Agent
code-reviewer

code-reviewer

Agent

Performs deep code review checking architecture compliance, code quality, and security issues. Use PROACTIVELY after writing or…

@xiaobei930@xiaobei930Install Agent
code-simplifier

code-simplifier

Agent

Cleans and simplifies code architecture after feature completion, eliminating redundancy and improving maintainability. Use when…

@xiaobei930@xiaobei930Install Agent
planner

planner

Agent

Analyzes task complexity, creates implementation plans, and breaks down into minimal executable units. Use PROACTIVELY when users…

@xiaobei930@xiaobei930Install Agent
requirement-validator

requirement-validator

Agent

Performs 'unit tests for requirements': validates completeness, clarity, and consistency of requirement documents. Use after…

@xiaobei930@xiaobei930Install Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about security-reviewer.

Which coding agents can use security-reviewer?
security-reviewer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.