This commit is contained in:
Peter Li 2026-10-19 17:38:13 -07:00 committed by Peterino2
parent 3de6eaa802
commit 3f59f7f43b
3 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,3 @@
## Build and validation ## Build and validation
Use Zig 0.16.0. Read `zig/SKILL.md` before Zig work. Use Zig 0.17.0. Read `zig/SKILL.md` before doing any Zig work.

View File

@ -1 +1,3 @@
# Ribtech # Ribtech
This is a chance to start completely clean and fresh, we will be building new game engine leveraging components

View File

@ -1,26 +1,26 @@
--- ---
name: zig name: zig
description: Work on Zig 0.16 code and build files using the documentation and standard-library source shipped with the active compiler. Use for writing, reviewing, debugging, or migrating Zig in this repository. description: Work on Zig 0.17 code and build files using the documentation and standard-library source shipped with the active compiler. Use for writing, reviewing, debugging, or migrating Zig in this repository.
--- ---
# Zig 0.16 # Zig 0.17
Use the installed Zig toolchain as the source of truth. Do not rely on remembered Use the installed Zig toolchain as the source of truth. Do not rely on remembered
APIs or hand-maintained summaries when the compiler distribution can answer the APIs or hand-maintained summaries when the compiler distribution can answer the
question directly. question directly.
1. Run `zig version` and require 0.16.0 for this repository. - Run `zig env` to locate `zig_exe`, `lib_dir`, and `std_dir`; do not assume a
2. Run `zig env` to locate `zig_exe`, `lib_dir`, and `std_dir`; do not assume a
particular installation path. particular installation path.
3. Consult `<directory containing zig_exe>/doc/langref.html` for language syntax, - Consult `<directory containing zig_exe>/doc/langref.html` for language syntax,
semantics, and builtins. semantics, and builtins.
4. Search `std_dir` for exact APIs, implementations, and tests. Use them as - Search `std_dir` for exact APIs, implementations, and tests. Use them as
examples of both correct usage and Zig coding style; follow standard-library examples of both correct usage and Zig coding style; follow standard-library
conventions. - conventions.
5. Use compiler and test failures to verify any inferred API usage. - Use compiler and test failures to verify any inferred API usage.
for `if` conditions, put continuation `and`/`or` operators at the start of for `if` conditions, put continuation `and`/`or` operators at the start of
the next line. Run `zig fmt` on changed Zig files. the next line. Run `zig fmt` on changed Zig files.
If the installed documentation is unavailable, use the versioned official If the installed documentation is unavailable, use the versioned official
reference at <https://ziglang.org/documentation/0.16.0/>. reference at <https://ziglang.org/documentation/0.17.0/> download a copy once and
avoid unessecary traffic.