code-review
यह क्या करती है
यह स्किल कोड बदलावों में सुरक्षा समस्याएँ, धीमा कोड, बग और छूटा हुआ त्रुटि प्रबंधन जाँचती है। यह उन डेवलपर्स के लिए है जो मर्ज से पहले बदलाव की दूसरी नज़र चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप मर्ज करने से पहले pull request या कोड बदलाव की जाँच चाहते हैं।
- ✓जब आप जानना चाहते हैं कि कोई कोड injection या authentication समस्याओं से सुरक्षित है या नहीं।
- ✓जब आपको नए कोड में धीमी डेटाबेस क्वेरी या छूटे एज केस का शक हो।
Skill का लिंक
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/code-review/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मर्ज करने से पहले इस pull request में सुरक्षा समस्याएँ और छूटा हुआ त्रुटि प्रबंधन देखिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट diff या आपके बताए फ़ाइलें पढ़ता है और उन्हें सुरक्षा, प्रदर्शन, सही होने और शैली के लिए जाँचता है। वह ठोस सुझाए गए कोड बदलावों के साथ विशिष्ट नतीजे लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
/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
- Provide context — "This is a hot path" or "This handles PII" helps me focus.
- Specify concerns — "Focus on security" narrows the review.
- Include tests — I'll check test coverage and quality too.
अक्सर पूछे जाने वाले सवाल
क्या यह लिंक से pull request पढ़ सकती है?
हाँ। आप उसे pull request URL, diff या फ़ाइल पथ दे सकते हैं।
यह क्या ढूँढती है?
injection जोखिम, N+1 क्वेरी, मेमोरी लीक, छूटे एज केस और त्रुटि प्रबंधन की कमियों जैसी समस्याएँ।
अगर मैं न बताऊँ कि क्या समीक्षा करनी है तो?
एजेंट शुरू करने से पहले पूछता है कि क्या समीक्षा करनी है।
जानकारी
लेखक का मूल विवरण
Review code changes for security, performance, and correctness. Trigger with a PR URL or diff, "review this before I merge", "is this code safe?", or when checking a change for N+1 queries, injection risks, missing edge cases, or error handling gaps.
repo: TencentCloud/Octop
लोकप्रियता
- GitHub स्टार
- 11k
- रैंकिंग में स्थान
- #11643
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
polite-greeting
11kयह आपके एजेंट को छोटे, मित्रवत और विनम्र अभिवादन से बातचीत शुरू करने में मदद करती है, फिर जल्दी ही आपकी ज़रूरत पर आ जाती है।
medical-source-failover
11kयह आपके एजेंट को मुख्य स्रोत बंद, धीमा या पढ़ने में कठिन होने पर चीनी चिकित्सा दिशानिर्देश, दवा जानकारी और सार्वजनिक स्वास्थ्य दस्तावेज़ ढूँढने में मदद करती है।
cowork-plugin-customizer
11kयह आपके एजेंट को मौजूदा Claude प्लगइन को संगठन के टूल और वर्कफ़्लो के अनुसार ढालने में मदद करती है, प्लेसहोल्डर बदलकर और स्किल व सेटिंग समायोजित करके।
create-cowork-plugin
11kयह आपके एजेंट को निर्देशित प्रश्नों से शुरू से नया Claude प्लगइन बनाने में मदद करती है, जिसमें स्किल, एजेंट, hooks और इंस्टॉल योग्य पैकेज शामिल हैं।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।