Let Claude review your code with zero mercy. Every roast comes with a fix.
$ /roast src/auth.py
💀 总评:这段代码的安全性约等于把钥匙插在门上还贴了张纸条写着"请勿入内"。
代码健康度:34/100 🔴
| 🐛 Bug | 🔒 安全 | ⚡ 性能 | 📖 可读性 | 🏗️ 架构 | 🧹 卫生 |
|-----------|----------|----------|----------|----------|----------|
| 45/100 🟡 | 12/100 🔴 | 55/100 🟡 | 60/100 🟡 | 30/100 🔴 | 40/100 🔴 |
/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
curl -o .claude/commands/roast.md https://raw.githubusercontent.com/play1216/claude-code-roast/main/.claude/commands/roast.mdcurl -o ~/.claude/commands/roast.md https://raw.githubusercontent.com/play1216/claude-code-roast/main/.claude/commands/roast.mdiex (iwr -UseBasicParsing "https://raw.githubusercontent.com/play1216/claude-code-roast/main/install.ps1").Contentcurl -sL https://raw.githubusercontent.com/play1216/claude-code-roast/main/install.sh | bash/roast src/app.py # Roast a single file
/roast src/ # Roast an entire directory
/roast . # Roast everything| 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 | ⭐⭐⭐ |
# 🔥 代码审查报告:`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. 有空再说:魔法数字 + 日志优化
| 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 | 🤖 |
"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
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.
- Fork this repo
- Create your branch (
git checkout -b feature/amazing-roast) - Commit your changes (
git commit -m 'add amazing roast') - Push to the branch (
git push origin feature/amazing-roast) - Open a Pull Request
MIT — use it, modify it, share it.
🔥 Roast is the手段, improvement is the目的.