跳到主要内容

Lang Zig

Navigate, test, and build Zig via the Zig toolchain.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-zig
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Zig Language Pack Skill

Drive Zig work with the project index and standard CLI recipes. LSP hint: zls (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Современная альтернатива C: простой язык, явный контроль памяти, отличный кросс-compile.

Лучше всего для:

  • системные утилиты и библиотеки
  • замена C в новых проектах
  • кросс-компиляция под разные платформы

When to Use​

Выбирай этот pack, если:

  • есть build.zig
  • нужен простой системный язык без сложности Rust
  • пользователь просит Zig

Manifests (автодетект репозитория): build.zig, build.zig.zon

Обычно рядом: Часто как toolchain/build вокруг C.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • максимальные гарантии safety → Rust
  • прикладной бэкенд → Go
  • веб → TypeScript

Prerequisites​

vibeos pack apply lang-zig --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
zig build test
zig build
zig fmt --check .

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-zig --apply
Doctorvibeos language doctor zig
Primary testzig build test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Skip zig-cache / zig-out in mental model of the tree.
  • Do not invent core tools.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor zig
zig build test