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

open-code-review-delegate

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

यह टूल प्रोग्रामिंग कोड की समीक्षा (review) करने में मदद करता है। यह पता लगाता है कि कोड के कौन से हिस्से जाँचने हैं और कौन से नियम मानने हैं, और विस्तार से विश्लेषण का काम मुख्य एजेंट की समझ पर छोड़ देता है। यह तब काम आता है जब समीक्षा मुख्य एजेंट को ही करनी हो।

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

  • ✓जब आप चाहते हों कि मुख्य AI एजेंट कोड का विश्लेषण करे।
  • ✓किसी खास कोड या फ़ाइलों के समूह में हुए बदलाव जाँचने के लिए।
  • ✓कोड के अलग-अलग वर्शन की तुलना करके समीक्षा करने के लिए।

Skill का लिंक

https://github.com/alibaba/open-code-review/blob/main/plugins/open-code-review/skills/open-code-review-delegate/SKILL.md

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

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

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

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

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

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

“मेरे कोड की समीक्षा करो, और सिक्योरिटी व परफ़ॉर्मेंस पर खास ध्यान दो।”

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

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

पहले टूल यह पहचानता है कि कौन सी फ़ाइलें समीक्षा के लिए हैं और कौन से नियम लागू होते हैं। फिर वह कोड के वर्शन के बीच का अंतर (यानी क्या बदला है) निकालता है। आखिर में मुख्य एजेंट इसी जानकारी के आधार पर समीक्षा करता है।

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

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

Open Code Review — Delegation Mode

This Codex plugin skill intentionally mirrors the canonical skill at skills/open-code-review-delegate/SKILL.md. Keep both files synchronized when updating OCR delegation instructions; a symlink is avoided because plugin installs may only materialize the plugin subtree.

A skill for performing AI code review where OCR provides deterministic engineering (file filtering, rule resolution) and the host agent performs the actual review using its own intelligence and tools.

Workflow

Step 1: Preview — Determine What to Review

ocr delegate preview --format json [--from <ref> --to <ref>] [--commit <hash>] [--exclude <patterns>]

This outputs:

  • mode (workspace / range / commit)
  • from / to / commit / merge_base — ref metadata for constructing git commands
  • Reviewable file list — paths, status, insertions/deletions
  • Excluded files — with exclusion reason

Common invocations:

Scenario Command
Workspace changes ocr delegate preview
Branch comparison ocr delegate preview --from main --to feature
Single commit ocr delegate preview -c abc123

Step 2: Get Rules for Files

ocr delegate rule --format json <path1> <path2> ...

Pass the reviewable file paths from Step 1. Output is grouped by rule content — files sharing the same rule appear under one group, avoiding repetition.

Step 3: Get Diffs

Choose the diff command using the mode and refs from Step 1. Use git --no-pager for every Git call during the review.

The diff commands disable external diff programs, text conversion, and color to produce plain patches.

Range mode (merge_base provided in preview output):

git --no-pager diff --no-ext-diff --no-textconv --no-color <merge_base>..<to> -- "<path>"

Commit mode:

git --no-pager show --no-ext-diff --no-textconv --no-color <commit> -- "<path>"

Workspace mode:

# Tracked files
git --no-pager diff --no-ext-diff --no-textconv --no-color HEAD -- "<path>"
# New untracked files — read directly (entire file is new code)
cat "<path>"

To read context:

git --no-pager log --no-color --oneline -- "<path>"
git --no-pager blame --no-textconv -- "<path>"
git --no-pager show --no-ext-diff --no-textconv --no-color "<ref>:<path>"

For large diffs, add --output="<absolute-diff-file>" to the command for the selected mode. Choose a unique absolute path outside the repository and create its parent directory. Use the same path in file-reading tool calls:

git --no-pager diff --no-ext-diff --no-textconv --no-color --output="<absolute-diff-file>" <merge_base>..<to> -- "<path>"

After Git exits with code 0, read and review the entire file in chunks, then remove it. If Git fails or times out, retry or record skipped with the error. Check unexpectedly empty output against a fresh preview.

Step 4: Review Each File

Create a checklist containing every reviewable_files entry. For each reviewable file:

Use (path, status) as the checklist identity. Workspace mode can report the same path twice when a staged deletion is followed by an untracked recreation.

  1. Get its diff (Step 3)
  2. Consult its Rule Group (from Step 2) for the review checklist
  3. Conduct a thorough review, using appropriate context tools as needed
  4. Mark the file reviewed, or skipped with a concrete reason

For large changes, review in bounded batches grouped by shared rules and diff size. Do not stop after finding the first high-severity issue.

Step 5: Format Output

Each comment must follow this structure:

Field Type Required Description
path string yes Relative file path
content string yes Review comment describing the issue
start_line integer no Start line in the new file
end_line integer no End line in the new file
category enum no bug, security, performance, maintainability, test, style, documentation, other
severity enum no critical, high, medium, low

Step 6: Classify and Report

Before reporting, verify that every previewed file is accounted for. Include total_files, reviewed_files, skipped_files, and coverage_rate in the summary. A skipped file must include its reason.

Group findings by severity:

  • Critical/High: Bugs, security issues, data loss risks — always report

…

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

'डेलीगेशन' का क्या मतलब है?

इसका मतलब है कि टूल मुख्य विश्लेषण का काम प्राइमरी AI एजेंट को सौंप देता है, और खुद सिर्फ़ ज़रूरी जानकारी को व्यवस्थित करके तैयार करने पर ध्यान देता है।

क्या इसे इस्तेमाल करने के लिए प्रोग्रामिंग का ज्ञान चाहिए?

नहीं, टूल सरल इस्तेमाल के लिए बनाया गया है। बस आपको बताना होता है कि आप क्या समीक्षा करवाना चाहते हैं।

'नियम' (rules) क्या होते हैं?

ये दिशा-निर्देश या मानक होते हैं जिनका कोड को पालन करना चाहिए, जैसे सिक्योरिटी या प्रोग्रामिंग स्टाइल के लिए अच्छे तरीके।

जानकारी

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

Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent to perform the code review itself, using OCR only for deterministic engineering: file selection and rule resolution. Use when the host agent should drive the review with its own LLM capabilities.

repo: alibaba/open-code-review

लोकप्रियता

GitHub स्टार
47k
रैंकिंग में स्थान
#6315
लाइसेंस
Apache-2.0
अपडेट की गई
15/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

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