Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 /roast

Brutal Code Review for Claude Code

Let Claude review your code with zero mercy. Every roast comes with a fix.

Stars License: MIT Claude Code

English · 中文 · 日本語


$ /roast src/auth.py

💀 总评:这段代码的安全性约等于把钥匙插在门上还贴了张纸条写着"请勿入内"。

代码健康度:34/100 🔴

| 🐛 Bug    | 🔒 安全   | ⚡ 性能   | 📖 可读性 | 🏗️ 架构  | 🧹 卫生   |
|-----------|----------|----------|----------|----------|----------|
| 45/100 🟡 | 12/100 🔴 | 55/100 🟡 | 60/100 🟡 | 30/100 🔴 | 40/100 🔴 |

🤔 What is this?

/roast is a Claude Code Skill that performs brutally honest code reviews with Chinese internet meme humor.

Unlike polite AI reviews that say "consider optimizing", /roast tells you exactly what's wrong, why it's wrong, and how to fix it — with zero sugar-coating.

"This code's security is like leaving your key in the door with a note saying 'please don't enter'."

But every roast comes with:

  • 🎯 Specific file + line number
  • 💀 Severity rating (Fatal / Critical / Moderate)
  • 🔧 Complete fix code
  • 📊 Health score (0-100)
  • 🗺️ Priority fix roadmap

⚡ Quick Install

One-liner (any OS)

curl -o .claude/commands/roast.md https://raw.githubusercontent.com/play1216/claude-code-roast/main/.claude/commands/roast.md

Global install (all projects)

curl -o ~/.claude/commands/roast.md https://raw.githubusercontent.com/play1216/claude-code-roast/main/.claude/commands/roast.md

Windows PowerShell

iex (iwr -UseBasicParsing "https://raw.githubusercontent.com/play1216/claude-code-roast/main/install.ps1").Content

Mac / Linux

curl -sL https://raw.githubusercontent.com/play1216/claude-code-roast/main/install.sh | bash

🎮 Usage

/roast src/app.py        # Roast a single file
/roast src/              # Roast an entire directory
/roast .                 # Roast everything

🎯 6 Review Dimensions

Dimension What it checks Roast Level
🐛 Bug Hunter Logic errors, null pointers, race conditions, edge cases ⭐⭐⭐
🔒 Security Guard SQL injection, XSS, hardcoded secrets, OWASP Top 10 ⭐⭐⭐⭐⭐
Performance Guru O(n²) complexity, N+1 queries, memory leaks, missing cache ⭐⭐⭐⭐
📖 Readability Judge Naming, comments, function length, nesting depth ⭐⭐⭐
🏗️ Architecture Review Design patterns, coupling, SOLID violations ⭐⭐⭐⭐
🧹 Code Hygiene Dead code, duplication, magic numbers, error handling ⭐⭐⭐

📊 What You Get

# 🔥 代码审查报告:`src/auth.py`

## 💀 总评
> 这段代码的安全性约等于把钥匙插在门上还贴了张纸条写着"请勿入内"。

**代码健康度:34/100** 🔴

## 🔴 必须修

### 1. SQL 注入:欢迎来到 2005 年
- 文件:`auth.py:23`
- 严重程度:💀 致命
- 吐槽:直接拼接 SQL 字符串?这是在邀请黑客来你家开 party 啊。
- 问题代码:`query = f"SELECT * FROM users WHERE name='{username}'"`
- 修复方案:`cursor.execute("SELECT * FROM users WHERE name=%s", (username,))`

## 🟡 建议改
...

## 🟢 亮点
...

## 🎯 优先修复路线图
1. 立刻修:SQL 注入 + 密码明文存储
2. 本周改:异常处理 + 函数拆分
3. 有空再说:魔法数字 + 日志优化

🆚 Why /roast?

Feature /roast Polite Reviews Linting Tools
Style Brutal + Funny Boring Mechanical
Info Every joke = real bug "Consider optimizing" Error code only
Fix Code ✅ Complete ❌ "Fix it yourself"
Scoring 0-100 6-dimension
Roadmap Priority-sorted
Shareability 😂 Want to screenshot 😴 Forget it 🤖

💬 What People Say

"After being roasted, my code quality improved 3 levels." — Anonymous dev

"I had /roast review my 3-year-old code. It said my security was like leaving the key in the door. It was right." — Frontend engineer

"Finally an AI that tells the truth." — Tech lead


🌍 Supported Languages

Python · JavaScript · TypeScript · Java · Go · Rust · C/C++ · C# · PHP · Ruby · Swift · Kotlin · Dart · SQL · HTML/CSS · Shell

If Claude can read it, /roast can roast it.


🤝 Contributing

  1. Fork this repo
  2. Create your branch (git checkout -b feature/amazing-roast)
  3. Commit your changes (git commit -m 'add amazing roast')
  4. Push to the branch (git push origin feature/amazing-roast)
  5. Open a Pull Request

📄 License

MIT — use it, modify it, share it.


🔥 Roast is the手段, improvement is the目的.

Star this repo · Report a bug · Request a feature

About

🔥 /roast — 毒舌代码审查 Claude Code Skill。让 Claude 用互联网嘴替的方式审查你的代码。

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages