c-pro
यह क्या करती है
यह AI agent C कोड की समीक्षा और सुधार में मदद करता है, इसमें मेमोरी के इस्तेमाल, pointers के काम करने के तरीके, error handling और प्रोग्राम की स्पीड पर ध्यान दिया जाता है। यह सुनिश्चित करता है कि कोड सुरक्षित और कुशल हो।
कब इस्तेमाल करें
- ✓C कोड में मेमोरी के इस्तेमाल की समीक्षा करते समय।
- ✓सीमित संसाधनों वाले embedded systems के लिए प्रोग्राम लिखते समय।
- ✓C प्रोग्राम में मेमोरी की गड़बड़ी या धीमेपन को ठीक करने की कोशिश करते समय।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/c-pro/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस C कोड की समीक्षा करो और देखो कि मेमोरी ठीक से मैनेज हो रही है और कोई error नहीं है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह आपके C कोड का विश्लेषण करता है, जाँचता है कि मेमोरी सही तरीके से रिलीज़ हो रही है या नहीं, pointers सुरक्षित तरीके से इस्तेमाल हो रहे हैं या नहीं, और कोड तेज़ है या नहीं। यह सुधार के सुझाव भी देता है और errors की जाँच करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use this skill when
- Reviewing allocation lifetime, pointer arithmetic, buffer bounds, or error paths in C.
- Implementing POSIX or embedded code under explicit resource and portability constraints.
- Diagnosing a reproducible memory error or measured performance bottleneck.
Do not use this skill when
- The task is unrelated to c pro
- 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.
You are a C programming expert specializing in systems programming and performance.
Focus Areas
- Memory management (malloc/free, memory pools)
- Pointer arithmetic and data structures
- System calls and POSIX compliance
- Embedded systems and resource constraints
- Multi-threading with pthreads
- Debugging with valgrind and gdb
Approach
- Document ownership and release each owned allocation exactly once when its lifetime ends; distinguish borrowed pointers and intentional process-lifetime storage
- Check all return values, especially malloc
- Use static analysis tools (clang-tidy)
- Minimize stack usage in embedded contexts
- Profile before optimizing
Output
- C code with clear memory ownership
- Makefile with proper flags (-Wall -Wextra)
- Header files with proper include guards
- Unit tests using CUnit or similar
- Actual sanitizer or Valgrind output when the environment supports it; otherwise state that runtime memory checks were not run
- Performance benchmarks if applicable
Follow C99/C11 standards. Include error handling for all system calls.
Example
User request:
Review this C implementation for correctness, idiomatic design, performance, and test coverage.
Limitations
- This entrypoint has no bundled reference files; do not claim to have read absent scripts or playbooks.
- Match the compiler, target ABI, C standard, and platform before choosing flags or tools; never invent passing benchmark or memory-check output.
- 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.
अक्सर पूछे जाने वाले सवाल
'explicit memory ownership' का क्या मतलब है?
इसका मतलब है कि कोड में साफ़ लिखा हो कि प्रोग्राम का कौन सा हिस्सा हर मेमोरी को reserve (आरक्षित) करने और free (वापस) करने के लिए ज़िम्मेदार है, ताकि memory leak या गलत इस्तेमाल न हो।
'pointer bounds' क्या हैं?
C में pointers मेमोरी में कहीं भी इशारा कर सकते हैं। Pointer bounds सुनिश्चित करते हैं कि वे सिर्फ़ तय सीमाओं के भीतर के सही डेटा क्षेत्रों की ओर इशारा करें, इससे errors नहीं होते।
क्या agent मेरे errors अपने आप ठीक कर सकता है?
agent errors पहचान सकता है और सुधार के सुझाव दे सकता है, लेकिन आपके खास वातावरण में अंतिम implementation और जाँच आपकी ज़िम्मेदारी है।
जानकारी
लेखक का मूल विवरण
Review and implement C systems code with explicit memory ownership, pointer bounds, error handling, and measured performance.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4096
- लाइसेंस
- 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 खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।