Skip to content
Development
Skill

/security

Security review skill: comprehensive security checklist and patterns. Use when adding authentication, handling user input, working with secrets, or creating API endpoints.

From plugin
cc-best
5019 skills8 agents44 commands20 hooks

Claude Code

$ npx -y skills add xiaobei930/cc-best --skill security --agent claude-code

SKILL.md

security.SKILL.md
name: security
description: "Security review skill: comprehensive security checklist and patterns. Use when adding authentication, handling user input, working with secrets, or creating API endpoints."
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
parent: quality

安全审查技能

> 关联 Agent: `security-reviewer`(安全审查主力)、`code-reviewer`(代码审查中的安全维度)

本技能确保所有代码遵循安全最佳实践,识别潜在漏洞。

快速参考

  • **核心职责**: 确保代码遵循安全最佳实践,识别潜在漏洞
  • **覆盖范围**: 密钥管理、输入验证、SQL 注入、认证授权、XSS/CSRF 防护、速率限制、敏感数据、依赖安全、命令注入、路径遍历
  • **关键原则**: 安全不是可选项,有疑问时选择更安全的方案

触发条件

  • 实现认证或授权
  • 处理用户输入或文件上传
  • 创建新的 API 端点
  • 使用密钥或凭证
  • 实现支付功能
  • 存储或传输敏感数据
  • 集成第三方 API

安全检查速查

| 类别 | 核心规则 | 检查项 | | ------------ | ----------------------------------- | ------------------------------------------ | | **密钥管理** | 环境变量,不硬编码 | `.env.local` 在 .gitignore,Git 历史无密钥 | | **输入验证** | Schema 验证(zod/pydantic),白名单 | 文件上传限制(大小/类型/扩展名) | | **SQL 注入** | 参数化查询,不拼接 SQL | ORM 正确使用 | | **认证授权** | httpOnly cookies,RBAC | Token 不放 localStorage | | **XSS** | DOMPurify 净化,CSP 头 | 无未验证的动态渲染 | | **CSRF** | CSRF Token,SameSite=Strict | 状态变更操作有保护 | | **速率限制** | 所有 API 有限制 | 昂贵操作更严格 | | **敏感数据** | 日志脱敏,通用错误消息 | 堆栈跟踪不暴露 | | **依赖** | npm audit clean,Lock 已提交 | 启用 Dependabot | | **命令注入** | execFile 非 exec,shell=False | 不拼接用户输入 | | **路径遍历** | os.path.basename 过滤 | 不直接拼接路径 |

子文件索引

| 文件 | 内容 | | -------------------------------------------- | ----------------------------------- | | [owasp-patterns.md](./owasp-patterns.md) | OWASP Top 10 详细防护模式和代码示例 | | [verify-checklist.md](./verify-checklist.md) | 安全测试示例 + 部署前安全检查清单 | | [cloud-security.md](./cloud-security.md) | IAM、密钥管理、CI/CD、网络安全 | | [config-audit.md](./config-audit.md) | 配置审计清单 |

参考资源

  • [OWASP Top 10](https://owasp.org/www-project-top-ten/)
  • [Web 安全学院](https://portswigger.net/web-security)

---

> **记住**:安全不是可选项。一个漏洞可能危及整个平台。有疑问时,选择更安全的方案。

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 skills on cc-best.

api

api

RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.

@xiaobei930@xiaobei930Install Skill
architecture

architecture

Architecture design skill: ADR records, system design checklists, scalability assessment, architecture patterns. Use for complex…

@xiaobei930@xiaobei930Install Skill
backend

backend

Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or…

@xiaobei930@xiaobei930Install Skill
compact

compact

Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals…

@xiaobei930@xiaobei930Install Skill
database

database

Database design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing…

@xiaobei930@xiaobei930Install Skill
debug

debug

Systematic debugging methods, log analysis, and performance diagnostics. Use when debugging issues, analyzing errors, or…

@xiaobei930@xiaobei930Install Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about security.

Which coding agents can use security?
security installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.