Skip to content
cccskills
FreePublished on GitHub

security

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md3.3 KB
  • cloud-security.md7.6 KB
  • config-audit.md2.5 KB
  • owasp-patterns.md2.2 KB
  • verify-checklist.md10.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

安全审查技能

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

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

快速参考

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

触发条件

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

安全检查速查

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

子文件索引

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

参考资源


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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

api

Free

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals during development sessions.

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

debug

Free

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

The English summary is being prepared. Showing the original description.

xiaobei930/cc-best48Updated Jun 13, 2026

See all skills by xiaobei930

Report a problem with this skill