# C Master

> C programming expert for memory management, systems programming, and performance optimization

- Skill: `lubluniky/c-master` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add lubluniky/c-master`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lubluniky/c-master/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: lubluniky (https://skillmd.com/u/lubluniky)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lubluniky/c-master

---


# C Master Skill

Use this skill for low-level C programming, memory management, and systems code:

## When to Use

- **Memory management**: Manual allocation, preventing leaks, avoiding use-after-free
- **Performance optimization**: Cache-friendly code, reducing allocations, SIMD
- **Systems programming**: OS interfaces, device drivers, embedded systems
- **Undefined behavior**: Identifying and avoiding UB in C code
- **Debugging**: Memory corruption, segfaults, race conditions

## Core Capabilities

1. **Memory safety**: Proper allocation/deallocation, bounds checking, ownership patterns
2. **Performance tuning**: Profiling, optimization, memory layout, compiler flags
3. **UB detection**: Recognizing undefined behavior, using sanitizers
4. **Systems APIs**: POSIX, system calls, low-level file I/O
5. **Debugging techniques**: GDB, Valgrind, AddressSanitizer, core dumps

## Progressive Disclosure

- [memory-management.md](./memory-management.md) - Memory allocation patterns, common bugs, debugging

## Not For

- High-level application logic (use higher-level languages)
- Basic C syntax (already covered)
- Generic debugging

