ClaudeCodeMod

All shelves / Skills

code-review

getsentry/skills · 5.9k installs · 1.1K stars

Skill Follow these guidelines when reviewing code for Sentry projects.

Marked Indirect Prompt Injection

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

SKILL.md

Sentry Code Review

Follow these guidelines when reviewing code for Sentry projects.

Review Checklist

Identifying Problems

Look for these issues in code changes:

  • Runtime errors: Potential exceptions, null pointer issues, out-of-bounds access
  • Performance: Unbounded O(n²) operations, N+1 queries, unnecessary allocations
  • Side effects: Unintended behavioral changes affecting other components
  • Backwards compatibility: Breaking API changes without migration path
  • ORM queries: Complex Django ORM with unexpected query performance
  • Security vulnerabilities: Injection, XSS, access control gaps, secrets exposure
Design Assessment
  • Do component interactions make logical sense?
  • Does the change align with existing project architecture?
  • Are there conflicts with current requirements or goals?
Test Coverage

Every PR should have appropriate test coverage:

  • Functional tests for business logic
  • Integration tests for component interactions
  • End-to-end tests for critical user paths

Verify tests cover actual requirements and edge cases. Avoid excessive branching or looping in test code.

Long-Term Impact

Flag for senior engineer review when changes involve:

  • Database schema modifications
  • API contract changes
  • New framework or library adoption
  • Performance-critical code paths
  • Security-sensitive functionality

Feedback Guidelines

Tone
  • Be polite and empathetic
  • Provide actionable suggestions, not vague criticism
  • Phrase as questions when uncertain: "Have you considered...?"
Approval
  • Approve when only minor issues remain
  • Don't block PRs for stylistic preferences
  • Remember: the goal is risk reduction, not perfect code

Common Patterns to Flag

Python/Django
# 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')
TypeScript/React
// Bad: Missing dependency in useEffect
useEffect(() => {
  fetchData(userId);
}, []);  // userId not in deps

// Good: Include all dependencies
useEffect(() => {
  fetchData(userId);
}, [userId]);
Security
# 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])

References

Facts

Kind
Skill
Repo
getsentry/skills
Group
Uncategorized
Installs
5.9k
Stars
1.1K

Same name on this shelf 34

  1. 55code-reviewmattpocock/skillsReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".924.4k
  2. 1862code-reviewcoderabbitai/skills16.9k
  3. 2370code-reviewsupercent-io/skills-template12.5k
  4. 3029code-reviewanthropics/knowledge-work-plugins10.3k
  5. 5612code-reviewvinvcn/mattpocock-skills-zh-cn4.6k
  6. 6159code-reviewcodewithmukesh/dotnet-claude-kit4k

Search the shelf for “code-review”

Same repo on other shelves

Marketplaces

  1. 116getsentry/skillsgetsentry/skillsAgent Skills used by the Sentry team for development.1.2k

From the same repo

  1. 1511security-reviewgetsentry/skills24.5k
  2. 3679agents-mdgetsentry/skills7.9k
  3. 3754find-bugsgetsentry/skills7.7k
  4. 5023gha-security-reviewgetsentry/skills5.2k
  5. 5215commitgetsentry/skills4.9k
  6. 5387iterate-prgetsentry/skills4.8k