code-review

द्वारा anthropic

संरचित कोड समीक्षा जो PR डिफ और फ़ाइल परिवर्तनों में सुरक्षा, प्रदर्शन, शुद्धता और रखरखाव क्षमता के लिए जाँच करती है। SQL इंजेक्शन, XSS, CSRF, प्रमाणीकरण दोष और क्रेडेंशियल एक्सपोज़र सहित सुरक्षा जोखिमों का ऑडिट करती है। N+1 क्वेरी, मेमोरी लीक, एल्गोरिदमिक जटिलता और संसाधन लीक जैसी प्रदर्शन समस्याओं की पहचान करती है। एज केस, रेस कंडीशन, त्रुटि प्रबंधन और टाइप सुरक्षा अंत

npx skills add https://github.com/anthropics/knowledge-work-plugins --skill code-review

/code-review

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Review code changes with a structured lens on security, performance, correctness, and maintainability.

Usage

/code-review <PR URL or file path>

Review the provided code changes: @$1

If no specific file or URL is provided, ask what to review.

How It Works

┌─────────────────────────────────────────────────────────────────┐
│                      CODE REVIEW                                   │
├─────────────────────────────────────────────────────────────────┤
│  STANDALONE (always works)                                       │
│  ✓ Paste a diff, PR URL, or point to files                      │
│  ✓ Security audit (OWASP top 10, injection, auth)               │
│  ✓ Performance review (N+1, memory leaks, complexity)           │
│  ✓ Correctness (edge cases, error handling, race conditions)    │
│  ✓ Style (naming, structure, readability)                        │
│  ✓ Actionable suggestions with code examples                    │
├─────────────────────────────────────────────────────────────────┤
│  SUPERCHARGED (when you connect your tools)                      │
│  + Source control: Pull PR diff automatically                    │
│  + Project tracker: Link findings to tickets                     │
│  + Knowledge base: Check against team coding standards           │
└─────────────────────────────────────────────────────────────────┘

Review Dimensions

Security

  • SQL injection, XSS, CSRF
  • Authentication and authorization flaws
  • Secrets or credentials in code
  • Insecure deserialization
  • Path traversal
  • SSRF

Performance

  • N+1 queries
  • Unnecessary memory allocations
  • Algorithmic complexity (O(n²) in hot paths)
  • Missing database indexes
  • Unbounded queries or loops
  • Resource leaks

Correctness

  • Edge cases (empty input, null, overflow)
  • Race conditions and concurrency issues
  • Error handling and propagation
  • Off-by-one errors
  • Type safety

Maintainability

  • Naming clarity
  • Single responsibility
  • Duplication
  • Test coverage
  • Documentation for non-obvious logic

Output

## Code Review: [PR title or file]

### Summary
[1-2 sentence overview of the changes and overall quality]

### Critical Issues
| # | File | Line | Issue | Severity |
|---|------|------|-------|----------|
| 1 | [file] | [line] | [description] | 🔴 Critical |

### Suggestions
| # | File | Line | Suggestion | Category |
|---|------|------|------------|----------|
| 1 | [file] | [line] | [description] | Performance |

### What Looks Good
- [Positive observations]

### Verdict
[Approve / Request Changes / Needs Discussion]

If Connectors Available

If ~~source control is connected:

  • Pull the PR diff automatically from the URL
  • Check CI status and test results

If ~~project tracker is connected:

  • Link findings to related tickets
  • Verify the PR addresses the stated requirements

If ~~knowledge base is connected:

  • Check changes against team coding standards and style guides

Tips

  1. Provide context — "This is a hot path" or "This handles PII" helps me focus.
  2. Specify concerns — "Focus on security" narrows the review.
  3. Include tests — I'll check test coverage and quality too.

anthropic की और Skills

comps-analysis
anthropic
हमेशा इस डेटा स्रोत पदानुक्रम का पालन करें:
official
analyzing-financial-statements
anthropic
यह कौशल निवेश विश्लेषण के लिए वित्तीय विवरण डेटा से प्रमुख वित्तीय अनुपात और मीट्रिक की गणना करता है।
official
applying-brand-guidelines
anthropic
यह कौशल सभी जनरेट किए गए दस्तावेज़ों में रंग, फ़ॉन्ट, लेआउट और संदेश सहित एक समान कॉर्पोरेट ब्रांडिंग और स्टाइलिंग लागू करता है।
official
cookbook-audit
anthropic
एन्थ्रोपिक कुकबुक नोटबुक का एक रूब्रिक के आधार पर ऑडिट करें। जब भी नोटबुक समीक्षा या ऑडिट का अनुरोध किया जाए, इसका उपयोग करें।
official
creating-financial-models
anthropic
यह कौशल डीसीएफ विश्लेषण, संवेदनशीलता परीक्षण, मोंटे कार्लो सिमुलेशन और निवेश के लिए परिदृश्य योजना के साथ एक उन्नत वित्तीय मॉडलिंग सूट प्रदान करता है…
official
action-creator
anthropic
उपयोगकर्ता-विशिष्ट एक-क्लिक कार्रवाई टेम्पलेट बनाता है जो चैट इंटरफ़ेस में क्लिक करने पर ईमेल संचालन निष्पादित करते हैं। उपयोग करें जब उपयोगकर्ता पुन: प्रयोज्य कार्रवाइयाँ चाहता है...
official
docx
anthropic
दस्तावेज़ निर्माण, संपादन और विश्लेषण की व्यापक क्षमता, जिसमें ट्रैक किए गए परिवर्तन, टिप्पणियाँ, फ़ॉर्मेटिंग संरक्षण और टेक्स्ट निष्कर्षण का समर्थन शामिल है। जब Claude…
official
executive-briefing
anthropic
शोध निष्कर्षों को कार्यकारी-तैयार ब्रीफिंग में बदलता है। जब उपयोगकर्ता 'executive', 'briefing', 'C-suite', 'board',… का उल्लेख करता है तो स्वचालित रूप से सक्रिय हो जाता है।
official