[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACHCGFFVKE2QW6R0XDKS7P":3,"skill-same:01M6ACHCGFFVKE2QW6R0XDKS7P":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6ACHCGFFVKE2QW6R0XDKS7P","code-review-quality",null,"Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.","Significant-Gravitas\u002Fskills-catalog","Significant-Gravitas","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130738209?v=4","01M6AC83EPDGBFN19MWYRREJD0","AutoGPT","01M6ACEY98TKHDWJH0B93PHNMG",2,"MIT","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review-quality\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review-quality\u002FSKILL.md",[],[20,21,22,23,24,25,26,27],"code review","review","code","code review quality","github","pull requests","code-review","pull","2026-11-10 10:12:30",false,"---\nname: code-review-quality\ndescription: Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.\nlicense: MIT\nmetadata:\n  author: Seth Hobson\n  source: wshobson\u002Fagents\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fcode-review-excellence\n  source_url: https:\u002F\u002Fgithub.com\u002Fwshobson\u002Fagents\u002Fblob\u002F4236bb91f8395b0435f1d8b8baf9e8e4c69a8620\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fcode-review-excellence\u002FSKILL.md\n  upstream-commit: 4236bb91f8395b0435f1d8b8baf9e8e4c69a8620\n  original-name: code-review-excellence\n  packaged-by: AutoGPT\n  packaged-on: '2026-09-25'\n---\n\n> Packaging adaptation by AutoGPT, 2026-09-25. Original authorship and licence are retained. Changes are limited to the recorded name, metadata and local references; see ATTRIBUTION.md in this package.\n\n\n# Code Review Excellence\n\nTransform code reviews from gatekeeping to knowledge sharing through constructive feedback, systematic analysis, and collaborative improvement.\n\n## When to Use This Skill\n\n- Reviewing pull requests and code changes\n- Establishing code review standards for teams\n- Mentoring junior developers through reviews\n- Conducting architecture reviews\n- Creating review checklists and guidelines\n- Improving team collaboration\n- Reducing code review cycle time\n- Maintaining code quality standards\n\n## Core Principles\n\n### 1. The Review Mindset\n\n**Goals of Code Review:**\n\n- Catch bugs and edge cases\n- Ensure code maintainability\n- Share knowledge across team\n- Enforce coding standards\n- Improve design and architecture\n- Build team culture\n\n**Not the Goals:**\n\n- Show off knowledge\n- Nitpick formatting (use linters)\n- Block progress unnecessarily\n- Rewrite to your preference\n\n### 2. Effective Feedback\n\n**Good Feedback is:**\n\n- Specific and actionable\n- Educational, not judgmental\n- Focused on the code, not the person\n- Balanced (praise good work too)\n- Prioritized (critical vs nice-to-have)\n\n```markdown\n❌ Bad: \"This is wrong.\"\n✅ Good: \"This could cause a race condition when multiple users\naccess simultaneously. Consider using a mutex here.\"\n\n❌ Bad: \"Why didn't you use X pattern?\"\n✅ Good: \"Have you considered the Repository pattern? It would\nmake this easier to test. Here's an example: [link]\"\n\n❌ Bad: \"Rename this variable.\"\n✅ Good: \"[nit] Consider `userCount` instead of `uc` for\nclarity. Not blocking if you prefer to keep it.\"\n```\n\n### 3. Review Scope\n\n**What to Review:**\n\n- Logic correctness and edge cases\n- Security vulnerabilities\n- Performance implications\n- Test coverage and quality\n- Error handling\n- Documentation and comments\n- API design and naming\n- Architectural fit\n\n**What Not to Review Manually:**\n\n- Code formatting (use Prettier, Black, etc.)\n- Import organization\n- Linting violations\n- Simple typos\n\n## Review Process\n\n### Phase 1: Context Gathering (2-3 minutes)\n\n```markdown\nBefore diving into code, understand:\n\n1. Read PR description and linked issue\n2. Check PR size (>400 lines? Ask to split)\n3. Review CI\u002FCD status (tests passing?)\n4. Understand the business requirement\n5. Note any relevant architectural decisions\n```\n\n### Phase 2: High-Level Review (5-10 minutes)\n\n```markdown\n1. **Architecture & Design**\n   - Does the solution fit the problem?\n   - Are there simpler approaches?\n   - Is it consistent with existing patterns?\n   - Will it scale?\n\n2. **File Organization**\n   - Are new files in the right places?\n   - Is code grouped logically?\n   - Are there duplicate files?\n\n3. **Testing Strategy**\n   - Are there tests?\n   - Do tests cover edge cases?\n   - Are tests readable?\n```\n\n### Phase 3: Line-by-Line Review (10-20 minutes)\n\n```markdown\nFor each file:\n\n1. **Logic & Correctness**\n   - Edge cases handled?\n   - Off-by-one errors?\n   - Null\u002Fundefined checks?\n   - Race conditions?\n\n2. **Security**\n   - Input validation?\n   - SQL injection risks?\n   - XSS vulnerabilities?\n   - Sensitive data exposure?\n\n3. **Performance**\n   - N+1 queries?\n   - Unnecessary loops?\n   - Memory leaks?\n   - Blocking operations?\n\n4. **Maintainability**\n   - Clear variable names?\n   - Functions doing one thing?\n   - Complex code commented?\n   - Magic numbers extracted?\n```\n\n### Phase 4: Summary & Decision (2-3 minutes)\n\n```markdown\n1. Summarize key concerns\n2. Highlight what you liked\n3. Make clear decision:\n   - ✅ Approve\n   - ? Comment (minor suggestions)\n   - ? Request Changes (must address)\n4. Offer to pair if complex\n```\n\n## Review Techniques\n\n### Technique 1: The Checklist Method\n\n```markdown\n## Security Checklist\n\n- [ ] User input validated and sanitized\n- [ ] SQL queries use parameterization\n- [ ] Authentication\u002Fauthorization checked\n- [ ] Secrets not hardcoded\n- [ ] Error messages don't leak info\n\n## Performance Checklist\n\n- [ ] No N+1 queries\n- [ ] Database queries indexed\n- [ ] Large lists paginated\n- [ ] Expensive operations cached\n- [ ] No blocking I\u002FO in hot paths\n\n## Testing Checklist\n\n- [ ] Happy path tested\n- [ ] Edge cases covered\n- [ ] Error cases tested\n- [ ] Test names are descriptive\n- [ ] Tests are deterministic\n```\n\n### Technique 2: The Question Approach\n\nInstead of stating problems, ask questions to encourage thinking:\n\n```markdown\n❌ \"This will fail if the list is empty.\"\n✅ \"What happens if `items` is an empty array?\"\n\n❌ \"You need error handling here.\"\n✅ \"How should this behave if the API call fails?\"\n\n❌ \"This is inefficient.\"\n✅ \"I see this loops through all users. Have we considered\nthe performance impact with 100k users?\"\n```\n\n### Technique 3: Suggest, Don't Command\n\n````markdown\n## Use Collaborative Language\n\n❌ \"You must change this to use async\u002Fawait\"\n✅ \"Suggestion: async\u002Fawait might make this more readable:\n`typescript\n    async function fetchUser(id: string) {\n        const user = await db.query('SELECT * FROM users WHERE id = ?', id);\n        return user;\n    }\n    `\nWhat do you think?\"\n\n❌ \"Extract this into a function\"\n✅ \"This logic appears in 3 places. Would it make sense to\nextract it into a shared utility function?\"\n````\n\n### Technique 4: Differentiate Severity\n\n```markdown\nUse labels to indicate priority:\n\n? [blocking] - Must fix before merge\n? [important] - Should fix, discuss if disagree\n? [nit] - Nice to have, not blocking\n? [suggestion] - Alternative approach to consider\n? [learning] - Educational comment, no action needed\n? [praise] - Good work, keep it up!\n\nExample:\n\"? [blocking] This SQL query is vulnerable to injection.\nPlease use parameterized queries.\"\n\n\"? [nit] Consider renaming `data` to `userData` for clarity.\"\n\n\"? [praise] Excellent test coverage! This will catch edge cases.\"\n```\n\n## Language-Specific Patterns\n\n### Python Code Review\n\n```python\n# Check for Python-specific issues\n\n# ❌ Mutable default arguments\ndef add_item(item, items=[]):  # Bug! Shared across calls\n    items.append(item)\n    return items\n\n# ✅ Use None as default\ndef add_item(item, items=None):\n    if items is None:\n        items = []\n    items.append(item)\n    return items\n\n# ❌ Catching too broad\ntry:\n    result = risky_operation()\nexcept:  # Catches everything, even KeyboardInterrupt!\n    pass\n\n# ✅ Catch specific exceptions\ntry:\n    result = risky_operation()\nexcept ValueError as e:\n    logger.error(f\"Invalid value: {e}\")\n    raise\n\n# ❌ Using mutable class attributes\nclass User:\n    permissions = []  # Shared across all instances!\n\n# ✅ Initialize in __init__\nclass User:\n    def __init__(self):\n        self.permissions = []\n```\n\n### TypeScript\u002FJavaScript Code Review\n\n```typescript\n\u002F\u002F Check for TypeScript-specific issues\n\n\u002F\u002F ❌ Using any defeats type safety\nfunction processData(data: any) {  \u002F\u002F Avoid any\n    return data.value;\n}\n\n\u002F\u002F ✅ Use proper types\ninterface DataPayload {\n    value: string;\n}\nfunction processData(data: DataPayload) {\n    return data.value;\n}\n\n\u002F\u002F ❌ Not handling async errors\nasync function fetchUser(id: string) {\n    const response = await fetch(`\u002Fapi\u002Fusers\u002F${id}`);\n    return response.json();  \u002F\u002F What if network fails?\n}\n\n\u002F\u002F ✅ Handle errors properly\nasync function fetchUser(id: string): Promise\u003CUser> {\n    try {\n        const response = await fetch(`\u002Fapi\u002Fusers\u002F${id}`);\n        if (!response.ok) {\n            throw new Error(`HTTP ${response.status}`);\n        }\n        return await response.json();\n    } catch (error) {\n        console.error('Failed to fetch user:', error);\n        throw error;\n    }\n}\n\n\u002F\u002F ❌ Mutation of props\nfunction UserProfile({ user }: Props) {\n    user.lastViewed = new Date();  \u002F\u002F Mutating prop!\n    return \u003Cdiv>{user.name}\u003C\u002Fdiv>;\n}\n\n\u002F\u002F ✅ Don't mutate props\nfunction UserProfile({ user, onView }: Props) {\n    useEffect(() => {\n        onView(user.id);  \u002F\u002F Notify parent to update\n    }, [user.id]);\n    return \u003Cdiv>{user.name}\u003C\u002Fdiv>;\n}\n```\n\n## Advanced Review Patterns\n\n### Pattern 1: Architectural Review\n\n```markdown\nWhen reviewing significant changes:\n\n1. **Design Document First**\n   - For large features, request design doc before code\n   - Review design with team before implementation\n   - Agree on approach to avoid rework\n\n2. **Review in Stages**\n   - First PR: Core abstractions and interfaces\n   - Second PR: Implementation\n   - Third PR: Integration and tests\n   - Easier to review, faster to iterate\n\n3. **Consider Alternatives**\n   - \"Have we considered using [pattern\u002Flibrary]?\"\n   - \"What's the tradeoff vs. the simpler approach?\"\n   - \"How will this evolve as requirements change?\"\n```\n\n### Pattern 2: Test Quality Review\n\n```typescript\n\u002F\u002F ❌ Poor test: Implementation detail testing\ntest('increments counter variable', () => {\n    const component = render(\u003CCounter \u002F>);\n    const button = component.getByRole('button');\n    fireEvent.click(button);\n    expect(component.state.counter).toBe(1);  \u002F\u002F Testing internal state\n});\n\n\u002F\u002F ✅ Good test: Behavior testing\ntest('displays incremented count when clicked', () => {\n    render(\u003CCounter \u002F>);\n    const button = screen.getByRole('button', { name: \u002Fincrement\u002Fi });\n    fireEvent.click(button);\n    expect(screen.getByText('Count: 1')).toBeInTheDocument();\n});\n\n\u002F\u002F Review questions for tests:\n\u002F\u002F - Do tests describe behavior, not implementation?\n\u002F\u002F - Are test names clear and descriptive?\n\u002F\u002F - Do tests cover edge cases?\n\u002F\u002F - Are tests independent (no shared state)?\n\u002F\u002F - Can tests run in any order?\n```\n\n### Pattern 3: Security Review\n\n```markdown\n## Security Review Checklist\n\n### Authentication & Authorization\n\n- [ ] Is authentication required where needed?\n- [ ] Are authorization checks before every action?\n- [ ] Is JWT validation proper (signature, expiry)?\n- [ ] Are API keys\u002Fsecrets properly secured?\n\n### Input Validation\n\n- [ ] All user inputs validated?\n- [ ] File uploads restricted (size, type)?\n- [ ] SQL queries parameterized?\n- [ ] XSS protection (escape output)?\n\n### Data Protection\n\n- [ ] Passwords hashed (bcrypt\u002Fargon2)?\n- [ ] Sensitive data encrypted at rest?\n- [ ] HTTPS enforced for sensitive data?\n- [ ] PII handled according to regulations?\n\n### Common Vulnerabilities\n\n- [ ] No eval() or similar dynamic execution?\n- [ ] No hardcoded secrets?\n- [ ] CSRF protection for state-changing operations?\n- [ ] Rate limiting on public endpoints?\n```\n\n## Giving Difficult Feedback\n\n### Pattern: The Sandwich Method (Modified)\n\n```markdown\nTraditional: Praise + Criticism + Praise (feels fake)\n\nBetter: Context + Specific Issue + Helpful Solution\n\nExample:\n\"I noticed the payment processing logic is inline in the\ncontroller. This makes it harder to test and reuse.\n\n[Specific Issue]\nThe calculateTotal() function mixes tax calculation,\ndiscount logic, and database queries, making it difficult\nto unit test and reason about.\n\n[Helpful Solution]\nCould we extract this into a PaymentService class? That\nwould make it testable and reusable. I can pair with you\non this if helpful.\"\n```\n\n### Handling Disagreements\n\n```markdown\nWhen author disagrees with your feedback:\n\n1. **Seek to Understand**\n   \"Help me understand your approach. What led you to\n   choose this pattern?\"\n\n2. **Acknowledge Valid Points**\n   \"That's a good point about X. I hadn't considered that.\"\n\n3. **Provide Data**\n   \"I'm concerned about performance. Can we add a benchmark\n   to validate the approach?\"\n\n4. **Escalate if Needed**\n   \"Let's get [architect\u002Fsenior dev] to weigh in on this.\"\n\n5. **Know When to Let Go**\n   If it's working and not a critical issue, approve it.\n   Perfection is the enemy of progress.\n```\n\n## Best Practices\n\n1. **Review Promptly**: Within 24 hours, ideally same day\n2. **Limit PR Size**: 200-400 lines max for effective review\n3. **Review in Time Blocks**: 60 minutes max, take breaks\n4. **Use Review Tools**: GitHub, GitLab, or dedicated tools\n5. **Automate What You Can**: Linters, formatters, security scans\n6. **Build Rapport**: Emoji, praise, and empathy matter\n7. **Be Available**: Offer to pair on complex issues\n8. **Learn from Others**: Review others' review comments\n\n## Common Pitfalls\n\n- **Perfectionism**: Blocking PRs for minor style preferences\n- **Scope Creep**: \"While you're at it, can you also...\"\n- **Inconsistency**: Different standards for different people\n- **Delayed Reviews**: Letting PRs sit for days\n- **Ghosting**: Requesting changes then disappearing\n- **Rubber Stamping**: Approving without actually reviewing\n- **Bike Shedding**: Debating trivial details extensively\n\n## Templates\n\n### PR Review Comment Template\n\n```markdown\n## Summary\n\n[Brief overview of what was reviewed]\n\n## Strengths\n\n- [What was done well]\n- [Good patterns or approaches]\n\n## Required Changes\n\n? [Blocking issue 1]\n? [Blocking issue 2]\n\n## Suggestions\n\n? [Improvement 1]\n? [Improvement 2]\n\n## Questions\n\n❓ [Clarification needed on X]\n❓ [Alternative approach consideration]\n\n## Verdict\n\n✅ Approve after addressing required changes\n```\n","> Packaging adaptation by AutoGPT, 2026-09-25. Original authorship and licence are retained. Changes are limited to the recorded name, metadata and local references; see ATTRIBUTION.md in this package.\n\n\n# Code Review Excellence\n\nTransform code reviews from gatekeeping to knowledge sharing through constructive feedback, systematic analysis, and collaborative improvement.\n\n## When to Use This Skill\n\n- Reviewing pull requests and code changes\n- Establishing code review standards for teams\n- Mentoring junior developers through reviews\n- Conducting architecture reviews\n- Creating review checklists and guidelines\n- Improving team collaboration\n- Reducing code review cycle time\n- Maintaining code quality standards\n\n## Core Principles\n\n### 1. The Review Mindset\n\n**Goals of Code Review:**\n\n- Catch bugs and edge cases\n- Ensure code maintainability\n- Share knowledge across team\n- Enforce coding standards\n- Improve design and architecture\n- Build team culture\n\n**Not the Goals:**\n\n- Show off knowledge\n- Nitpick formatting (use linters)\n- Block progress unnecessarily\n- Rewrite to your preference\n\n### 2. Effective Feedback\n\n**Good Feedback is:**\n\n- Specific and actionable\n- Educational, not judgmental\n- Focused on the code, not the person\n- Balanced (praise good work too)\n- Prioritized (critical vs nice-to-have)\n\n```markdown\n❌ Bad: \"This is wrong.\"\n✅ Good: \"This could cause a race condition when multiple users\naccess simultaneously. Consider using a mutex here.\"\n\n❌ Bad: \"Why didn't you use X pattern?\"\n✅ Good: \"Have you considered the Repository pattern? It would\nmake this easier to test. Here's an example: [link]\"\n\n❌ Bad: \"Rename this variable.\"\n✅ Good: \"[nit] Consider `userCount` instead of `uc` for\nclarity. Not blocking if you prefer to keep it.\"\n```\n\n### 3. Review Scope\n\n**What to Review:**\n\n- Logic correctness and edge cases\n- Security vulnerabilities\n- Performance implications\n- Test coverage and quality\n- Error handling\n- Documentation and comments\n- API design and naming\n- Architectural fit\n\n**What Not to Review Manually:**\n\n- Code formatting (use Prettier, Black, etc.)\n- Import organization\n- Linting violations\n- Simple typos\n\n## Review Process\n\n### Phase 1: Context Gathering (2-3 minutes)\n\n```markdown\nBefore diving into code, understand:\n\n1. Read PR description and linked issue\n2. Check PR size (>400 lines? Ask to split)\n3. Review CI\u002FCD status (tests passing?)\n4. Understand the business requirement\n5. Note any relevant architectural decisions\n```\n\n### Phase 2: High-Level Review (5-10 minutes)\n\n```markdown\n1. **Architecture & Design**\n   - Does the solution fit the problem?\n   - Are there simpler approaches?\n   - Is it consistent with existing patterns?\n   - Will it scale?\n\n2. **File Organization**\n   - Are new files in the right places?\n   - Is code grouped logically?\n   - Are there duplicate files?\n\n3. **Testing Strategy**\n   - Are there tests?\n   - Do tests cover edge cases?\n   - Are tests readable?\n```\n\n### Phase 3: Line-by-Line Review (10-20 minutes)\n\n```markdown\nFor each file:\n\n1. **Logic & Correctness**\n   - Edge cases handled?\n   - Off-by-one errors?\n   - Null\u002Fundefined checks?\n   - Race conditions?\n\n2. **Security**\n   - Input validation?\n   - SQL injection risks?\n   - XSS vulnerabilities?\n   - Sensitive data exposure?\n\n3. **Performance**\n   - N+1 queries?\n   - Unnecessary loops?\n   - Memory leaks?\n   - Blocking operations?\n\n4. **Maintainability**\n   - Clear variable names?\n   - Functions doing one thing?\n   - Complex code commented?\n   - Magic numbers extracted?\n```\n\n### Phase 4: Summary & Decision (2-3 minutes)\n\n```markdown\n1. Summarize key concerns\n2. Highlight what you liked\n3. Make clear decision:\n   - ✅ Approve\n   - ? Comment (minor suggestions)\n   - ? Request Changes (must address)\n4. Offer to pair if complex\n```\n\n## Review Techniques\n\n### Technique 1: The Checklist Method\n\n```markdown\n## Security Checklist\n\n- [ ] User input validated and sanitized\n- [ ] SQL queries use parameterization\n- [ ] Authentication\u002Fauthorization checked\n- [ ] Secrets not hardcoded\n- [ ] Error messages don't leak info\n\n## Performance Checklist\n\n- [ ] No N+1 queries\n- [ ] Database queries indexed\n- [ ] Large lists paginated\n- [ ] Expensive operations cached\n- [ ] No blocking I\u002FO in hot paths\n\n## Testing Checklist\n\n- [ ] Happy path tested\n- [ ] Edge cases covered\n- [ ] Error cases tested\n- [ ] Test names are descriptive\n- [ ] Tests are deterministic\n```\n\n### Technique 2: The Question Approach\n\nInstead of stating problems, ask questions to encourage thinking:\n\n```markdown\n❌ \"This will fail if the list is empty.\"\n✅ \"What happens if `items` is an empty array?\"\n\n❌ \"You need error handling here.\"\n✅ \"How should this behave if the API call fails?\"\n\n❌ \"This is inefficient.\"\n✅ \"I see this loops through all users. Have we considered\nthe performance impact with 100k users?\"\n```\n\n### Technique 3: Suggest, Don't Command\n\n````markdown\n## Use Collaborative Language\n\n❌ \"You must change this to use async\u002Fawait\"\n✅ \"Suggestion: async\u002Fawait might make this more readable:\n`typescript\n    async function fetchUser(id: string) {\n        const user = await db.query('SELECT * FROM users WHERE id = ?', id);\n        return user;\n    }\n    `\nWhat do you think?\"\n\n❌ \"Extract this into a function\"\n✅ \"This logic appears in 3 places. Would it make sense to\nextract it into a shared utility function?\"\n````\n\n### Technique 4: Differentiate Severity\n\n```markdown\nUse labels to indicate priority:\n\n? [blocking] - Must fix before merge\n? [important] - Should fix, discuss if disagree\n? [nit] - Nice to have, not blocking\n? [suggestion] - Alternative approach to consider\n? [learning] - Educational comment, no action needed\n? [praise] - Good work, keep it up!\n\nExample:\n\"? [blocking] This SQL query is vulnerable to injection.\nPlease use parameterized queries.\"\n\n\"? [nit] Consider renaming `data` to `userData` for clarity.\"\n\n\"? [praise] Excellent test coverage! This will catch edge cases.\"\n```\n\n## Language-Specific Patterns\n\n### Python Code Review\n\n```python\n# Check for Python-specific issues\n\n# ❌ Mutable default arguments\ndef add_item(item, items=[]):  # Bug! Shared across calls\n    items.append(item)\n    return items\n\n# ✅ Use None as default\ndef add_item(item, items=None):\n    if items is None:\n        items = []\n    items.append(item)\n    return items\n\n# ❌ Catching too broad\ntry:\n    result = risky_operation()\nexcept:  # Catches everything, even KeyboardInterrupt!\n    pass\n\n# ✅ Catch specific exceptions\ntry:\n    result = risky_operation()\nexcept ValueError as e:\n    logger.error(f\"Invalid value: {e}\")\n    raise\n\n# ❌ Using mutable class attributes\nclass User:\n    permissions = []  # Shared across all instances!\n\n# ✅ Initialize in __init__\nclass User:\n    def __init__(self):\n        self.permissions = []\n```\n\n### TypeScript\u002FJavaScript Code Review\n\n```typescript\n\u002F\u002F Check for TypeScript-specific issues\n\n\u002F\u002F ❌ Using any defeats type safety\nfunction processData(data: any) {  \u002F\u002F Avoid any\n    return data.value;\n}\n\n\u002F\u002F ✅ Use proper types\ninterface DataPayload {\n    value: string;\n}\nfunction processData(data: DataPayload) {\n    return data.value;\n}\n\n\u002F\u002F ❌ Not handling async errors\nasync function fetchUser(id: string) {\n    const response = await fetch(`\u002Fapi\u002Fusers\u002F${id}`);\n    return response.json();  \u002F\u002F What if network fails?\n}\n\n\u002F\u002F ✅ Handle errors properly\nasync function fetchUser(id: string): Promise\u003CUser> {\n    try {\n        const response = await fetch(`\u002Fapi\u002Fusers\u002F${id}`);\n        if (!response.ok) {\n            throw new Error(`HTTP ${response.status}`);\n        }\n        return await response.json();\n    } catch (error) {\n        console.error('Failed to fetch user:', error);\n        throw error;\n    }\n}\n\n\u002F\u002F ❌ Mutation of props\nfunction UserProfile({ user }: Props) {\n    user.lastViewed = new Date();  \u002F\u002F Mutating prop!\n    return \u003Cdiv>{user.name}\u003C\u002Fdiv>;\n}\n\n\u002F\u002F ✅ Don't mutate props\nfunction UserProfile({ user, onView }: Props) {\n    useEffect(() => {\n        onView(user.id);  \u002F\u002F Notify parent to update\n    }, [user.id]);\n    return \u003Cdiv>{user.name}\u003C\u002Fdiv>;\n}\n```\n\n## Advanced Review Patterns\n\n### Pattern 1: Architectural Review\n\n```markdown\nWhen reviewing significant changes:\n\n1. **Design Document First**\n   - For large features, request design doc before code\n   - Review design with team before implementation\n   - Agree on approach to avoid rework\n\n2. **Review in Stages**\n   - First PR: Core abstractions and interfaces\n   - Second PR: Implementation\n   - Third PR: Integration and tests\n   - Easier to review, faster to iterate\n\n3. **Consider Alternatives**\n   - \"Have we considered using [pattern\u002Flibrary]?\"\n   - \"What's the tradeoff vs. the simpler approach?\"\n   - \"How will this evolve as requirements change?\"\n```\n\n### Pattern 2: Test Quality Review\n\n```typescript\n\u002F\u002F ❌ Poor test: Implementation detail testing\ntest('increments counter variable', () => {\n    const component = render(\u003CCounter \u002F>);\n    const button = component.getByRole('button');\n    fireEvent.click(button);\n    expect(component.state.counter).toBe(1);  \u002F\u002F Testing internal state\n});\n\n\u002F\u002F ✅ Good test: Behavior testing\ntest('displays incremented count when clicked', () => {\n    render(\u003CCounter \u002F>);\n    const button = screen.getByRole('button', { name: \u002Fincrement\u002Fi });\n    fireEvent.click(button);\n    expect(screen.getByText('Count: 1')).toBeInTheDocument();\n});\n\n\u002F\u002F Review questions for tests:\n\u002F\u002F - Do tests describe behavior, not implementation?\n\u002F\u002F - Are test names clear and descriptive?\n\u002F\u002F - Do tests cover edge cases?\n\u002F\u002F - Are tests independent (no shared state)?\n\u002F\u002F - Can tests run in any order?\n```\n\n### Pattern 3: Security Review\n\n```markdown\n## Security Review Checklist\n\n### Authentication & Authorization\n\n- [ ] Is authentication required where needed?\n- [ ] Are authorization checks before every action?\n- [ ] Is JWT validation proper (signature, expiry)?\n- [ ] Are API keys\u002Fsecrets properly secured?\n\n### Input Validation\n\n- [ ] All user inputs validated?\n- [ ] File uploads restricted (size, type)?\n- [ ] SQL queries parameterized?\n- [ ] XSS protection (escape output)?\n\n### Data Protection\n\n- [ ] Passwords hashed (bcrypt\u002Fargon2)?\n- [ ] Sensitive data encrypted at rest?\n- [ ] HTTPS enforced for sensitive data?\n- [ ] PII handled according to regulations?\n\n### Common Vulnerabilities\n\n- [ ] No eval() or similar dynamic execution?\n- [ ] No hardcoded secrets?\n- [ ] CSRF protection for state-changing operations?\n- [ ] Rate limiting on public endpoints?\n```\n\n## Giving Difficult Feedback\n\n### Pattern: The Sandwich Method (Modified)\n\n```markdown\nTraditional: Praise + Criticism + Praise (feels fake)\n\nBetter: Context + Specific Issue + Helpful Solution\n\nExample:\n\"I noticed the payment processing logic is inline in the\ncontroller. This makes it harder to test and reuse.\n\n[Specific Issue]\nThe calculateTotal() function mixes tax calculation,\ndiscount logic, and database queries, making it difficult\nto unit test and reason about.\n\n[Helpful Solution]\nCould we extract this into a PaymentService class? That\nwould make it testable and reusable. I can pair with you\non this if helpful.\"\n```\n\n### Handling Disagreements\n\n```markdown\nWhen author disagrees with your feedback:\n\n1. **Seek to Understand**\n   \"Help me understand your approach. What led you to\n   choose this pattern?\"\n\n2. **Acknowledge Valid Points**\n   \"That's a good point about X. I hadn't considered that.\"\n\n3. **Provide Data**\n   \"I'm concerned about performance. Can we add a benchmark\n   to validate the approach?\"\n\n4. **Escalate if Needed**\n   \"Let's get [architect\u002Fsenior dev] to weigh in on this.\"\n\n5. **Know When to Let Go**\n   If it's working and not a critical issue, approve it.\n   Perfection is the enemy of progress.\n```\n\n## Best Practices\n\n1. **Review Promptly**: Within 24 hours, ideally same day\n2. **Limit PR Size**: 200-400 lines max for effective review\n3. **Review in Time Blocks**: 60 minutes max, take breaks\n4. **Use Review Tools**: GitHub, GitLab, or dedicated tools\n5. **Automate What You Can**: Linters, formatters, security scans\n6. **Build Rapport**: Emoji, praise, and empathy matter\n7. **Be Available**: Offer to pair on complex issues\n8. **Learn from Others**: Review others' review comments\n\n## Common Pitfalls\n\n- **Perfectionism**: Blocking PRs for minor style preferences\n- **Scope Creep**: \"While you're at it, can you also...\"\n- **Inconsistency**: Different standards for different people\n- **Delayed Reviews**: Letting PRs sit for days\n- **Ghosting**: Requesting changes then disappearing\n- **Rubber Stamping**: Approving without actually reviewing\n- **Bike Shedding**: Debating trivial details extensively\n\n## Templates\n\n### PR Review Comment Template\n\n```markdown\n## Summary\n\n[Brief overview of what was reviewed]\n\n## Strengths\n\n- [What was done well]\n- [Good patterns or approaches]\n\n## Required Changes\n\n? [Blocking issue 1]\n? [Blocking issue 2]\n\n## Suggestions\n\n? [Improvement 1]\n? [Improvement 2]\n\n## Questions\n\n❓ [Clarification needed on X]\n❓ [Alternative approach consideration]\n\n## Verdict\n\n✅ Approve after addressing required changes\n```\n",{"name":5,"license":15,"metadata":33,"description":7},{"author":34,"source":35,"source_url":36,"packaged-by":12,"packaged-on":37,"original-name":38,"upstream-commit":39},"Seth Hobson","wshobson\u002Fagents\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fcode-review-excellence","https:\u002F\u002Fgithub.com\u002Fwshobson\u002Fagents\u002Fblob\u002F4236bb91f8395b0435f1d8b8baf9e8e4c69a8620\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fcode-review-excellence\u002FSKILL.md","2026-09-25","code-review-excellence","4236bb91f8395b0435f1d8b8baf9e8e4c69a8620","main","7ed3b73314d5186120e8d4006febfd7e1c92cf08","skills\u002Fcode-review-quality",0,"https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas","agpt.co","2026-11-14 03:40:57",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add Significant-Gravitas\u002Fskills-catalog --skill code-review-quality",{"tool":54,"command":55},"bunx","bunx skills add Significant-Gravitas\u002Fskills-catalog --skill code-review-quality",{"tool":57,"command":58},"pnpm","pnpm dlx skills add Significant-Gravitas\u002Fskills-catalog --skill code-review-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review-quality\u002FSKILL.md",true,[62,68,72],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"ATTRIBUTION.md","REFERENCE","参考文档",1257,"https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review-quality\u002FATTRIBUTION.md",{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":16},"LICENSE","许可证",1068,{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"OWNERSHIP","OTHER","其他",37,"https:\u002F\u002Fgithub.com\u002FJetBrains\u002Fintellij-community\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fextract-module\u002FOWNERSHIP",[79,105,126,144,165,183],{"skillNo":80,"name":81,"nameZh":82,"description":83,"descriptionZh":84,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":99,"publishedAt":28},"01M6AD3S89TGF74S7MK4K5CGC7","workplace-memory-management","Claude 职场记忆管理","Two-tier memory system that makes Claude a true workplace collaborator. Decodes shorthand, acronyms, nicknames, and internal language so Claude understands requests like a colleague would. CLAUDE.md for working memory, memory\u002F directory for the full knowledge base.","双层记忆系统，让 Claude 成为真正的职场协作者。它能解读简写、首字母缩略词、昵称和内部用语，使 Claude 像同事一样理解请求。使用 CLAUDE.md 保存工作记忆，使用 memory\u002F 目录保存完整知识库。","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fworkplace-memory-management\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fworkplace-memory-management\u002FSKILL.md",[89,94],{"categoryNo":90,"categoryName":91,"taxonomyType":92,"taxonomyTypeDesc":93},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者","PROFESSION","适用职业",{"categoryNo":95,"categoryName":96,"taxonomyType":97,"taxonomyTypeDesc":98},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",[100,101,102,103,24,104],"workplace memory management","memory","plugins","https","directory",{"skillNo":106,"name":107,"nameZh":108,"description":109,"descriptionZh":110,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":111,"sourceHtmlUrl":112,"categories":113,"keywords":119,"publishedAt":28},"01M6AD3F5X5DYW1BABD49BQKP8","website-seo-audit","网站 SEO 审计与优化","Audit a website, investigate its real search opportunities, and deliver a short data-backed report on the few changes most likely to grow organic traffic that converts.","审计网站、挖掘其真实的搜索机会，并交付一份简短的数据驱动报告，指出最有可能带来可转化自然流量增长的少数几项改进。","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-seo-audit\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-seo-audit\u002FSKILL.md",[114,117],{"categoryNo":115,"categoryName":116,"taxonomyType":92,"taxonomyTypeDesc":93},"01M8BQGD6C0J544QTJ9R38Z7ZG","营销专员",{"categoryNo":118,"categoryName":108,"taxonomyType":97,"taxonomyTypeDesc":98},"01M8C7B8WHD09FSZNCR5W8KX8K",[120,121,122,24,102,103,123,124,125],"website seo audit","audit","website","search","report","plugin",{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":131,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":132,"sourceHtmlUrl":133,"categories":134,"keywords":141,"publishedAt":28},"01M6AD32RYMK03P50DM0T184NJ","verification-before-completion","完成前验证检查","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","当即将声称工作已完成、已修复或已通过时，在提交或创建 PR 之前使用——要求在做出任何成功声明之前先运行验证命令并确认输出；始终先有证据，再下断言。","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[135,138],{"categoryNo":136,"categoryName":137,"taxonomyType":92,"taxonomyTypeDesc":93},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":139,"categoryName":140,"taxonomyType":97,"taxonomyTypeDesc":98},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[142,143,103,24],"verification before completion","verification",{"skillNo":145,"name":146,"nameZh":147,"description":148,"descriptionZh":149,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":150,"sourceHtmlUrl":151,"categories":152,"keywords":159,"publishedAt":28},"01M6AD2WSQG7BGPXA7XP4DFZX8","vendor-evaluation","供应商评估与选型","Evaluate a vendor — cost analysis, risk assessment, and recommendation. Use when reviewing a new vendor proposal, deciding whether to renew or replace a contract, comparing two vendors side-by-side, or building a TCO breakdown and negotiation points before procurement sign-off.","评估供应商 — 成本分析、风险评估与建议。适用于审查新的供应商提案、决定续签还是更换合同、并排比较两家供应商，或在采购签批前制定 TCO 明细与谈判要点。","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fvendor-evaluation\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fvendor-evaluation\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":97,"taxonomyTypeDesc":98},"01M8C0H4NZYRXY1BY7X3G295NB","供应商准入与绩效管理",{"categoryNo":157,"categoryName":158,"taxonomyType":92,"taxonomyTypeDesc":93},"01M8C2K0D6WWJZRXWMVQ5ANMT4","供应链与采购经理",[160,161,102,103,162,163,164,24,21],"vendor evaluation","negotiation","assessment","risk assessment","cost analysis",{"skillNo":166,"name":167,"nameZh":168,"description":169,"descriptionZh":170,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":171,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":28},"01M6AD2RBT6004C07RZRDSTA52","vendor-contract-status","供应商合同状态核查","Check the status of existing agreements with a vendor across all connected systems — CLM, CRM, email, and document storage — with gap analysis and upcoming deadlines. Use when onboarding or renewing a vendor, when you need a consolidated view of what's signed and what's missing (MSA, DPA, SOW), or when checking for approaching expirations and surviving obligations.","跨所有已连接系统（CLM、CRM、电子邮件和文档存储）检查与供应商的现有协议状态，并进行缺口分析和临近截止日期提示。当供应商入驻或续约、需要统一查看已签署和缺失的内容（MSA、DPA、SOW），或检查即将到期和存续义务时使用。","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fvendor-contract-status\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fvendor-contract-status\u002FSKILL.md",[174,177],{"categoryNo":175,"categoryName":176,"taxonomyType":92,"taxonomyTypeDesc":93},"01M8BZTWTGTDH4MJSNTC231HK1","法务专员",{"categoryNo":154,"categoryName":155,"taxonomyType":97,"taxonomyTypeDesc":98},[179,180,24,181,102,182,103],"vendor contract status","status","storage","onboarding",{"skillNo":184,"name":185,"nameZh":186,"description":187,"descriptionZh":188,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":189,"sourceHtmlUrl":190,"categories":191,"keywords":198,"publishedAt":28},"01M6AD2KPNXN5CNS3CA4FRWT97","user-cohort-analysis","用户同期群分析","Perform cohort analysis on user engagement data — retention curves, feature adoption trends, and segment-level insights. Use when analyzing user retention by cohort, studying feature adoption over time, investigating churn patterns, or identifying engagement trends.","对用户参与度数据执行同期群分析——留存曲线、功能采用趋势和细分群体洞察。当按同期群分析用户留存、研究功能随时间的采用情况、调查流失模式或识别参与度趋势时使用。","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fuser-cohort-analysis\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSignificant-Gravitas\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fuser-cohort-analysis\u002FSKILL.md",[192,195],{"categoryNo":193,"categoryName":194,"taxonomyType":97,"taxonomyTypeDesc":98},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":196,"categoryName":197,"taxonomyType":92,"taxonomyTypeDesc":93},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[199,200,103,24],"user cohort analysis","analytics"]