# Crystal formatter

Verify canonical Crystal formatting

Check tracked Crystal source and specs with the formatter included in the release compiler. Keep the compiler version consistent between editors and CI.

Category: Formatting
Languages: Crystal

## Standard evidence

Rubric v1 · 2/8 verified · 6 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — Crystal documents a shared layout for indentation and spacing and recommends using its formatter to apply the compiler project's conventions. Reviewed 2026-11-28. [Source](https://crystal-lang.org/reference/latest/conventions/coding_style.html)
- **Measurement** (verified) — crystal tool format accepts a file or directory. Its check mode permits comparing the maintained tree with the formatter's output. Reviewed 2026-11-28. [Source](https://crystal-lang.org/reference/latest/man/crystal/)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use Crystal formatter in this repository to meet this standard: Verify canonical Crystal formatting. Check tracked Crystal source and specs with the formatter included in the release compiler. Keep the compiler version consistent between editors and CI. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
crystal tool format --check
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://crystal-lang.org/reference/latest/man/crystal/)
- [Agent skill](/skills/crystal-format/SKILL.md)
