मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #4096

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/c-pro/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

  1. Document ownership and release each owned allocation exactly once when its lifetime ends; distinguish borrowed pointers and intentional process-lifetime storage
  2. Check all return values, especially malloc
  3. Use static analysis tools (clang-tidy)
  4. Minimize stack usage in embedded contexts
  5. 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.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#4096
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills