review-changes
Systematic code review workflow for evaluating changes against coding standards. Use when reviewing pull requests, commits, diffs, or code changes. Ensures type-safety, maintainability, readability, and adherence to best practices before code is merged.
What this skill does
# Review Changes Systematic workflow for reviewing code changes against established standards. ## When to Use - Reviewing pull requests - Evaluating commits or diffs - Pre-merge code validation - Refactoring assessment - Architecture review ## Review Process ### 1. Understand the Change Read the changes completely before commenting: - What problem does this solve? - What is the scope of impact? - Are tests included? ### 2. Type Safety Review Check for: - No `any` types (unless absolutely necessary with clear justification) - Minimal use of `as` assertions - Proper type inference usage - e2e type-safety from API to UI ### 3. Code Organization Verify: - Named exports (no default exports unless required) - No index files used only for re-exports - Code proximity to usage (not prematurely abstracted) - Single-file folders are flattened - Proper file naming (kebab-case) ### 4. React-Specific Review Check for: - No constants/functions declared inside components - Data fetching uses React Query (not useEffect) - Minimal useEffect usage - Proper use of `use`, `useTransition`, `startTransition` - Cache tags use enums (no magic strings) - Suspense boundaries with error boundaries ### 5. Naming & Clarity Evaluate: - Descriptive names (no abbreviations) - Specific over vague (`retryAfterMs` vs `timeout`) - No redundant terms (`users` vs `userList`) - Proper nesting for context (`config.public.ENV_NAME`) - No magic strings/numbers ### 6. Control Flow Verify: - Early returns (no if-else chains) - Flat code (minimal indentation) - Hash-lists instead of switch statements - Proper async/await usage ### 7. Testing Check for: - Tests exist for new functionality - Tests for bug fixes - Behavior testing (not implementation) - No "should" in test names (use 3rd person verbs) - Good describe clause organization ### 8. Best Practices Confirm: - No premature optimization - No over-engineering (KISS, YAGNI) - No useless abstractions - Comments converted to code - Error monitoring/observability considered - Accessibility (a11y) addressed - Security (OWASP) followed ### 9. Git Hygiene Check: - Commit messages don't include "Claude Code" - Clear, descriptive commit messages - Logical commit organization ## Review Output Format Structure feedback as: ### Required Changes (Blocking) Critical issues that must be fixed: - Type safety violations - Security issues - Breaking changes without migration path ### Suggested Improvements (Non-blocking) Recommendations for better code: - Naming improvements - Structural optimizations - Readability enhancements ### Positive Feedback Highlight good practices: - Excellent type safety - Clear naming - Good test coverage ## Example Review Comments Good: ``` โ Line 45: Using `any` type removes type safety. Suggestion: Define proper interface for user data. ``` ``` ๐ก Line 67: Consider using early return here to reduce nesting. Current indentation: 4 levels Target: 2 levels or less ``` ``` โ Excellent use of React Query with proper cache invalidation! ``` Bad: ``` This code is bad. ``` ``` Fix the types. ``` ## Priority Levels 1. **Critical** - Blocks merge: security, type-safety violations, breaking changes 2. **High** - Should fix before merge: maintainability issues, significant readability problems 3. **Medium** - Nice to have: naming improvements, minor refactoring 4. **Low** - Optional: style preferences, subjective improvements ## Review Checklist Quick validation before approval: - [ ] No `any` types without justification - [ ] Named exports used - [ ] Early returns implemented - [ ] No magic strings/numbers - [ ] Tests included for new features/fixes - [ ] React best practices followed - [ ] Proper error handling - [ ] Clear naming conventions - [ ] No over-engineering - [ ] Git commits are clean
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.