agentleFS
xiaobei930xiaobei930/cc-best/skills/security/SKILL.md

security

Skill48 starsChanged 10 months agoMITView on GitHub

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

  • Reads credentials

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cost-reducer, trigger-dev and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • daianepepes-labSkill

    cost-reducer

    Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.

    Also in 5 projects that use this

  • xfstudioSkill

    trigger-dev

    Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    scalability

    Core foundational concepts and principles for Scalability

    Also in 4 projects that use this

  • daianepepes-labSkill

    self-healing

    Detect, diagnose, and automatically fix recurring errors, memory issues, and system degradation. Use when a system has recurring failures, memory leaks, performance degradation, or needs automatic recovery mechanisms.

    Also in 5 projects that use this

  • xfstudioSkill

    customer-support

    Elite AI-powered customer support specialist mastering

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • +1 more from daianepepes-lab

The file

Files
SKILL.md

安全审查技能

关联 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配置审计清单

参考资源


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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.