شعار Code Review And Quality

Code Review And Quality

المجتمع
pimenov
code-review-and-quality

Reviews code changes across correctness, tests, readability, architecture, security, and performance before they are merged, shipped, or called done. Use when the user asks for a code review, when reviewing a PR/diff/commit/agent-produced code, after implementation or bugfix before final confidence, when deciding whether a change is ready, or when large/unclear changes need findings with severity and verification gaps.

نظرة عامة

الناشرpimenov
المستودعcodex-first-skills-pack
اسم المهارةcode-review-and-quality
النجوم
28
التفريعات
5
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها pimenov على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Code Review And Quality في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/code-review-and-quality
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pimenov/codex-first-skills-pack.git /tmp/codex-first-skills-pack
mkdir -p .claude/skills
cp -r /tmp/codex-first-skills-pack/skills/code-review-and-quality .claude/skills/code-review-and-quality
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Code Review And Quality في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Code Review And Quality تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Code Review And Quality بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Code Review And Quality

Overview

Use this skill as the normal code quality gate for finished or nearly finished code changes. The review should find real bugs, regressions, missing tests, unsafe assumptions, confusing structure, and verification gaps.

This is not praise, style commentary, or a rewrite plan by default. Lead with actionable findings.

Relationship To Other Skills

  • Use context-engineering first when the change intent, source of truth, or local conventions are unclear.
  • Use doubt-driven-review for high-stakes claims or risky production/auth/data decisions, especially before mutation.
  • Use codex-security:* for deep or scoped security review when security is the primary task.
  • Use impeccable for frontend visual/UX/design review.
  • Use test-driven-development when review finds a behavior gap that needs a regression guard.
  • Use source-driven-development when review depends on current framework, SDK, API, CLI, or platform behavior.

Do Not Use

  • Pure prose, documentation, or strategy review with no code artifact.
  • Design critique of UI aesthetics; route to impeccable.
  • Deep security audit; route to codex-security:*.
  • High-stakes operational approval where the artifact is a deploy/migration/rollback decision; route to doubt-driven-review.
  • Reviewing without a concrete diff, files, commit, PR, patch, or generated code to inspect.

Review Contract

Before reviewing, establish:

  • what the change is trying to accomplish;
  • the expected behavior or acceptance criteria;
  • the diff, files, commit, PR, or generated code under review;
  • relevant tests or verification evidence;
  • local conventions and nearest AGENTS.md;
  • whether production, data, auth, secrets, billing, or public APIs are touched.

If the contract is missing and affects correctness, ask or run read-only discovery before reviewing.

Review Order

1. Read Intent Before Diff

Find the task, issue, spec, commit message, user request, or nearby notes. If no intent exists, infer cautiously and label the inference.

Do not judge code only by taste. Review against the contract and the codebase's existing patterns.

2. Inspect Tests First

Tests show what the author thinks matters.

Check:

  • tests exist for behavior changes and bug fixes;
  • tests assert behavior, not incidental implementation details;
  • edge cases are covered: null/empty/boundary/error paths;
  • test names describe expected behavior;
  • a bugfix has a regression guard;
  • test updates did not simply bless broken behavior.

Missing or weak tests are findings when they reduce confidence in changed behavior.

3. Review Implementation Across Six Axes

Use these axes for every changed area.

Correctness

  • matches the spec, issue, or user-visible requirement;
  • handles edge cases, race conditions, concurrency, time zones, idempotency, retries, and partial failure where relevant;
  • preserves existing behavior outside scope;
  • avoids off-by-one, stale state, cache invalidation, and ordering bugs;
  • does not silently swallow errors.

Tests And Verification

  • focused tests/checks cover the changed behavior;
  • broader checks are appropriate for the blast radius;
  • manual verification is described when automation is unrealistic;
  • build/typecheck/lint results are relevant and current;
  • screenshots or browser checks exist for UI behavior when needed.

Readability And Simplicity

  • names are clear and consistent with local conventions;
  • control flow is direct;
  • abstractions earn their complexity;
  • comments explain non-obvious intent, not obvious syntax;
  • no cleverness, dead branches, temporary scaffolding, or debug leftovers.

Architecture

  • fits existing module boundaries and ownership;
  • dependencies flow in the expected direction;
  • no unjustified new framework, dependency, global state, or cross-layer shortcut;
  • shared code is extracted only when reuse is real;
  • public contracts and schemas remain compatible unless the breaking change is explicit.

Security And Data Safety

  • no raw secrets, tokens, private keys, or full env files;
  • input is validated at trust boundaries;
  • authorization/authentication remains enforced;
  • queries and shell calls avoid injection;
  • external data, logs, tickets, and fixtures are treated as untrusted data;
  • sensitive data is not exposed in logs, errors, telemetry, or UI.

Performance And Operations

  • no obvious N+1 queries, unbounded loops, unpaginated lists, or excessive data fetches;
  • no hot-path allocations or synchronous blocking work where it matters;
  • no avoidable frontend re-render churn for UI changes;
  • observability, rollback, migrations, and operational behavior match the change risk;
  • deployment/config changes have a clear verification path.

Severity Labels

Classify every finding so the author knows what is required.

LabelMeaningAction
CriticalSecurity issue, data loss, broken core behavior, production-breaking regression.Must fix before merge/ship.
HighLikely bug, missing guard for important behavior, risky architecture break.Should fix before merge/ship.
MediumReal maintainability, test, edge-case, or performance issue with bounded impact.Fix or explicitly defer.
LowMinor issue, local cleanup, small readability concern.Optional unless easy and in scope.
NitPure preference or tiny style detail.Optional; do not block.

Avoid dumping many low-value comments. A review that hides one Critical issue among twenty nits is a bad review.

Output Shape

When the user asks for a review, follow the Codex review stance:

  1. Findings first, ordered by severity.
  2. File and line references for each finding when available.
  3. Open questions or assumptions.
  4. Brief verification summary and residual risk.
  5. Short change summary only as secondary context.

Use this compact shape:

text
Findings:
- [High] path/to/file.ts:123 - <specific issue, why it matters, what would fail>

Open questions:
- <question if any>

Verification:
- Reviewed: <diff/files/tests/docs>
- Not run / not available: <gaps>

Summary:
- <brief, optional>

If there are no issues, say that clearly and still name test gaps or residual risk.

Reviewing Your Own Work

Before saying "done":

  • inspect the actual diff or edited files;
  • run focused checks proportional to the risk;
  • look specifically for changes outside the requested scope;
  • verify no debug artifacts, placeholders, broad refactors, or unrelated formatting slipped in;
  • confirm final answer does not overclaim unrun tests or deploy/smoke status.

Self-review is weaker than fresh review. For high-stakes work, use doubt-driven-review or another reviewer when available.

Large Changes

If the change is too large to review properly:

  • identify the logical slices;
  • review the riskiest slice first;
  • ask to split before merge when review quality would be fake;
  • distinguish generated/mechanical changes from hand-written logic;
  • verify the generator or transformation, not every repeated output line.

Size guidance:

  • around 100 changed lines: usually reviewable;
  • around 300 changed lines: reviewable if one logical change;
  • around 1000 changed lines: usually split unless mechanical or deletion-heavy.

Dependency Review

When the change adds or upgrades a dependency, check:

  • existing stack or standard library cannot reasonably solve it;
  • package is maintained and appropriately licensed;
  • bundle/runtime impact is acceptable;
  • known vulnerabilities are checked with the repo's normal tools;
  • supply-chain risk is appropriate for the project;
  • dependency is pinned or ranged according to local convention.

Do not approve new dependencies just because they make implementation shorter.

Common Rationalizations

RationalizationReality
"Tests pass, so the code is good."Tests are evidence, not a full review. Architecture, security, and readability still matter.
"I wrote it, so I know the intent."Authors are blind to assumptions. Review the diff as if someone else wrote it.
"It is AI-generated, so it probably followed the prompt."AI-generated code needs more scrutiny because it can be plausible and wrong.
"We will clean it up later."Deferred cleanup usually becomes permanent. Require cleanup unless there is a real emergency.
"This is just a small change."Small changes can still break auth, data, routing, or edge cases.

Red Flags

  • "LGTM" without evidence of review.
  • No regression test after a bug fix.
  • Tests changed to match implementation without explaining the requirement change.
  • Review ignores auth, data, secrets, or external input boundaries.
  • Large diff with no clear logical slices.
  • New dependency without dependency review.
  • Public contract or schema change without compatibility analysis.
  • Manual verification claimed but not described.
  • Findings lack severity or concrete failure mode.

Verification

Before finishing a review, confirm:

  • Intent and review artifact were identified.
  • Tests and verification evidence were inspected.
  • Correctness, tests, readability, architecture, security, and performance were considered.
  • Findings are severity-labeled and grounded in file/line references when possible.
  • Optional opinions are separated from required fixes.
  • Remaining risk and unrun checks are stated plainly.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Code Review And Quality؟

Reviews code changes across correctness, tests, readability, architecture, security, and performance before they are merged, shipped, or called done. Use when the user asks for a code review, when reviewing a PR/diff/commit/agent-produced code, after implementation or bugfix before final confidence, when deciding whether a change is ready, or when large/unclear changes need findings with severity and verification gaps.

لماذا تستخدم Code Review And Quality على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Code Review And Quality عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Code Review And Quality في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/code-review-and-quality. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Code Review And Quality؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Code Review And Quality؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Code Review And Quality معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Code Review And Quality مجانية؟

نشرها pimenov على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