搜索

PythonReactSEOPDF
OpenClaw

afrexai-code-reviewer

Enterprise-grade code review agent. Reviews PRs, diffs, or code files for security vulnerabilities, performance issues, error handling gaps, architecture smells, and test coverage. Works with any language, any repo, no dependencies required.

1kalin0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install 1kalin/afrexai-code-reviewer

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Code Review Engine

Enterprise-grade automated code review. Works on GitHub PRs, local diffs, pasted code, or entire files. No dependencies — pure agent intelligence.

Quick Start

Review a GitHub PR
Review PR #42 in owner/repo
Review a local diff
Review the staged changes in this repo
Review a file
Review src/auth/login.ts for security issues
Review pasted code

Just paste code and say "review this"


Review Framework: SPEAR

Every review follows the SPEAR framework — 5 dimensions, each scored 1-10:

🔴 S — Security (Weight: 3x)
Check Severity Example
Hardcoded secrets CRITICAL API keys, passwords, tokens in source
SQL injection CRITICAL String concatenation in queries
XSS vectors HIGH Unsanitized user input in HTML/DOM
Path traversal HIGH User input in file paths without validation
Insecure deserialization HIGH eval(), pickle.loads(), JSON.parse on untrusted input
Auth bypass CRITICAL Missing auth checks on endpoints
SSRF HIGH User-controlled URLs in server requests
Timing attacks MEDIUM Non-constant-time string comparison for secrets
Dependency vulnerabilities MEDIUM Known CVEs in imported packages
Sensitive data logging MEDIUM PII, tokens, passwords in log output
Insecure randomness MEDIUM Math.random() for security-sensitive values
Missing rate limiting MEDIUM Auth endpoints without throttling
🟡 P — Performance (Weight: 2x)
Check Severity Example
N+1 queries HIGH DB call inside a loop
Unbounded queries HIGH SELECT * without LIMIT on user-facing endpoints
Missing indexes (implied) MEDIUM Frequent WHERE/ORDER on unindexed columns
Memory leaks HIGH Event listeners never removed, growing caches
Blocking main thread HIGH Sync I/O in async context, CPU-heavy in event loop
Unnece...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-code-reviewer
Version
—
Commit
3f66de07b759404e5df1a2de6ea6f918ae708819
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

AfrexAI Code Reviewer

Enterprise-grade automated code review for your AI agent. Reviews GitHub PRs, local diffs, or pasted code using the SPEAR framework — Security, Performance, Error Handling, Architecture, Reliability.

Install

clawhub install afrexai-code-reviewer

What You Get

  • SPEAR scoring system — 5 dimensions, weighted, 0-100 final score with clear verdicts
  • 60+ specific patterns across TypeScript, Python, Go, Java, and SQL
  • 4 severity levels with point deductions that drive the score
  • Structured output template — every review is consistent and actionable
  • Security review depth levels — Quick, Standard, Deep, Threat Model
  • Quick checklist mode for fast reviews
  • GitHub & local git integration — works with gh CLI or raw diffs
  • Heartbeat/cron ready — auto-review new PRs on a schedule

Usage

Just tell your agent:

Review PR #42 in my-org/my-repo
Review the staged changes in this repo
Do a deep security review of src/auth/

vs Other Review Skills

Feature Others AfrexAI
Scoring system ❌ ✅ SPEAR 0-100
Language patterns 2-3 5+ languages, 60+ patterns
Security depth levels ❌ ✅ 4 levels
Architecture review ❌ ✅ coupling, layers, complexity
Business logic review ❌ ✅ spec matching, edge cases
Operability review ❌ ✅ rollback, monitoring, flags
No dependencies ❌ (needs scripts) ✅ pure agent skill

⚡ Level Up

Want code review as part of a complete engineering workflow? Check out our SaaS Context Pack — includes code review, incident response, deployment checklists, and more.

👉 Browse Context Packs ($47)

🔗 More Free Skills by AfrexAI

来源内容

SKILL.md
# Code Review Engine

Enterprise-grade automated code review. Works on GitHub PRs, local diffs, pasted code, or entire files. No dependencies — pure agent intelligence.

## Quick Start

