Lang Zig
Navigate, test, and build Zig via the Zig toolchain.
Skill metadata
| Source | Bundled (installed by default) |
| Path | skills/software-development/lang-zig |
| Version | 1.1.0 |
| Author | VibeOS |
| License | MIT |
| Platforms | linux, 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
| Goal | Command |
|---|---|
| Apply pack | vibeos pack apply lang-zig --apply |
| Doctor | vibeos language doctor zig |
| Primary test | zig build test |
| Choose guide | skill choose-language-pack |
Procedure
- Если язык ещё не выбран для нового проекта — сначала
choose-language-pack. - Work from the project root that matches pack manifests.
- Index query →
read_file→ edit → path-scoped tests when iterating. - Prefer the package manager / toolchain already locked in the repo.
- 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