ما هي code-refactoring؟
دليل إعادة هيكلة التعليمات البرمجية، استخدم هذه المهارة لإرشادك عندما يطلب المستخدم إعادة هيكلة مكونات أو وظائف وعند تنفيذ خطة تتطلب إعادة هيكلة التعليمات البرمجية. المصدر: rakaadi/agent-kit.
دليل إعادة هيكلة التعليمات البرمجية، استخدم هذه المهارة لإرشادك عندما يطلب المستخدم إعادة هيكلة مكونات أو وظائف وعند تنفيذ خطة تتطلب إعادة هيكلة التعليمات البرمجية.
ثبّت مهارة الذكاء الاصطناعي code-refactoring بسرعة في بيئة التطوير لديك عبر سطر الأوامر
المصدر: rakaadi/agent-kit.
This skill specializes in refactoring React Native components within the Ecalyptus healthcare mobile application. It focuses on eliminating deeply nested conditionals, optimizing array operations and component re-renders, improving RTK Query usage patterns, and enhancing code readability while maintaining React Compiler compatibility and ESLint compliance.
User Request: "This component has nested ifs and the list re-renders too much when I update a single item's state"
I can see two issues here. First, the nested conditionals in your render logic make it hard to understand the component's states. We can refactor this using ts-pattern for clearer state matching. Second, your mapped list items maintain their own expanded state, which gets lost on parent re-renders. We should lift that state to the parent component.
حقول وأوامر مستقرة للاقتباس في أنظمة الذكاء الاصطناعي والبحث.
npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoringدليل إعادة هيكلة التعليمات البرمجية، استخدم هذه المهارة لإرشادك عندما يطلب المستخدم إعادة هيكلة مكونات أو وظائف وعند تنفيذ خطة تتطلب إعادة هيكلة التعليمات البرمجية. المصدر: rakaadi/agent-kit.
افتح الطرفية أو أداة سطر الأوامر لديك مثل Terminal أو iTerm أو Windows Terminal انسخ ونفّذ هذا الأمر: npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring بعد التثبيت، سيتم إعداد المهارة تلقائيا في بيئة البرمجة بالذكاء الاصطناعي لديك وتصبح جاهزة للاستخدام في Claude Code أو Cursor أو OpenClaw
https://github.com/rakaadi/agent-kit