### Review a GitHub PR
```
Review PR #42 in owner/repo
```

### Review a local diff
```
Review the staged changes in this repo
```

### Review a file
```
Review src/auth/login.ts for security issues
```

### Review pasted code
Just paste code and say "review this"

---

## Review Framework: SPEAR

Every review follows the **SPEAR** framework — 5 dimensions, each scored 1-10:

### 🔴 S — Security (Weight: 3x)
| Check | Severity | Example |
|-------|----------|---------|
| Hardcoded secrets | CRITICAL | API keys, passwords, tokens in source |
| SQL injection | CRITICAL | String concatenation in queries |
| XSS vectors | HIGH | Unsanitized user input in HTML/DOM |
| Path traversal | HIGH | User input in file paths without validation |
| Insecure deserialization | HIGH | `eval()`, `pickle.loads()`, `JSON.parse` on untrusted input |
| Auth bypass | CRITICAL | Missing auth checks on endpoints |
| SSRF | HIGH | User-controlled URLs in server requests |
| Timing attacks | MEDIUM | Non-constant-time string comparison for secrets |
| Dependency vulnerabilities | MEDIUM | Known CVEs in imported packages |
| Sensitive data logging | MEDIUM | PII, tokens, passwords in log output |
| Insecure randomness | MEDIUM | `Math.random()` for security-sensitive values |
| Missing rate limiting | MEDIUM | Auth endpoints without throttling |

### 🟡 P — Performance (Weight: 2x)
| Check | Severity | Example |
|-------|----------|---------|
| N+1 queries | HIGH | DB call inside a loop |
| Unbounded queries | HIGH | `SELECT *` without LIMIT on user-facing endpoints |
| Missing indexes (implied) | MEDIUM | Frequent WHERE/ORDER on unindexed columns |
| Memory leaks | HIGH | Event listeners never removed, growing caches |
| Blocking main thread | HIGH | Sync I/O in async context, CPU-heavy in event loop |
| Unnece...
README
# AfrexAI Code Reviewer

Enterprise-grade automated code review for your AI agent. Reviews GitHub PRs, local diffs, or pasted code using the **SPEAR framework** — Security, Performance, Error Handling, Architecture, Reliability.

## Install

```bash
clawhub install afrexai-code-reviewer
```

## What You Get

- **SPEAR scoring system** — 5 dimensions, weighted, 0-100 final score with clear verdicts
- **60+ specific patterns** across TypeScript, Python, Go, Java, and SQL
- **4 severity levels** with point deductions that drive the score
- **Structured output template** — every review is consistent and actionable
- **Security review depth levels** — Quick, Standard, Deep, Threat Model
- **Quick checklist mode** for fast reviews
- **GitHub & local git integration** — works with `gh` CLI or raw diffs
- **Heartbeat/cron ready** — auto-review new PRs on a schedule

## Usage

Just tell your agent:

```
Review PR #42 in my-org/my-repo
```

```
Review the staged changes in this repo
```

```
Do a deep security review of src/auth/
```

## vs Other Review Skills

| Feature | Others | AfrexAI |
|---------|--------|---------|
| Scoring system | ❌ | ✅ SPEAR 0-100 |
| Language patterns | 2-3 | 5+ languages, 60+ patterns |
| Security depth levels | ❌ | ✅ 4 levels |
| Architecture review | ❌ | ✅ coupling, layers, complexity |
| Business logic review | ❌ | ✅ spec matching, edge cases |
| Operability review | ❌ | ✅ rollback, monitoring, flags |
| No dependencies | ❌ (needs scripts) | ✅ pure agent skill |

## ⚡ Level Up

Want code review as part of a complete engineering workflow? Check out our **SaaS Context Pack** — includes code review, incident response, deployment checklists, and more.

👉 [Browse Context Packs ($47)](https://afrexai-cto.github.io/context-packs/)

## 🔗 More Free Skills by AfrexAI

- [afrexai-lead-hunter](https://clawhub.com/skill/afrexai-lead-hunter) — ICP-driven lead generation
- [afrexai-seo-content-engine](https://clawhub.com/skill/afrexai-seo-cont...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.