# OCamlFormat

Format OCaml with a pinned profile

Specify the formatter version in .ocamlformat and use the Dune formatting alias in CI. Review style changes separately when updating the formatter.

Category: Formatting
Languages: OCaml

## Standard evidence

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

- **Definition** (verified) — The .ocamlformat file declares the profile and formatter version, defining the project-specific expected formatting. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/main/README.md)
- **Measurement** (unknown) — No reviewed evidence is recorded for this dimension.
- **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** (verified) — Dune pins OCamlFormat 0.30.0 and the janestreet formatting profile for its OCaml project. Reviewed 2026-11-28. [Source](https://github.com/ocaml/dune/blob/main/.ocamlformat)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use OCamlFormat in this repository to meet this standard: Format OCaml with a pinned profile. Specify the formatter version in .ocamlformat and use the Dune formatting alias in CI. Review style changes separately when updating the formatter. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
dune build @fmt
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://ocaml.org/p/ocamlformat/)
- [Agent skill](/skills/ocamlformat/SKILL.md)
