# zig fmt

Verify canonical Zig formatting

Use the formatter shipped with the project's compiler. Check the source tree in CI so contributors and automation agree on layout.

Category: Formatting
Languages: Zig

## Standard evidence

Rubric v1 · 3/8 verified · 5 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — Zig's formatter defines conformity by comparing a source file with its own canonical formatting. The historical release notes document the check-mode contract. Reviewed 2026-11-28. [Cited source](https://ziglang.org/download/0.4.0/release-notes.html)
- **Measurement** (verified) — zig fmt --check lists paths that would change, retains their contents and exits with an error when the list is nonempty. Reviewed 2026-11-28. [Cited source](https://ziglang.org/download/0.4.0/release-notes.html)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
  - What would demonstrate a violation? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+zig+fmt+%C2%B7+Conformance&body=Practice%3A+zig-fmt%0ACriterion%3A+conformance+%28rubric+v1%29%0AWhat+would+demonstrate+a+violation%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **CI enforcement** (verified) — The published Zig compiler build wires a formatting check over selected source paths into the aggregate test step with check mode enabled. Reviewed 2026-11-28. [Cited source](https://github.com/ziglang/zig/blob/master/build.zig)
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can a newcomer complete a first run? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+zig+fmt+%C2%B7+Getting+started&body=Practice%3A+zig-fmt%0ACriterion%3A+firstRun+%28rubric+v1%29%0ACan+a+newcomer+complete+a+first+run%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Real-world adoption** (unknown) — No reviewed evidence is recorded for this dimension.
  - Has another team put it to work? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+zig+fmt+%C2%B7+Real-world+adoption&body=Practice%3A+zig-fmt%0ACriterion%3A+adoption+%28rubric+v1%29%0AHas+another+team+put+it+to+work%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can an agent act on a specific finding? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+zig+fmt+%C2%B7+Agent+guidance&body=Practice%3A+zig-fmt%0ACriterion%3A+guidance+%28rubric+v1%29%0ACan+an+agent+act+on+a+specific+finding%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.
  - Does the practice work in two agent harnesses? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+zig+fmt+%C2%B7+Agent+portability&body=Practice%3A+zig-fmt%0ACriterion%3A+portability+%28rubric+v1%29%0ADoes+the+practice+work+in+two+agent+harnesses%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)

## Adoption

Use zig fmt in this repository to meet this standard: Verify canonical Zig formatting. Use the formatter shipped with the project's compiler. Check the source tree in CI so contributors and automation agree on layout. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
zig fmt --check .
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://ziglang.org/learn/overview/)
- [Agent skill](/skills/zig-fmt/SKILL.md)
