一键导入
security-review
Apply when performing a security review, checking for vulnerabilities, or implementing authentication and authorization logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply when performing a security review, checking for vulnerabilities, or implementing authentication and authorization logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Git-versioned agent memory — agents that never make the same mistake twice.
Apply when generating ideas, exploring solution space, or facilitating divergent thinking before committing to an approach.
Apply when closing out a feature branch — pre-merge checklist, rebase, CI verification, cleanup, and post-merge steps.
Apply when writing or refactoring code. Generic rules to prevent the most common review comments — function length, naming, error handling, security, and tooling.
Apply when designing database schemas, writing migrations, or reviewing table structure. Covers naming, keys, indexes, constraints, nullability, and migration safety.
Apply when diagnosing a bug, reproducing a failure, or performing root cause analysis. Covers systematic isolation, binary search, logging strategy, and hypothesis-driven investigation.
| name | security-review |
| description | Apply when performing a security review, checking for vulnerabilities, or implementing authentication and authorization logic. |
| license | MIT |
| version | 1.0.0 |
| tokens_target | 2200 |
| triggers | ["security review","vulnerability check","auth implementation"] |
| loads_after | ["code-quality"] |
| supersedes | [] |
Purpose: Deep security rules for authentication, authorization, injection, session management, and API hardening. Complements code-quality rules 20–23 with IDOR, SSRF, and access-control depth.
is_logged_in guard.HttpOnly, Secure, and SameSite=Strict (or Lax) on session cookies; never omit any of these three attributes.Access-Control-Allow-Origin: * on endpoints that return authenticated data; always enumerate trusted origins explicitly.Content-Security-Policy header that restricts script-src to known origins; never use unsafe-inline without a nonce or hash.pip-audit, npm audit, trivy); block merge if high-severity findings are unresolved.skills/code-quality/SKILL.md — rules 20–23 cover sanitization, parameterized queries, and secret hygiene at a general level; this skill deepens those with IDOR, SSRF, and session specifics.skills/error-log/SKILL.md — ERR-2026-019 motivated rule 2 (resource ownership check).