One-click install
npx skills add https://github.com/nzrsky/zig-skills --skill zig-nzrsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zig
Source: https://github.com/nzrsky/zig-skills/tree/main/.cursor/skills/zig
Command: npx skills add https://github.com/nzrsky/zig-skills --skill zig-nzrsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you avoid common compilation errors and runtime bugs in Zig by providing up-to-date API references and correct patterns for modern Zig versions.

Core Features & Use Cases

  • Breaking Changes: Details all breaking changes from Zig 0.14/0.15 with WRONG/CORRECT examples.
  • API Guide: Covers I/O API rewrite ("Writergate"), build system migration, container initialization, and more.
  • Use Case: When migrating Zig code from 0.13 to 0.15, use this Skill to quickly find and fix deprecated APIs like root_source_file vs root_module and the new buffered writer pattern.

Quick Start

Use the zig skill to find the correct pattern for initializing std.ArrayList.

Frequently Asked Questions about zig

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Zig build system APIs from 0.13 to 0.15?

Migrating Zig build system APIs requires replacing root_source_file with the new root_module pattern. This Skill provides side-by-side WRONG/CORRECT examples to fix compilation errors and adapt to 0.15.x breaking changes.

What is the correct pattern for Zig I/O API rewrite in version 0.15?

The Zig I/O API rewrite, known as Writergate, introduces a new buffered writer pattern. This Skill details correct implementation methods to prevent outdated patterns and runtime bugs in modern Zig versions.

How do I initialize std.ArrayList in Zig 0.15?

To initialize std.ArrayList in Zig 0.15, use the updated container initialization rules provided by this Skill. It offers comprehensive API references and best practices to ensure correct modern Zig syntax.

What are the major breaking changes in Zig 0.14 and 0.15?

Major breaking changes in Zig 0.14 and 0.15 include build system API modifications, I/O API rewrites, container initialization rules, and removed language features. This Skill documents these changes to facilitate code migration.

Why does my Zig code fail to compile after upgrading to 0.15?

Zig code fails to compile after upgrading to 0.15 due to breaking changes like deprecated build system APIs and removed language features. This Skill provides up-to-date API references to quickly find and fix outdated patterns.