From sentry-skills
Reviews code following Sentry engineering practices, covering security, performance, testing, and design. Includes patterns for Python/Django, TypeScript/React, and security vulnerabilities.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sentry-skills:code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Follow these guidelines when reviewing code for Sentry projects.
Follow these guidelines when reviewing code for Sentry projects.
Look for these issues in code changes:
Every PR should have appropriate test coverage:
Verify tests cover actual requirements and edge cases. Avoid excessive branching or looping in test code.
Flag for senior engineer review when changes involve:
# Bad: N+1 query
for user in users:
print(user.profile.name) # Separate query per user
# Good: Prefetch related
users = User.objects.prefetch_related('profile')
// Bad: Missing dependency in useEffect
useEffect(() => {
fetchData(userId);
}, []); // userId not in deps
// Good: Include all dependencies
useEffect(() => {
fetchData(userId);
}, [userId]);
# Bad: SQL injection risk
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
# Good: Parameterized query
cursor.execute("SELECT * FROM users WHERE id = %s", [user_id])
npx claudepluginhub getsentry/skills --plugin sentry-skillsAnalyzes diffs and files to identify bugs, security vulnerabilities, code smells, N+1 queries, and architectural concerns, producing structured review reports with prioritized, actionable feedback.
Reviews code diffs and files for bugs, security flaws, N+1 queries, code smells, naming issues, and architecture, producing structured reports with prioritized feedback.
Analyzes code diffs and files to identify bugs, security vulnerabilities, code smells, N+1 queries, naming issues, and architectural concerns, producing a structured review report.