memory-safety-patterns
यह क्या करती है
यह टूल ऐसा सुरक्षित कंप्यूटर कोड लिखने में मदद करता है जिसमें आम गलतियों से बचा जा सके, जो crash या सुरक्षा समस्याओं का कारण बनती हैं। यह memory और files जैसे resources को भरोसेमंद तरीके से संभालने की तकनीकें सिखाता है।
कब इस्तेमाल करें
- ✓ऐसे सिस्टम प्रोग्राम करते समय जिन्हें बहुत भरोसेमंद होना चाहिए।
- ✓जब आपको सुनिश्चित करना हो कि memory या files जैसे resources सही तरीके से छोड़े जाते हैं।
- ✓use-after-free या memory leak जैसी गलतियों से बचने के लिए।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/memory-safety-patterns/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं अपने C++ कोड में memory leak न हो, यह कैसे सुनिश्चित करूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल ऐसे प्रोग्रामिंग पैटर्न समझाता है जो resources को अपने आप संभालने में मदद करते हैं। यह 'RAII' और 'smart pointers' जैसी अवधारणाओं का उपयोग करता है ताकि जब resource की ज़रूरत न रहे तो वह अपने आप छोड़ दिया जाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Memory Safety Patterns
Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and resource management.
Use this skill when
- Writing memory-safe systems code
- Managing resources (files, sockets, memory)
- Preventing use-after-free and leaks
- Implementing RAII patterns
- Choosing between languages for safety
- Debugging memory issues
Do not use this skill when
- The task is unrelated to memory safety patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
अक्सर पूछे जाने वाले सवाल
RAII क्या है?
RAII एक तकनीक है जो किसी resource (जैसे memory या खुली फ़ाइल) के जीवनकाल को एक object के जीवनकाल से जोड़ती है। object बनते समय resource लिया जाता है, और object खत्म होने पर resource अपने आप छोड़ दिया जाता है।
smart pointers क्या होते हैं?
smart pointers ऐसे objects हैं जो pointer की तरह काम करते हैं, पर इनमें सुरक्षा की अतिरिक्त सुविधाएं होती हैं, जैसे जिस memory की ओर वे इशारा करते हैं उसका अपने आप प्रबंधन। ये memory leak रोकने में मदद करते हैं।
क्या यह टूल किसी भी प्रोग्रामिंग भाषा के लिए काम करता है?
यह ऐसे पैटर्न पर केंद्रित है जो कई भाषाओं में लागू होते हैं, खासकर उन भाषाओं में जहां memory हाथ से संभालनी पड़ती है, जैसे C++। इसके सिद्धांत आम तौर पर memory सुरक्षा समझने में उपयोगी हैं।
जानकारी
लेखक का मूल विवरण
Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and resource management.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #5196
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।