← 返回
未分类 中文

RedHat Code Review

Review code for correctness, security, performance, and maintainability.
审查代码的正确性、安全性、性能和可维护性。
mzfshark
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 405
下载
💾 0
安装
1
版本
#latest

概述

SKILL: code-review

Purpose

Analyze code (or a diff) to detect bugs, security issues, performance problems, and maintainability risks, then propose concrete improvements.

When to Use

  • Reviewing a PR/diff before merging.
  • A bug is suspected but not yet reproduced.
  • Hardening/security pass is requested.

Inputs

  • scope (required, string): files, diff, or code snippet to review.
  • intent (optional, string): what the code is supposed to do.
  • constraints (optional, string[]): security/perf/compat constraints.
  • risk_tolerance (optional, enum: low|medium|high).

Steps

  1. Identify entrypoints, invariants, and trust boundaries.
  2. Check correctness:
    • edge cases
    • error handling
    • concurrency/races (if applicable)
  3. Check security:
    • input validation
    • authz/authn
    • secrets handling
    • injection risks
  4. Check performance and resource usage:
    • hotspots
    • unbounded loops/data growth
  5. Check maintainability:
    • naming
    • duplication
    • test coverage gaps
  6. Produce a prioritized, actionable report.

Validation

  • Findings include concrete evidence (line references, behavior, or reproducible scenario).
  • Suggestions are compatible with stated constraints.
  • Distinguish “must-fix” from “nice-to-have”.

Output

Review report (example schema):

summary: "<1 paragraph>"
findings:
  - id: "CR-001"
    severity: "high|medium|low"
    category: "bug|security|perf|maintainability"
    issue: "<what>"
    impact: "<why it matters>"
    recommendation: "<how to fix>"

Safety Rules

  • Do not claim vulnerabilities without evidence.
  • Do not recommend unsafe patterns (e.g., disabling validation to “make it work”).
  • Prefer minimal, targeted fixes.

Example

Input:

  • scope: “diff for auth middleware”

Output:

  • findings include missing audience check on JWTs and a failing negative test case.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 16:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Axodus Trading Integration

mzfshark
Integrate trading infrastructure (hummingbot/MCP) with paper-first mode and audit logs.
★ 0 📥 462

Matrix Detection

mzfshark
识别幻觉、炒作、虚假叙事和系统性操纵;按证据和风险标签区分信号与噪音。
★ 0 📥 451

Community Onboarding

mzfshark
引导新用户主动参与;简明解释 $NEURONS 并提供安全的后续操作。
★ 0 📥 449