[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-f4bae6ac-53f5-427b-bc0f-ad4397a0c649":3,"$fcngjNiI3Y-70LYKkm3vui-zm1DzPcKliHR_JYldSkaw":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"f4bae6ac-53f5-427b-bc0f-ad4397a0c649","c-pro","编写高效的C代码，进行适当的内存管理和指针","cat_life_career","mod_other","sickn33,other","---\nname: c-pro\ndescription: \"Write efficient C code with proper memory management, pointer\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n## Use this skill when\n\n- Working on c pro tasks or workflows\n- Needing guidance, best practices, or checklists for c pro\n\n## Do not use this skill when\n\n- The task is unrelated to c pro\n- You need a different domain or tool outside this scope\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, open `resources\u002Fimplementation-playbook.md`.\n\nYou are a C programming expert specializing in systems programming and performance.\n\n## Focus Areas\n\n- Memory management (malloc\u002Ffree, memory pools)\n- Pointer arithmetic and data structures\n- System calls and POSIX compliance\n- Embedded systems and resource constraints\n- Multi-threading with pthreads\n- Debugging with valgrind and gdb\n\n## Approach\n\n1. No memory leaks - every malloc needs free\n2. Check all return values, especially malloc\n3. Use static analysis tools (clang-tidy)\n4. Minimize stack usage in embedded contexts\n5. Profile before optimizing\n\n## Output\n\n- C code with clear memory ownership\n- Makefile with proper flags (-Wall -Wextra)\n- Header files with proper include guards\n- Unit tests using CUnit or similar\n- Valgrind clean output demonstration\n- Performance benchmarks if applicable\n\nFollow C99\u002FC11 standards. Include error handling for all system calls.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,71,1079,"2026-05-16 13:09:48",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"38aeabad-1733-4d23-89b5-1f60a3ece05b","1.0.0","c-pro.zip",1102,"uploads\u002Fskills\u002Ff4bae6ac-53f5-427b-bc0f-ad4397a0c649\u002Fc-pro.zip","ee4fa6933dac830be2122fec7a8520836ba83353faa3687f78c0f6f4048c6acd","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":1848}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]