मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग107k · #764

code-review-and-quality

यह क्या करती है

यह टूल आपके कोड की जाँच करता है ताकि पक्का हो सके कि वह सही है, आसानी से समझ में आता है, अच्छी तरह व्यवस्थित है, सुरक्षित है और तेज़ है। यह कोड को मुख्य प्रोजेक्ट में जोड़ने से पहले ही समस्याएँ ढूँढने में मदद करता है।

कब इस्तेमाल करें

  • ✓प्रोजेक्ट में कोई कोड बदलाव जोड़ने से पहले।
  • ✓जब आप खुद लिखे या किसी और के लिखे कोड की गुणवत्ता जाँचना चाहते हैं।
  • ✓कोई बग ठीक करने या नया फीचर जोड़ने के बाद।

Skill का लिंक

https://github.com/addyosmani/agent-skills/blob/main/skills/code-review-and-quality/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/addyosmani/agent-skills/blob/main/skills/code-review-and-quality/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस कोड की समीक्षा करो और देखो कि यह सही, पढ़ने में आसान, सुरक्षित है और अच्छा परफ़ॉर्म करता है या नहीं।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल कोड को पाँच पहलुओं पर जाँचता है: क्या यह वही काम करता है जो उसे करना चाहिए (सही होना), क्या इसे पढ़ना आसान है (रीडेबिलिटी), क्या यह प्रोजेक्ट के ढांचे में फिट बैठता है (आर्किटेक्चर), क्या यह हमलों से सुरक्षित है, और क्या यह धीमा तो नहीं है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Code Review and Quality

Overview

Multi-dimensional code review with quality gates. Every change gets reviewed before merge — no exceptions. Review covers five axes: correctness, readability, architecture, security, and performance.

The approval standard: Approve a change when it definitely improves overall code health, even if it isn't perfect. Perfect code doesn't exist — the goal is continuous improvement. Don't block a change because it isn't exactly how you would have written it. If it improves the codebase and follows the project's conventions, approve it.

When to Use

  • Before merging any PR or change
  • After completing a feature implementation
  • When another agent or model produced code you need to evaluate
  • When refactoring existing code
  • After any bug fix (review both the fix and the regression test)

The Five-Axis Review

Every review evaluates code across these dimensions:

1. Correctness

Does the code do what it claims to do?

  • Does it match the spec or task requirements?
  • Are edge cases handled (null, empty, boundary values)?
  • Are error paths handled (not just the happy path)?
  • Does it pass all tests? Are the tests actually testing the right things?
  • Are there off-by-one errors, race conditions, or state inconsistencies?

2. Readability & Simplicity

