code-review-excellence
यह क्या करती है
यह स्किल आपके AI को code बदलावों की समीक्षा करने और उपयोगी review comments लिखने का मार्गदर्शन देती है। यह उन डेवलपर और टीमों के लिए है जो ऐसी code reviews चाहते हैं जो समस्याएँ पकड़ें और लोगों को सीखने में मदद करें।
कब इस्तेमाल करें
- ✓जब आपको कोई pull request या code diff की समीक्षा करनी हो।
- ✓जब आप साफ़ और विनम्र review comments लिखना चाहें।
- ✓जब आपकी टीम code reviews के लिए मानक या checklist बनाना चाहे।
Skill का लिंक
https://github.com/Galaxy-Dawn/claude-scholar/blob/main/skills/code-review-excellence/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस pull request की समीक्षा कीजिए और ऐसी टिप्पणियाँ लिखिए जो असली bugs बताएँ और सुधार सुझाएँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट बदलाव पढ़ता है, bugs, edge cases और design की समस्याएँ खोजता है, और विशिष्ट, प्राथमिकता वाली टिप्पणियाँ लिखता है जिनमें हर एक का कारण बताया जाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Code Review Excellence
Transform code reviews from gatekeeping to knowledge sharing through constructive feedback, systematic analysis, and collaborative improvement.
When to Use This Skill
- Reviewing pull requests and code changes
- Establishing code review standards for teams
- Mentoring junior developers through reviews
- Conducting architecture reviews
- Creating review checklists and guidelines
- Improving team collaboration
- Reducing code review cycle time
- Maintaining code quality standards
Core Principles
1. The Review Mindset
Goals of Code Review:
- Catch bugs and edge cases
- Ensure code maintainability
- Share knowledge across team
- Enforce coding standards
- Improve design and architecture
- Build team culture
Not the Goals:
- Show off knowledge
- Nitpick formatting (use linters)
- Block progress unnecessarily
- Rewrite to your preference
2. Effective Feedback
Good Feedback is:
- Specific and actionable
- Educational, not judgmental
- Focused on the code, not the person
- Balanced (praise good work too)
- Prioritized (critical vs nice-to-have)
❌ Bad: "This is wrong."
✅ Good: "This could cause a race condition when multiple users
access simultaneously. Consider using a mutex here."
❌ Bad: "Why didn't you use X pattern?"
✅ Good: "Have you considered the Repository pattern? It would
make this easier to test. Here's an example: [link]"
❌ Bad: "Rename this variable."
✅ Good: "[nit] Consider `userCount` instead of `uc` for
clarity. Not blocking if you prefer to keep it."
3. Review Scope
What to Review:
- Logic correctness and edge cases
- Security vulnerabilities
- Performance implications
- Test coverage and quality
- Error handling
- Documentation and comments
- API design and naming
- Architectural fit
What Not to Review Manually:
- Code formatting (use Prettier, Black, etc.)
- Import organization
- Linting violations
- Simple typos
Review Process
Phase 1: Context Gathering (2-3 minutes)
Before diving into code, understand:
1. Read PR description and linked issue
2. Check PR size (>400 lines? Ask to split)
3. Review CI/CD status (tests passing?)
4. Understand the business requirement
5. Note any relevant architectural decisions
Phase 2: High-Level Review (5-10 minutes)
1. **Architecture & Design**
- Does the solution fit the problem?
- Are there simpler approaches?
- Is it consistent with existing patterns?
- Will it scale?
2. **File Organization**
- Are new files in the right places?
- Is code grouped logically?
- Are there duplicate files?
3. **Testing Strategy**
- Are there tests?
- Do tests cover edge cases?
- Are tests readable?
Phase 3: Line-by-Line Review (10-20 minutes)
For each file:
1. **Logic & Correctness**
- Edge cases handled?
- Off-by-one errors?
- Null/undefined checks?
- Race conditions?
2. **Security**
- Input validation?
- SQL injection risks?
- XSS vulnerabilities?
- Sensitive data exposure?
3. **Performance**
- N+1 queries?
- Unnecessary loops?
- Memory leaks?
- Blocking operations?
4. **Maintainability**
- Clear variable names?
- Functions doing one thing?
- Complex code commented?
- Magic numbers extracted?
Phase 4: Summary & Decision (2-3 minutes)
1. Summarize key concerns
2. Highlight what you liked
3. Make clear decision:
- ✅ Approve
- 💬 Comment (minor suggestions)
- 🔄 Request Changes (must address)
4. Offer to pair if complex
Review Techniques
Technique 1: The Checklist Method
## Security Checklist
- [ ] User input validated and sanitized
- [ ] SQL queries use parameterization
- [ ] Authentication/authorization checked
- [ ] Secrets not hardcoded
- [ ] Error messages don't leak info
## Performance Checklist
- [ ] No N+1 queries
- [ ] Database queries indexed
- [ ] Large lists paginated
- [ ] Expensive operations cached
- [ ] No blocking I/O in hot paths
## Testing Checklist
- [ ] Happy path tested
- [ ] Edge cases covered
- [ ] Error cases tested
- [ ] Test names are descriptive
- [ ] Tests are deterministic
Technique 2: The Question Approach
Instead of stating problems, ask questions to encourage thinking:
❌ "This will fail if the list is empty."
✅ "What happens if `items` is an empty array?"
❌ "You need error handling here."
✅ "How should this beha
अक्सर पूछे जाने वाले सवाल
क्या यह formatting पर ध्यान देती है?
नहीं। formatting का काम linters पर छोड़ा जाता है, और यह bugs, maintainability और design पर ध्यान देती है।
फ़ीडबैक कैसा होना चाहिए?
विशिष्ट, करने लायक और व्यक्ति के बजाय code पर केंद्रित, साथ ही अच्छे काम को भी नोट किया जाता है।
क्या यह टीम के मानक तय करने में मदद कर सकती है?
हाँ। यह टीम के लिए review checklists और दिशानिर्देश बनाने में मदद कर सकती है।
जानकारी
लेखक का मूल विवरण
This skill should be used when the user asks to review a diff or pull request, write review comments, audit code quality, establish review standards, or improve how a team performs code review.
लोकप्रियता
- GitHub स्टार
- 6.0k
- रैंकिंग में स्थान
- #14482
- लाइसेंस
- MIT
- अपडेट की गई
- 19/10/2026
कमेंट
- …
इस repository की और skills
agent-identifier
6.0kयह आपके एजेंट को Claude Code agents बनाना सिखाती है, उनका नाम, trigger विवरण, system prompt और settings सही ढंग से लिखकर।
architecture-design
6.0kयह आपके एजेंट को machine learning प्रोजेक्ट के कोड का मानक ढाँचा सिखाती है, और registrable हिस्से जोड़ते समय factory व registry पैटर्न का उपयोग करती है।
bug-detective
6.0kयह आपके एजेंट को कोड की गलतियाँ ढूँढने और ठीक करने में मदद करती है, एक साफ़ तरीके से: समस्या समझना, सबूत जुटाना, विचार जाँचना और सुधार को परखना।
citation-verification
6.0kयह आपके एजेंट को शैक्षणिक पेपर के हर citation को भरोसेमंद स्रोतों से मिलाना सिखाती है, ताकि नकली या गलत संदर्भ पकड़े जाएँ।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।