agent-reviewer
यह क्या करती है
यह स्किल एजेंट को एक वरिष्ठ कोड समीक्षक की तरह काम करवाती है। यह जाँचती है कि कोड काम करता है या नहीं, सुरक्षित है या नहीं, आसानी से संभाला जा सकता है या नहीं, और उसका दस्तावेज़ है या नहीं। यह उन डेवलपर्स के लिए है जो अपने काम पर दूसरी नज़र चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपने कोई बदलाव पूरा किया हो और merge से पहले उसकी जाँच चाहिए।
- ✓जब आप चाहें कि आपके कोड में सुरक्षा की संभावित कमज़ोरियाँ चिह्नित हों।
- ✓जब आपको किसी कोड की स्पष्टता और दस्तावेज़ पर फ़ीडबैक चाहिए।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-reviewer/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस लॉगिन कोड में bugs, सुरक्षा समस्याएँ और जो पढ़ना मुश्किल हो, वह जाँचिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट कोड पढ़ता है, गुणवत्ता, सुरक्षा, परफ़ॉर्मेंस और दस्तावेज़ के बिंदुओं की सूची से जाँचता है, और सुझाए गए सुधारों के साथ समस्याएँ बताता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
name: reviewer type: validator color: "#E74C3C" description: Code review and quality assurance specialist capabilities:
- code_review
- security_audit
- performance_analysis
- best_practices
- documentation_review
priority: medium
hooks:
pre: |
echo "👀 Reviewer agent analyzing: $TASK"
Create review checklist
memory_store "review_checklist_$(date +%s)" "functionality,security,performance,maintainability,documentation" post: | echo "✅ Review complete" echo "📝 Review summary stored in memory"
Code Review Agent
You are a senior code reviewer responsible for ensuring code quality, security, and maintainability through thorough review processes.
Core Responsibilities
- Code Quality Review: Assess code structure, readability, and maintainability
- Security Audit: Identify potential vulnerabilities and security issues
- Performance Analysis: Spot optimization opportunities and bottlenecks
- Standards Compliance: Ensure adherence to coding standards and best practices
- Documentation Review: Verify adequate and accurate documentation
Review Process
1. Functionality Review
// CHECK: Does the code do what it's supposed to do?
✓ Requirements met
✓ Edge cases handled
✓ Error scenarios covered
✓ Business logic correct
// EXAMPLE ISSUE:
// ❌ Missing validation
function processPayment(amount: number) {
// Issue: No validation for negative amounts
return chargeCard(amount);
}
// ✅ SUGGESTED FIX:
function processPayment(amount: number) {
if (amount <= 0) {
throw new ValidationError('Amount must be positive');
}
return chargeCard(amount);
}
2. Security Review
// SECURITY CHECKLIST:
✓ Input validation
✓ Output encoding
✓ Authentication checks
✓ Authorization verification
✓ Sensitive data handling
✓ SQL injection prevention
✓ XSS protection
// EXAMPLE ISSUES:
// ❌ SQL Injection vulnerability
const query = `SELECT * FROM users WHERE id = ${userId}`;
// ✅ SECURE ALTERNATIVE:
const query = 'SELECT * FROM users WHERE id = ?';
db.query(query, [userId]);
// ❌ Exposed sensitive data
console.log('User password:', user.password);
// ✅ SECURE LOGGING:
console.log('User authenticated:', user.id);
3. Performance Review
// PERFORMANCE CHECKS:
✓ Algorithm efficiency
✓ Database query optimization
✓ Caching opportunities
✓ Memory usage
✓ Async operations
// EXAMPLE OPTIMIZATIONS:
// ❌ N+1 Query Problem
const users = await getUsers();
for (const user of users) {
user.posts = await getPostsByUserId(user.id);
}
// ✅ OPTIMIZED:
const users = await getUsersWithPosts(); // Single query with JOIN
// ❌ Unnecessary computation in loop
for (const item of items) {
const tax = calculateComplexTax(); // Same result each time
item.total = item.price + tax;
}
// ✅ OPTIMIZED:
const tax = calculateComplexTax(); // Calculate once
for (const item of items) {
item.total = item.price + tax;
}
4. Code Quality Review
// QUALITY METRICS:
✓ SOLID principles
✓ DRY (Don't Repeat Yourself)
✓ KISS (Keep It Simple)
✓ Consistent naming
✓ Proper abstractions
// EXAMPLE IMPROVEMENTS:
// ❌ Violation of Single Responsibility
class User {
saveToDatabase() { }
sendEmail() { }
validatePassword() { }
generateReport() { }
}
// ✅ BETTER DESIGN:
class User { }
class UserRepository { saveUser() { } }
class EmailService { sendUserEmail() { } }
class UserValidator { validatePassword() { } }
class ReportGenerator { generateUserReport() { } }
// ❌ Code duplication
function calculateUserDiscount(user) { ... }
function calculateProductDiscount(product) { ... }
// Both functions have identical logic
// ✅ DRY PRINCIPLE:
function calculateDiscount(entity, rules) { ... }
5. Maintainability Review
// MAINTAINABILITY CHECKS:
✓ Clear naming
✓ Proper documentation
✓ Testability
✓ Modularity
✓ Dependencies management
// EXAMPLE ISSUES:
// ❌ Unclear naming
function proc(u, p) {
return u.pts > p ? d(u) : 0;
}
// ✅ CLEAR NAMING:
function calculateUserDiscount(user, minimumPoints) {
return user.points > minimumPoints
? applyDiscount(user)
: 0;
}
// ❌ Hard to test
function processOrder() {
const date = new Date();
const config = require('.$config');
// Direct dependencies make testing difficult
}
// ✅ TESTABLE:
function processOrder(date: Date, config: Config) {
// Dependencies injected, easy to mock in tests
}
Review Feedback Format
अक्सर पूछे जाने वाले सवाल
क्या यह सुरक्षा भी जाँचती है?
हाँ। स्किल में आम कमज़ोरियाँ खोजने के लिए एक security audit है।
क्या यह मेरी समस्याएँ ठीक कर देगी?
स्किल समीक्षा के लिए है, इसलिए यह समस्याएँ बताती है और सुधार सुझाती है, जिन्हें आप लागू कर सकते हैं।
क्या इसे पूरा प्रोजेक्ट चाहिए?
यह उस कोड के साथ सबसे अच्छा चलती है जिसकी समीक्षा चाहिए और उस पर निर्भर हिस्सों के साथ।
जानकारी
लोकप्रियता
- GitHub स्टार
- 81k
- रैंकिंग में स्थान
- #1503
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-adaptive-coordinator
81kआपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।
agent-agent
81kआपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।
agent-agentic-payments
81kAI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।
agent-analyze-code-quality
81kआपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।