Can another engineer (or agent) understand this code without the author explaining it?

  • Are names descriptive and consistent with project conventions? (No temp, data, result without context)
  • Is the control flow straightforward (avoid nested ternaries, deep callbacks)?
  • Is the code organized logically (related code grouped, clear module boundaries)?
  • Are there any "clever" tricks that should be simplified?
  • Could this be done in fewer lines? (1000 lines where 100 suffice is a failure)
  • Are abstractions earning their complexity? (Don't generalize until the third use case)
  • Would comments help clarify non-obvious intent? (But don't comment obvious code.)
  • Are there dead code artifacts: no-op variables (_unused), backwards-compat shims, or // removed comments?
  • Is a new conditional bolted onto an unrelated flow? That's a design smell, not a nit — push the logic into its own helper, state, or policy instead of tangling an existing path.
  • Do repeated conditionals on the same shape appear? They signal a missing model or dispatcher. A "temporary" branch is usually permanent debt.

3. Architecture

Does the change fit the system's design?

  • Does it follow existing patterns or introduce a new one? If new, is it justified?
  • Does it maintain clean module boundaries?
  • Is there code duplication that should be shared?
  • Are dependencies flowing in the right direction (no circular dependencies)?
  • Is the abstraction level appropriate (not over-engineered, not too coupled)?
  • Does this refactor reduce complexity or just relocate it? Count the concepts a reader must hold to follow the change. If a "cleaner" version leaves that count unchanged, it isn't cleaner — prefer the restructuring that makes whole branches, modes, or layers disappear over one that re-centralizes the same logic. Prefer deleting an abstraction to polishing it.
  • Is feature-specific logic leaking into a shared or general-purpose module? Keep logic in its owning layer, reuse the existing canonical helper instead of a near-duplicate, and don't normalize architectural drift.
  • Are type boundaries explicit? Question gratuitous any/unknown/optional/casts and silent fallbacks that paper over an unclear invariant — making the boundary explicit often makes the surrounding control flow simpler.

4. Security

For detailed security guidance, see security-and-hardening. Does the change introduce vulnerabilities?

  • Is user input validated and sanitized?
  • Are secrets kept out of code, logs, and version control?
  • Is authentication/authorization checked where needed?
  • Are SQL queries parameterized (no string concatenation)?
  • Are outputs encoded to prevent XSS?
  • Are dependencies from trusted sources with no known vulnerabilities?
  • Is data from external sources (APIs, logs, user content, config files) treated as untrusted?
  • Are external data flows validated at system boundaries before use in logic or rendering?

5. Performance

For detailed profiling and optimization, see performance-optimization. Does the change introduce performance problems?

  • Any N+1 query patterns?

…

अक्सर पूछे जाने वाले सवाल

'मल्टी-एक्सिस रिव्यू' का क्या मतलब है?

इसका मतलब है कि कोड को कई ज़रूरी पहलुओं पर परखा जाता है, जैसे सही होना, साफ़ होना, सुरक्षा और परफ़ॉर्मेंस, सिर्फ़ एक पहलू पर नहीं।

क्या कोड का पूरी तरह परफ़ेक्ट होना ज़रूरी है?

नहीं, लक्ष्य लगातार सुधार है। कोड की कुल गुणवत्ता बेहतर होनी चाहिए, भले ही वह परफ़ेक्ट न हो या ठीक वैसा न लिखा हो जैसा आप लिखते।

अगर रिव्यू में समस्याएँ मिलें तो क्या करूँ?

टूल बताता है कि समस्याएँ कैसे ठीक करें, जैसे कोड को सरल बनाना, जटिल हिस्सों को अलग करना, या सुरक्षा बनाए रखना।

जानकारी

लेखक का मूल विवरण

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

repo: addyosmani/agent-skills

लोकप्रियता

GitHub स्टार
107k
रैंकिंग में स्थान
#764
लाइसेंस
MIT
अपडेट की गई
13/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

api-and-interface-design

107k

अच्छी तरह परिभाषित APIs और interfaces डिज़ाइन करने में मदद करता है। सॉफ्टवेयर के अलग-अलग हिस्से आपस में कैसे बात करेंगे, यह तय करते समय उपयोगी है।

कोडिंगAPI और सर्वर (backend)

browser-testing-with-devtools

107k

आपके एजेंट को असली browsers में सीधे code टेस्ट करने में मदद करता है। जिस माहौल में चीज़ इस्तेमाल होगी, वहाँ वह कैसे चलती है यह जाँचने और errors व performance की समस्याएँ ढूंढने के लिए उपयोगी है।

कोडिंगटेस्टिंग

ci-cd-and-automation

107k

आपके AI एजेंट को दोहराए जाने वाले काम अपने-आप करना, प्रोजेक्ट्स शिप करना और इंफ्रास्ट्रक्चर मैनेज करना सिखाता है।

प्रोडक्टिविटीऑटोमेशन

code-simplification

107k

Code को सरल बनाता है ताकि उसे समझना और maintain करना आसान हो। जब code काम तो करता है पर बहुत जटिल हो गया हो, तब clarity बढ़ाने के लिए उपयोगी है।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills