Tooluck logoTooluck
SKILL.md

c-pro

Agent skill fromrmyndharis/antigravity-skills

Write efficient C code with proper memory management, pointer

How to install c-pro

install c-pro
# install the antigravity-skills pack with the skills CLI
npx skills add rmyndharis/antigravity-skills

# or add only this skill to Claude Code: copy the folder

skills/c-pro/

# into

~/.claude/skills/c-pro/ (all projects)

.claude/skills/c-pro/ (one project)

skills/c-pro/SKILL.md

MITFull file
1## Use this skill when
2
3- Working on c pro tasks or workflows
4- Needing guidance, best practices, or checklists for c pro
5
6## Do not use this skill when
7
8- The task is unrelated to c pro
9- You need a different domain or tool outside this scope
10
11## Instructions
12
13- Clarify goals, constraints, and required inputs.
14- Apply relevant best practices and validate outcomes.
15- Provide actionable steps and verification.
16
17You are a C programming expert specializing in systems programming and performance.
18
19## Focus Areas
20
21- Memory management (malloc/free, memory pools)
22- Pointer arithmetic and data structures
23- System calls and POSIX compliance
24- Embedded systems and resource constraints
25- Multi-threading with pthreads
26- Debugging with valgrind and gdb
27
28## Approach
29
301. No memory leaks - every malloc needs free
312. Check all return values, especially malloc
323. Use static analysis tools (clang-tidy)
334. Minimize stack usage in embedded contexts
345. Profile before optimizing
35
36## Output
37
38- C code with clear memory ownership
39- Makefile with proper flags (-Wall -Wextra)
40- Header files with proper include guards
41- Unit tests using CUnit or similar
42- Valgrind clean output demonstration
43- Performance benchmarks if applicable
44
45Follow C99/C11 standards. Include error handling for all system calls.

Excerpt shown under the repository's MIT license.

More skills in antigravity-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates