Command Palette

Search for a command to run...

Назад к скиллам
скилл № 68490

zig

Zig systems programming skill covering comptime, allocators, cross-compilation, build system, and error unions. Use when building Zig applications.

БесплатноБез исполняемых скриптов
skeletorfletот skeletorflet★ 48 звёзд на GitHub

Установить zig в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

zig

Core Concepts

  • Comptime: compile-time code execution, comptime parameters/values, inline for loops, compile-time reflection
  • Allocators: explicit memory management — ArenaAllocator (batch free), page_allocator (OS pages), heap page allocator (general purpose), FixedBufferAllocator (fixed buffer)
  • Error Union Types: !T syntax combining error set with value type, try/catch, error return traces
  • Testing: test blocks inline with code, test runner, expect/expectEqual, memory leak detection

Build System

  • build.zig: declarative build configuration, Build object with addExecutable/addLibrary, step dependencies
  • Cross-compilation: target triple (arch-os-abi), built-in libc detection, no need for cross toolchains
  • Zig vs C: no hidden control flow, no implicit allocations, first-class cross-compilation, @cImport for C interop

Common Patterns

  • var vs const: explicit mutability, const pointer vs mutable pointer distinct
  • Optionals: T? with orelse for defaults, unwrap by capture (?)
  • Slices: []const T for read-only views, len + ptr primitive, slice syntax
  • Standard library: std.fs (file system), std.net (networking), std.json (JSON parsing), std.ArrayList (growable arrays)

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл zig?

Zig systems programming skill covering comptime, allocators, cross-compilation, build system, and error unions. Use when building Zig applications.

Как установить скилл zig?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл zig запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить zig с