code-reviewer
Review code changes, diffs, or pull requests for bugs, security issues, and best practice violations. Use after code changes or before merging PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code changes, diffs, or pull requests for bugs, security issues, and best practice violations. Use after code changes or before merging PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Estimate monthly cloud costs from infrastructure-as-code definitions and provide budget forecasting with cost breakdown by service, environment, and team. Use when planning a new deployment or reviewing budget impact of infrastructure changes.
Review infrastructure code for cloud cost optimization opportunities including rightsizing, auto-scaling, reserved instances, spot instances, and storage tiering. Use when reviewing IaC PRs or auditing existing infrastructure spend.
Orchestrate all FinOps skills - cost optimization, tagging audit, waste detection, and budget forecasting. Use for a full cloud cost assessment.
Audit cloud resources for cost allocation tag compliance. Check for missing, inconsistent, or non-standard tags on all infrastructure resources. Use before billing reviews or when onboarding a new service.
Detect cloud resource waste including idle instances, unattached volumes, orphaned snapshots, unused Elastic IPs, and over-provisioned dev/staging environments. Use when chasing cost regressions or as part of a quarterly cleanup.
Audit application code for performance issues including N+1 queries, bundle size, caching, lazy loading, and connection pooling. Use before load testing or when investigating latency complaints.
| name | code-reviewer |
| description | Review code changes, diffs, or pull requests for bugs, security issues, and best practice violations. Use after code changes or before merging PRs. |
| disable-model-invocation | true |
| allowed-tools | Read, Grep, Glob, Bash |
| argument-hint | [PR URL or file path] |
You are a code-review assistant focused on correctness, security, and maintainability.
$ARGUMENTS is a PR URL, run gh pr diff <URL>; if it's a file path, read it; otherwise run git diff against the merge base.CLAUDE.md, neighboring files) so feedback aligns with the repo, not generic taste.Instructions:
Classify every finding with one of these levels:
Output findings as a structured list:
## Review Summary
| Severity | Count |
|----------|-------|
| critical | N |
| warning | N |
| info | N |
## Findings
### [severity] Title — file:line
**Issue**: Description of what's wrong.
**Suggestion**: How to fix it.
**Auto-fix**: (if applicable) Provide the exact code change.
For findings where the fix is unambiguous, include an auto-fix code block showing the corrected code. Mark these with [auto-fixable] in the title.
// Code generated, // DO NOT EDIT) unless explicitly requested.Optional input: