code-review-and-quality
78مراجعة الشيفرة عبر خمسة محاور للجودة
قد تُخفي تغييرات الشيفرة مشكلات تتعلق بالصحة والأمان والبنية وسهولة القراءة والأداء. تطبق هذه المهارة عملية مراجعة منظمة وتنتج ملاحظات عملية مرتبة حسب الأولوية.
Simplify Code Without Changing Behavior
Complex code slows reviews, maintenance, and debugging. This skill guides focused refactoring that improves clarity while preserving behavior, errors, side effects, and tests.
انسخ هذا الطلب إلى Agent لديك. يتضمن صفحة Skill المعتمدة وملف manifest.
Review the Skillstore skill "code-simplification" from https://skillstore.io/skills/addyosmani-code-simplification.md and its manifest at https://skillstore.io/api/skills/addyosmani-code-simplification/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.يجب أن يواصل Agent عرض خطته وطلب أي تأكيد تفرضه سياسة الأمان.
استخدم هذه الروابط عندما يحتاج AI Agent أو crawler أو script إلى سياق نظيف بدلًا من قراءة الصفحة كاملة.
جارٍ استخدام "code-simplification". A function uses four nested conditionals to validate input, permission, and state.
النتيجة المتوقعة:
Recommend ordered guard clauses with one validation per step. Explain that the change should preserve exception types, messages, and successful results.
جارٍ استخدام "code-simplification". A pull request mixes a new feature with a broad cleanup of nearby modules.
النتيجة المتوقعة:
Recommend separating the feature and cleanup into independent changes. Identify unrelated files as scope expansion and request tests for each focused refactor.
جارٍ استخدام "code-simplification". A helper appears redundant, but its callers and historical purpose are unclear.
النتيجة المتوقعة:
Defer removal until callers, tests, project conventions, and history are understood. Record the missing evidence instead of guessing.
All 26 external-command findings are false positives caused by shell-like backticks in Markdown examples and inline code. The hardcoded URL is a documentation reference, and the five reconnaissance findings describe ordinary scope and verification practices; no malicious intent or prompt injection was found.
شارك تقرير التقييم المرتبط بالإصدار والشارة المحايدة وبطاقة التضمين والاستشهادات. تعرض Skillstore الأدلة من دون أن تقرر ما إذا كانت هذه المهارة آمنة.
https://skillstore.io/skills/addyosmani-code-simplification/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/addyosmani-code-simplification?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/addyosmani-code-simplification?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/addyosmani-code-simplification/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/addyosmani-code-simplification.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>addyosmani. (2026). code-simplification security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/addyosmani-code-simplification/audits/1@techreport{addyosmani-addyosmani-code-simplification-2026,
author = {addyosmani},
title = {code-simplification security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/addyosmani-code-simplification/audits/1},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "code-simplification security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "addyosmani"
date-released: "2026-09-19"
url: "https://skillstore.io/skills/addyosmani-code-simplification/audits/1"
identifiers:
- type: other
value: "skillstore:addyosmani-code-simplification:audit:1"
description: "Skillstore immutable audit report identifier"
Review recently changed code for unnecessary nesting, duplication, and unclear names while keeping the feature behavior unchanged.
Turn a broad readability concern into small refactoring steps, explicit checks, and a focused reviewable diff.
Understand an older module before simplifying it, preserving error paths, side effects, project conventions, and existing tests.
Review this function for readability issues. Identify the smallest behavior-preserving improvements and explain why each one helps.
Inspect this module and its tests. Propose one simplification at a time, describe the preserved behavior, and specify the test to run after each step.
Study the surrounding code and project conventions before reviewing this change. Suggest clarity improvements that match existing naming, error handling, and module patterns.
Analyze this refactoring candidate deeply. Trace callers, side effects, error paths, edge cases, tests, and historical constraints, then produce a staged plan with explicit stop conditions.
المؤلف
addyosmaniالترخيص
MIT
مراجعة Skillstore
r1
تنبيه الإصدار
لم يعلن المؤلف عن إصدار.
مرجع
5d5054f8a23586f9b500fece1cb613a9dffc787b
حداثة الصيانة
١٩/٩/٢٠٢٦
الاستخدام
0 تنزيلات · 0 مشاهدات
بنية الملفات
📄 SKILL.md
مراجعة الشيفرة عبر خمسة محاور للجودة
قد تُخفي تغييرات الشيفرة مشكلات تتعلق بالصحة والأمان والبنية وسهولة القراءة والأداء. تطبق هذه المهارة عملية مراجعة منظمة وتنتج ملاحظات عملية مرتبة حسب الأولوية.
Clarify User Intent Before You Build
Underspecified requests cause teams to build the wrong outcome and discover misalignment late. This skill runs a focused, one-question interview that turns ambiguity into confirmed intent.
Plan Work Into Verifiable Tasks
Large or vague software work can hide dependencies, missing acceptance criteria, and verification gaps. This skill converts a specification into ordered task slices with checkpoints, scope guidance, and clear completion conditions.
Document Decisions and Architecture Clearly
Teams lose context when important technical decisions remain in chat, code comments, or individual memory. This skill turns architectural reasoning, API guidance, project instructions, and release changes into structured documentation.
Build Accessible, Production-Ready Frontends
Frontend work can become inconsistent, inaccessible, or difficult to maintain. This skill guides component architecture, responsive layouts, state handling, and polished user experiences.
Debug Errors with a Root-Cause Workflow
Debugging failures by guesswork wastes time and can hide the real cause. This skill provides a repeatable process for reproducing, isolating, fixing, and verifying problems.
دليل TDD باستخدام Red-Green-Refactor
بواسطة mattpocock
غالبا ما يصبح العمل القائم على الاختبارات أولا هشا عندما تختبر الفرق التفاصيل الداخلية أو تكتب عددا كبيرا من الاختبارات مسبقا. ترشد هذه المهارة Codex وClaude وClaude Code عبر دورات red-green-refactor تركز على السلوك.
تحليل أنماط الكود والمعمارية
بواسطة C0ntr0lledCha0s
تخفي قواعد الكود الكبيرة بُنى متكررة وخيارات معمارية غير واضحة. تعثر هذه المهارة على الأنماط، وتشرح الهدف منها، وتبرز فرص إعادة الهيكلة العملية.
البحث في الشيفرة حسب بنية AST
بواسطة 0xDarkMatter
تُغفل عمليات البحث النصي العلاقات الدلالية وتنتج تطابقات كثيرة غير دقيقة. تستخدم هذه المهارة أنماط ast-grep لتحديد بُنى الشيفرة والتحضير لعمليات إعادة هيكلة مركزة.
بناء أتمتة اختبارات موثوقة
بواسطة 89jobrien
تؤدي الاختبارات الضعيفة إلى إبطاء الإصدارات وإخفاء حالات التراجع. ترشد هذه المهارة استراتيجية الاختبار، وTDD، والأتمتة، ومراجعة التغطية، وفحوصات الويب باستخدام Playwright.
العثور على سياق الكود بشكل أسرع
بواسطة 89jobrien
غالبًا ما يضيع المطورون وقتًا في تتبع سبب وجود الكود وما الذي يعتمد عليه. توجه هذه المهارة Claude أو Codex أو Claude Code إلى جمع معرفة الرسم البياني ذات الصلة، والمستدعين، والاستيرادات، والاختبارات قبل إجراء التغييرات.
خطط لاختبارات موثوقة عبر قاعدة التعليمات البرمجية لديك
بواسطة 0xDarkMatter
تساعد هذه المهارة الفرق على اختيار استراتيجيات الاختبار، والمحاكاة، وتجهيزات البيانات، وبوابات التغطية، وأنماط CI دون خلط نطاقات الاختبار. وتمنح Claude وCodex وClaude Code إرشادات منظمة لاختبارات الوحدة، والتكامل، ونهاية إلى نهاية، وTDD، واختبارات خطوط الأنابيب.