code-review-communication
Frameworks for giving and receiving code review feedback effectively. Use for PR comments, review strategies, handling disagreements, and balancing thoroughness with kindness.
What this skill does
# Code Review Communication This skill provides frameworks for effective code review communication - both giving feedback that lands well and receiving feedback without defensiveness. ## When to Use This Skill - Writing a code review comment and want it to be clear and constructive - Receiving feedback that feels harsh and need perspective - Want to distinguish between blocking issues and minor suggestions - Need to communicate code quality concerns without damaging relationships - Preparing to review a junior developer's first PR ## Core Frameworks ### Conventional Comments A labeling system that makes the intent of each comment crystal clear. **Format:** `[label] (decoration): explanation` **Labels:** | Label | Meaning | Action Required | | ----- | ------- | --------------- | | `praise` | Highlight good work | None - encouragement | | `nitpick` | Minor style/preference issue | Optional | | `suggestion` | Improvement idea | Consider but not required | | `issue` | Must be addressed | Required before merge | | `question` | Need clarification | Response required | | `thought` | Sharing perspective | None - FYI only | **Decorations:** - `(non-blocking)` - Explicitly optional - `(blocking)` - Must be resolved - `(if-minor)` - Only if the fix is trivial **Examples:** ```text praise: This error handling is really thorough - I like how you covered the edge cases. nitpick (non-blocking): Consider using a more descriptive variable name than `x`. suggestion: You could use `Object.entries()` here for cleaner iteration. issue (blocking): This SQL query is vulnerable to injection. Use parameterized queries. question: What's the expected behavior if the user cancels mid-operation? thought: I've seen this pattern cause issues with concurrent requests in the past. ``` **Full reference:** `references/conventional-comments.md` ### Summary-Analysis-Suggestion Method For larger reviews or when multiple comments are needed: 1. **Summary** - Start with what works (genuine positives) 2. **Analysis** - Identify specific areas needing attention 3. **Suggestion** - End with actionable recommendations This prevents the "wall of criticism" effect that makes authors defensive. ### Separating Code from Coder The most important principle: **criticize code, not people**. | Instead of... | Say... | | ------------- | ------ | | "You wrote this wrong" | "This function could be simplified" | | "You didn't think about X" | "There's an edge case here around X" | | "Why did you do it this way?" | "What's the reasoning behind this approach?" | | "You should know better" | "This is a common gotcha - here's the pattern" | Use collaborative "we" language: - "We should add a test for this" - "How should we handle the null case?" - "Let's think about the performance implications" ### Blocking vs Non-Blocking **Blocking issues (must fix):** - Security vulnerabilities - Bugs that will cause production issues - Breaking changes to public APIs - Missing required tests for critical paths **Non-blocking issues (nice to have):** - Style preferences - Alternative implementations - Minor optimizations - Documentation improvements **Rule of thumb:** If you'd be comfortable if the author ignored this comment, it's non-blocking. ## Receiving Feedback Receiving code review feedback well is equally important. See `references/receiving-feedback.md` for: - Assuming good intent - Separating ego from code - Asking clarifying questions - Handling disagreements professionally - When to take discussions offline ## Related Resources - `references/conventional-comments.md` - Full label taxonomy with examples - `references/receiving-feedback.md` - Guide to receiving feedback gracefully - `feedback-conversations` skill - For broader feedback (not just code) - `/soft-skills:review-comment` command - Generate a well-structured review comment ## Version History - **v1.0.0** (2025-12-26): Initial release --- ## Last Updated **Date:** 2025-12-26 **Model:** claude-opus-4-5-20251101
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.