upgrading-zig-16-to-17
Skill2 starsChanged 4 months agoMITView on GitHub
Plan, investigate, or perform an explicitly authorized Zig 0.16 to 0.17 migration, including the 0.17.1 patch release, Nix dependency staging, semantic compatibility, and native target qualification. Do not upgrade solely because a newer release exists.
In this repository34 other files it gives its agents.
- capture-collaboration-evidenceSkill
- clarify-before-buildingSkill
- cross-platform-project-build-archSkill
- deep-code-reviewSkill
- dispatchSkill
- erect-agent-stackSkill
- fix-zig-deps-hashSkill
- gather-project-intentionsSkill
- handoffSkill
- hulk-bug-handoffSkill
- i18nSkill
- llvm-guided-optimizationSkill
- mechatron-ciSkill
- memoriesSkill
- mficSkill
- multi-implementation-contractsSkill
- no-ai-slopSkill
- onboardSkill
- performance-profilingSkill
- planning-workSkill
- scaffold-zig-projectSkill
- ship-itSkill
- test-isolationSkill
- universal-app-frontendSkill
- walking-decisionsSkill
- writing-bendSkill
- writing-elmSkill
- writing-leanSkill
- writing-nixSkill
- writing-rocSkill
- writing-rustSkill
- writing-webassemblySkill
- writing-zigSkill
- zig-microbenchmarksSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill alongside writing-zig and writing-nix when assessing or performing a 0.16-to-0.17 migration.
- Very specific: line 61
Update build and source APIs using the versioned reference.
- Very specific: line 66
Update ZON source pins and hashes, Nix fixed-output dependency hashes and source filters only as the dependency graph requires.
- Very specific: line 69
Run the complete project test entry point and nix build, including relevant semantic regression cases, C ABI/layout checks and packaged …
- Distinctive: line 74
Check the current ZLS pairing and editor behavior rather than assuming a patch release is compatible.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Upgrade Zig 0.16 to 0.17
Use this skill alongside writing-zig and writing-nix when assessing or
performing a 0.16-to-0.17 migration. An assessment is not authorization to
upgrade a project, its dependencies, or the fleet. Respect the owner's current
priorities and the project's existing work, release holds, and PLAN policy.
Version and evidence
Zig 0.17.1 was announced on 2026-11-03 as a bug-fix release addressing more than 57 issues reported after 0.17.0, particularly regressions and upgrade blockers. That is not a claim that every issue is fixed, or that 0.16 code now compiles unchanged. Check the actual issue, target, and fixed release before claiming a project-specific blocker is resolved. Prefer exactly 0.17.1 for an approved 0.17 migration unless the project specifies a different tested target; do not substitute a 0.18 development compiler.
Consult the shared 0.16-to-0.17 migration reference for the detailed source, build-system, ABI, and semantic changes. Check any version-specific example against the actual pinned patch release and its standard library; a 0.17.0 observation is not proof of behavior in 0.17.1.
Evaluate before committing to the work
- Inspect the project's intent, current work and Git status. Determine the exact compiler used by each Nix build, dev shell, cross-target and consumer; a ZON minimum version, a package's version, a flake input, or a comment is not proof of the compiler selected in a derivation.
- Identify why the migration matters now: a reproduced compiler defect, dependency constraint, required platform, security or measurable benefit. Preserve pending changes and separate migration from feature work. Report estimated work and blockers; keep deferred work out of an immediate PLAN unless the owner agrees to that commitment.
- Inventory direct and transitive Zig libraries, shared sources, generated C bindings and downstream consumers. Agree on an order with the relevant owners. A shared library's 0.17-only release can strand a 0.16 consumer; prove compatibility at the actual pinned revisions before repinning.
Dependency drift can itself justify a timely assessment: upstream projects may
adopt 0.17 and stop delivering updates usable by 0.16 consumers. Record which
useful updates are blocked, their actual compiler requirements, impact and
available fixes. A dependency's declared minimum_zig_version may be stale;
verify its source and build rather than trusting the declaration alone. Do not
silently bypass dependency-freshness policy or infer that all updates are
blocked from a single example.
Migrate and qualify an approved change
- Record the original compiler, lockfiles, dependency hashes, test result, supported platforms and a recoverable source baseline. Reproduce any specific blocker before saying 0.17.1 fixed it. Use an isolated workspace appropriate to the existing branch/worktree limits and preserve user work.
- Pin the exact compiler through the project's Nix source and lock it. Check all build paths, not just the interactive shell. Avoid incidental input updates; keep dependency and toolchain changes explainable and reviewable.
- Update build and source APIs using the versioned reference. Pay particular
attention to the
containsAtLeastScalarparameter-order change, vector bitcasts, reflection data, allocator lifetime,@cImport/translate_c, and the configurer/maker build split: a successful compile alone does not establish equivalent behavior. - Update ZON source pins and hashes, Nix fixed-output dependency hashes and
source filters only as the dependency graph requires. Follow
writing-nixandfix-zig-deps-hash; check the clean build without ambient host caches. - Run the complete project test entry point and
nix build, including relevant semantic regression cases, C ABI/layout checks and packaged executable smoke tests. Cross-build supported targets and execute on native runners when available. Report separately what compiled and what actually ran; keep failures and untested targets visible. - Check the current ZLS pairing and editor behavior rather than assuming a patch release is compatible. Compare performance and memory on affected hot paths when the compiler or generated code can change them. Retain the 0.16 baseline and rollback path until the upgraded result is qualified.
For a fleet migration, pilot one small, well-tested provider before moving critical consumers. Coordinate with project owners and carry actual evidence forward; do not require all projects to migrate at once or bypass freshness, security, correctness, or release controls.
Sources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

