Search

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 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install 1kalin/afrexai-code-reviewer

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-code-reviewer
Version
—
Commit
3f66de07b759404e5df1a2de6ea6f918ae708819
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

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

Extracted content

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...

Related skills

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.