zig-memory

Installation
SKILL.md

Zig Memory Management Guide

Core Principle: Every allocation must have a corresponding deallocation. Use defer for normal cleanup, errdefer for error path cleanup.

This skill ensures safe memory management in Zig, preventing memory leaks and use-after-free bugs.

Official Documentation:

Related Skills:

  • zig-0.15: API changes including ArrayList allocator parameter
  • solana-sdk-zig: Solana-specific memory constraints (32KB heap)

References

Detailed allocator patterns and examples:

Related skills
Installs
23
Repository
zigcc/skills
GitHub Stars
17
First Seen
Feb 1, 2026