一键导入
code-review-checklist
Use during any code review or self-review of a diff. Comprehensive checklist for security, performance, readability, and design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use during any code review or self-review of a diff. Comprehensive checklist for security, performance, readability, and design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-review-checklist |
| description | Use during any code review or self-review of a diff. Comprehensive checklist for security, performance, readability, and design. |
Apply in this order. Stop at the first severity that matters and fix before continuing.
with / defer / using)..env*, hardcoded keys, default passwords).requireAuth().crypto.randomBytes, secrets.token_bytes) for tokens; bcrypt / argon2 for passwords.npm audit / pip-audit / cargo audit.skip / xfail added without justification.time.sleep, no real network, no random without seed.userId > id. parsedSchema > data.prettier --check, ruff format --check, gofmt -l).eslint, ruff check, golangci-lint, clippy -- -D warnings).Use whenever writing, reviewing, or debugging Dockerfiles, docker-compose files, or container-based deployments. Covers multi-stage builds, layer caching, security, image size, and compose patterns.
Use whenever a task involves git operations — commits, branches, rebasing, PR descriptions, conflict resolution, history rewriting. Provides Conventional Commits rules, branch strategy, conflict-resolution patterns, and PR description templates.
Use when the user wants to review a pull request, understand what a PR changes, assess risk of merging, or check for missing test coverage. Examples: "Review this PR", "What does PR #42 change?", "Is this PR safe to merge?"
Use whenever writing, planning, or critiquing tests. Covers the test pyramid, mocking patterns, fixture design, coverage targets, and how to choose between unit / integration / e2e for a given scenario.
Use whenever writing or reviewing Vue code in this repo's admin SPA (frontend/src/admin). Covers Vue 3 Composition API, `<script setup lang="ts">`, Pinia stores, Vue Router, composables, Vite, and common anti-patterns.