change-review
ما الذي تفعله
تساعد هذه المهارة ذكاءك على مراجعة تغييرات الكود من ناحية المخاطر قبل دمجها. وهي لمطورين في مشروع فهرسه Repowise، ويريدون أن يعرفوا ما الذي قد يكسره التغيير.
متى تستخدمها
- ✓عندما تسأل إن كان طلب السحب أو الفرع آمنًا للدمج.
- ✓عندما تريد معرفة نطاق تأثير تغييراتك عبر قاعدة الكود.
- ✓عندما تشك في أنك فاتك ملف مرتبط أو تغيير تابع.
رابط المهارة
https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/change-review/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“راجع طلب السحب هذا، وأخبرني إن كان آمنًا للدمج وما الذي قد يحتاج إلى تغيير أيضًا.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقيّم المهارة التغيير كله كوحدة واحدة باستخدام Repowise، وتجمع سجل Git والتبعيات وفجوات الاختبار والقرارات. ثم تعرض أهم المخاطر أولًا، والملفات التي قد تحتاج إلى تحديث.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Change Review with Repowise
When a diff is on the table, Repowise turns "what files changed" into "what does this change put at risk" — fusing git history (churn, ownership, co-change) with graph topology (dependents, impact surface), test gaps, security signals, and the architectural decisions that govern the touched code.
Two complementary risk signals, use both:
get_change_risk(revspec=…)(MCP) scores the whole change as one unit (a commit or abase..headrange). No LLM, no network. Prefer this in-MCP tool; it takes a revspec and diffs server-side, so you never shell out. Lead withdirectiveandhealth_delta— what the change actually made worse. Findings the change wrote sort above pre-existing ones it only touched. Thenrisk_percentile(this change ranked against sampled recent commits by diff size and spread, not a bug predictor), stated in one line bydiff_shape;include=["scales"]adds itsreview_prioritytercile andclassificationlabel. The raw 0-10scoreranks 0.99 against lines added, so it sits behindinclude=["diagnostics"]rather than on the wire. Omitrevspecto score uncommitted work. This is the pre-merge gate: "how risky is this change overall?" Therepowise risk <revspec>CLI is the identical scorer for when you are already in a terminal.get_risk(changed_files=…)(MCP) works per file and returns thedirectiveblock, the specific things to check inside the diff.
Score the whole change first
get_change_risk(revspec="main..HEAD") # HEAD, a commit SHA, or base..head
Read directive first: status, a headline naming what got worse, the
reasons behind it and next_actions to run. health_delta carries the
findings the change introduced or resolved. Then risk_percentile and the top
drivers: a high score from large diffusion (many dirs/subsystems) or low author
familiarity tells you where to look hardest. extensions=[".py", ".ts"] counts
only certain file types; exclude_patterns=["tests/"] omits paths. A warning
field, or a directive.status of unknown, means the revspec or filters
matched no files, so an all-zero score there is not a clean bill of health. The
equivalent from a terminal is repowise risk <revspec> (add --ext .py,.ts or
--format json).
Then drill into the per-file directive
Call get_risk in PR mode by passing the changed files:
get_risk(targets=<changed files>, changed_files=<same changed files>)
The response carries its own directive block, per file rather than per change
(distinct from get_change_risk's) — read it first, it's a few short lists:
may_break— files/symbols that import their way to what changed but are not in the diff. Reachability, not a diff: it says these depend on the changed files, not that the thing they use changed. Check each one.missing_cochanges— files that historically change together with the changed files but were left untouched. Often a forgotten update.missing_tests— changed code with a test gap. Flag for new/updated tests.tests_to_run: the tests the change needs, from the same selectionrepowise impacted-testsmakes, withtests_to_run_whygiving each one's reason (the changed file and its evidence, or "runs with every subset"). Checktests_run_allfirst: when it is true no smaller set can be vouched for,tests_run_all_reasonssays why, and the list is only what to run first; recommend the whole suite. When it is false the list is the set to run.tests_to_run_basisismeasuredwhen stored per-test coverage decided a changed file andinferredwhen only the dependency graph or a rule did; say which.tests_statusappears only when no selection could be made (timeout,config_invalid,unknown, ...), and then every test must run.
get_change_risk carries the same answer as impacted_tests: status
(selected or run_all, or why nothing was selected), run_all, reasons,
tests_to_run and why. include=["blast"] on get_risk adds
pr_blast_radius, the fuller dossier behind the directive's lists.
For the line-precise version from a terminal, repowise impacted-tests <revspec>
maps each changed line to the tests whose recorded coverage touches it, then
prints the ids (--format list | xargs pytest runs exactly them). It is honest
about gaps: a changed file with no coverage rows is a labelled filename
الأسئلة الشائعة
بماذا تبدأ المراجعة؟
تبدأ بما أضعفه التغيير، ثم بمستوى الخطر العام للتغيير.
هل تستطيع مراجعة تغييرات لم تُحفظ بعد؟
نعم. إذا لم يُحدَّد نطاق، تقيّم عملك غير المحفوظ.
هل تحتاج إلى أداة منفصلة؟
تحتاج إلى مشروع فهرسه Repowise، أي فيه مجلد .repowise.
التفاصيل
الوصف الأصلي من المؤلف
Use when reviewing a set of changes before they merge — a PR, a branch diff, or the working-tree changes you just made — in a Repowise-indexed codebase (.repowise/ directory exists). Activates for "review this PR", "is this safe to merge", "what's the blast radius of these changes", "did I miss anything", or "what else should change with this".
repo: repowise-dev/repowise
الشعبية
- نجوم GitHub
- 8.1k
- الترتيب
- #12565
- الترخيص
- AGPL-3.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
architectural-decisions
8.1kيساعد وكيلك على معرفة سبب بناء الكود بطريقة معينة، باستخدام القرارات المسجّلة والسجل قبل أن يغيّر البنية المعمارية.
code-health
8.1kيساعد وكيلك على تقييم صحة الكود ملفًا ملفًا، وإيجاد الملفات الأكثر خطرًا، واختيار ما يجب إعادة هيكلته لاحقًا، باستخدام تحليل Repowise.
codebase-exploration
8.1kيساعد وكيلك على فهم مشروع غير مألوف بسرعة، بالإجابة عن كيفية عمل الكود ومن يستدعي ماذا وأين بُنيت الأشياء.
dead-code-cleanup
8.1kيساعد وكيلك على إيجاد الكود غير المستخدم والملفات التي لا يمكن الوصول إليها والتصديرات غير المستخدمة في المشروع، لتنظيفها بأمان.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.