git-commit-helper
Generate conventional commit messages automatically. Use when user runs git commit, stages changes, or asks for commit message…
Automatic code quality and best practices analysis. Use proactively when files are modified, saved, or committed. Analyzes code style, patterns, potential bugs, and security basics. Triggers on file changes, git diff, code edits, quality mentions.
Claude Code
$ npx -y skills add alirezarezvani/claude-code-tresor --skill code-reviewer --agent claude-code
Codex
$ npx skills add alirezarezvani/claude-code-tresor --skill code-reviewer -a codex -y
Cursor
$ npx skills add alirezarezvani/claude-code-tresor --skill code-reviewer -a cursor -y
Gemini CLI
$ npx skills add alirezarezvani/claude-code-tresor --skill code-reviewer -a gemini-cli -y
GitHub Copilot
$ npx skills add alirezarezvani/claude-code-tresor --skill code-reviewer -a github-copilot -y
OpenCode
$ npx skills add alirezarezvani/claude-code-tresor --skill code-reviewer -a opencode -y
Windsurf
$ npx skills add alirezarezvani/claude-code-tresor --skill code-reviewer -a windsurf -y
name: code-reviewer description: Automatic code quality and best practices analysis. Use proactively when files are modified, saved, or committed. Analyzes code style, patterns, potential bugs, and security basics. Triggers on file changes, git diff, code edits, quality mentions. allowed-tools: Read, Grep, Glob
Lightweight automatic code quality checks while you code.
**Me (Skill):** Fast, lightweight, real-time feedback **@code-reviewer (Sub-Agent):** Deep analysis with examples and strategy
1. You write code 2. I auto-analyze (instant feedback) 3. I flag: "⚠️ Potential issue on line 42" 4. You want details → Invoke **@code-reviewer** sub-agent 5. Sub-agent provides comprehensive analysis
// You write this code:
function getUser(id) {
return db.query(`SELECT * FROM users WHERE id = ${id}`);
}
// I immediately flag:
// 🚨 Line 2: SQL injection vulnerability
// 💡 Use parameterized queries// You write:
function UserList({ users }) {
return users.map(user => <User data={user} />);
}
// I flag:
// ⚠️ Missing key prop in list rendering (line 2)
// 💡 Add key={user.id} to User component# You write:
def process_data(data):
return data['user']['profile']['name']
# I flag:
# ⚠️ Potential KeyError - no safety checks (line 2)
# 💡 Use .get() or add try/except🤖 code-reviewer skill: [Severity] Issue description (file:line) 💡 Quick fix suggestion 📖 Reference: [link to learn more]
After I flag issues, invoke **@code-reviewer** sub-agent for:
**Example:**
Me: "⚠️ Potential N+1 query detected" You: "@code-reviewer explain the N+1 issue and show optimal solution" Sub-agent: [Provides comprehensive analysis with examples]
**Works without sandboxing:** ✅ Yes (default, recommended for learning) **Works with sandboxing:** ✅ Yes (no special configuration needed)
Want different checks or patterns?
1. Copy this skill:
cp -r ~/.claude/skills/development/code-reviewer ~/.claude/skills/development/my-code-reviewer
2. Edit `SKILL.md`:
3. Restart Claude Code:
claude --restart
See [../../TEMPLATES.md](../../TEMPLATES.md) for customization guide.
// Before:
async function fetchUsers(ids) {
const users = [];
for (let id of ids) {
const user = await User.findById(id); // N+1 query!
users.push(user);
}
return users;
}
// I flag:
// ⚠️ N+1 query pattern detected (line 4)
// 💡 Use User.findByIds(ids) for batch loading
// After fix:
async function fetchUsers(ids) {
return await User.findByIds(ids);
}// Before:
function UserCard({ user }) {
const [data, setData] = useState();
useEffect(() => {
fetch(`/api/users/${user.id}`)
.then(res => res.json())
.then(setData);
}, []); // Missing dependency!
return <div>{data?.name}</div>;
}
// I flag:
// ⚠️ useEffect dependency array incomplete (line 6)
// 💡 Add user.id to dependencies: [user.id]
// After fix:
useEffect(() => {
fetch(`/api/users/${user.id}`)
.then(res => res.json())
.then(setData);
}, [user.id]);The `/review` command aggregates my findings with deep sub-agent analysis:
/review --scope staged --checks all # Command workflow: # 1. Collects my automatic findings # 2. Invokes @code-reviewer sub-agent for deep analysis # 3. Invokes @security-auditor sub-agent # 4. Generates comprehensive report with priorities
This skill operates asynchronously and won't slow down your coding workflow.
A world-class collection of Claude Code utilities: autonomous skills, expert agents, slash commands, and prompts that supercharge your development workflow.
Generate conventional commit messages automatically. Use when user runs git commit, stages changes, or asks for commit message…
Automatically suggest tests for new functions and components. Use when new code is written, functions added, or user mentions…
Auto-generate API documentation from code and comments. Use when API endpoints change, or user mentions API docs. Creates…
Keep README files current with project changes. Use when project structure changes, features added, or setup instructions…
Check dependencies for known vulnerabilities using npm audit, pip-audit, etc. Use when package.json or requirements.txt changes,…
Detect exposed secrets, API keys, credentials, and tokens in code. Use before commits, on file saves, or when security is…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.