code-review
Use when requesting code review, receiving code review feedback, before merging, or when handling reviewer suggestions - covers both giving and receiving review
What this skill does
# Code Review Both sides of the code review process: requesting and receiving feedback. --- ## When to Request Review ### Mandatory | Situation | Why | |-----------|-----| | After completing major feature | Catch issues before they spread | | Before merge to main | Gate quality | | After each task in subagent workflow | Fix issues before compounding | ### Valuable | Situation | Why | |-----------|-----| | When stuck | Fresh perspective | | Before refactoring | Baseline check | | After fixing complex bug | Verify fix doesn't introduce new issues | --- ## Requesting Review ### What to Provide | Element | Purpose | |---------|---------| | What was implemented | Context for reviewer | | Requirements/plan reference | What it should do | | Base SHA | Starting point | | Head SHA | Ending point | | Brief summary | Quick orientation | ### Acting on Feedback | Severity | Action | |----------|--------| | **Critical** | Fix immediately | | **Important** | Fix before proceeding | | **Minor** | Note for later | | **Disagree** | Push back with reasoning | --- ## Receiving Review ### Core Principle **Verify before implementing. Ask before assuming. Technical correctness over social comfort.** ### The Response Pattern 1. **Read** - Complete feedback without reacting 2. **Understand** - Restate requirement (or ask) 3. **Verify** - Check against codebase reality 4. **Evaluate** - Technically sound for THIS codebase? 5. **Respond** - Technical acknowledgment or reasoned pushback 6. **Implement** - One item at a time, test each --- ## Handling Unclear Feedback | Situation | Action | |-----------|--------| | Some items unclear | STOP - ask before implementing any | | Partially understood | Don't implement partial - items may be related | | Scope unclear | Ask for clarification | **Key concept**: Partial understanding leads to wrong implementation. Clarify everything first. --- ## When to Push Back | Situation | Push Back | |-----------|-----------| | Suggestion breaks existing functionality | Yes | | Reviewer lacks full context | Yes | | Unused feature (YAGNI violation) | Yes | | Technically incorrect for this stack | Yes | | Legacy/compatibility reasons exist | Yes | | Conflicts with architectural decisions | Yes | ### How to Push Back | Do | Don't | |----|-------| | Use technical reasoning | Be defensive | | Ask specific questions | Argue emotionally | | Reference working tests/code | Ignore valid feedback | | Show evidence | Just say "no" | --- ## Implementation Order When fixing multiple items: 1. Clarify anything unclear FIRST 2. Then implement in order: - Blocking issues (breaks, security) - Simple fixes (typos, imports) - Complex fixes (refactoring, logic) 3. Test each fix individually 4. Verify no regressions --- ## Response Patterns ### Forbidden (Performative) | Don't Say | Why | |-----------|-----| | "You're absolutely right!" | Performative, not technical | | "Great point!" | Empty agreement | | "Let me implement that now" | Before verification | ### Correct Responses | Situation | Response | |-----------|----------| | Feedback is correct | "Fixed. [Brief description]" | | Need clarification | "Need clarification on X before proceeding" | | Disagree | "[Technical reasoning why current approach is better]" | | Can't verify | "Can't verify without [X]. Should I investigate?" | **Key concept**: Actions speak. Just fix it. The code shows you heard the feedback. --- ## Red Flags | Never Do | Why | |----------|-----| | Skip review because "it's simple" | Simple changes cause bugs too | | Ignore Critical issues | They're critical for a reason | | Proceed with unfixed Important issues | They'll compound | | Argue with valid technical feedback | Ego over quality | | Implement without understanding | Wrong fixes waste time | --- ## Source-Specific Handling | Source | Approach | |--------|----------| | **User** | Trusted - implement after understanding, skip to action | | **External reviewer** | Evaluate technically before implementing | | **Automated tool** | Verify relevance to your context |
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.