npx skills add sickn33/agentic-awesome-skills --skill c --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# C: Idiomatic Efficiency Reference ## When to Use - Use this skill when the task matches this description: Language-specific super-code guidelines for c. ## Table of Contents 1. [Memory Management](#memory) 2. [Pointers & Arrays](#pointers) 3. [Error Handling](#errors) 4. [Strings](#strings) 5. [Structs & Enums](#structs) 6. [Preprocessor & Headers](#preprocessor) 7. [Anti-patterns specific to C](#antipatterns) --- ## 1. Memory Management {#memory} ```c // ❌ malloc without checking return value char *buf = malloc(size); strcpy(buf, src); // ✅ char *buf = malloc(size); if (!buf) return -ENOMEM; memcpy(buf, src, size); ``` ```c // ❌ Casting malloc result (unnecessary in C, hides missing #include) int *p = (int *)malloc(n * sizeof(int)); // ✅ int *p = malloc(n * sizeof *p); ``` ```c // ❌ free without nulling (dangling pointer risk in long-lived scope) free(ptr); // ... later code might use ptr // ✅ free(ptr); ptr = NULL; ``` ```c // ❌ Forgetting to free on early-return paths char *a = malloc(100); char *b = malloc(200); if (!b) return -1; // leaks a // ✅ — single cleanup label char *a = NULL, *b = NULL; a = malloc(100); if (!a) goto cleanup; b = malloc(200); if (!b) goto cleanup; //
- When to Use
- Table of Contents
- 1. Memory Management {#memory}
- 2. Pointers & Arrays {#pointers}
- 3. Error Handling {#errors}
- 4. Strings {#strings}
- 5. Structs & Enums {#structs}
- 6. Preprocessor & Headers {#preprocessor}
- 7. Anti-patterns specific to C {#antipatterns}
- Limitations
What does the c skill do?
Language-specific super-code guidelines for c.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill c --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.