C++ Pro
كتابة كود C++ احترافي
اكتب كود C++ أنظف وأسرع وأكثر قابلية للصيانة بمساعدة الذكاء الاصطناعي. تساعد هذه المهارة المطورين على إنشاء كود جاهز للإنتاج، وتطبيق أنماط C++ الحديثة، وتحسين الأداء دون الحاجة إلى خبرة عميقة.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "C++ Pro". Write a function that calculates the Fibonacci sequence using dynamic programming
Résultat attendu:
دالة C++ كاملة بتعقيد زمني O(n)، مع تخصيص ذاكرة صحيح ومثال على الاستخدام. تتضمن تعليقات الترويسات التي تشرح النهج والتعامل مع الحالات الحدية.
Utilisation de "C++ Pro". Implement a thread-safe singleton pattern in C++11
Résultat attendu:
ملفات ترويسات وتنفيذ كاملة باستخدام Singleton من Scott Meyers مع std::call_once و std::once_flag، مع شرح ضمانات أمان الخيوط.
Audit de sécurité
SûrThis is a prompt-only skill with no executable code. Static analysis scanned 0 files and detected 0 security issues. The skill provides AI-driven C++ programming assistance through prompt templates without any direct system access, network requests, or file operations. Risk score is 0/100.
Score de qualité
Ce que vous pouvez construire
إنشاء الكود الجاهز
إنشاء سريع لقوالب الفئات وملفات الترويسات وMakefiles للمشاريع الجديدة
تعلم أنماط C++ الحديثة
الحصول على شروحات وتنفيذات للمصطلحات والأنماط الحديثة في C++
تحسين الكود الموجود
تلقي اقتراحات لتحسين الأداء وكفاءة الذاكرة
Essayez ces prompts
اكتب دالة C++ التي [describe functionality]. Include proper error handling and comments.
Implement the [Design Pattern name] pattern in C++. Show both header and implementation files with proper includes.
Analyze this C++ code for performance issues and suggest improvements: [paste code]. Focus on [algorithm complexity/memory usage/IO operations].
Convert this legacy C++ code to modern C++ (C++17/20) style: [paste code]. Use smart pointers, range-based loops, and structured bindings where appropriate.
Bonnes pratiques
- حدد دائمًا إصدار معيار C++ عند طلب الكود (C++11 أو C++14 أو C++17 أو C++20)
- قدم معلومات حول نظام البناء الخاص بك (CMake أو Make أو vcpkg) للحصول على كود أكثر ملاءمة
- راجع الكود المُنشأ من حيث أمان الذاكرة وإدارة الموارد قبل استخدامه في الإنتاج
Éviter
- تجنب استخدام المؤشرات الخام عندما تتوفر المؤشرات الذكية
- لا تتجاهل قيم الإرجاع للدوال التي تشير إلى النجاح أو الفشل
- تجنب استخدام التحويلات من نمط C - استخدم static_cast أو dynamic_cast أو reinterpret_cast