# StyLua

Use one Lua formatter across editors

Select the syntax dialect and commit the formatting config. Verify Lua and Luau source with a read-only CI pass.

Category: Formatting
Languages: Lua, Luau

## Standard evidence

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

- **Definition** (verified) — StyLua defines deterministic formatting over the supported Lua dialects. Configuration and syntax selection affect the expected output. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Measurement** (verified) — --check compares files with StyLua's formatted result and prints differences. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **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+StyLua+%C2%B7+Conformance&body=Practice%3A+stylua%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) — Upstream documents --check for CI: the command exits nonzero when source would be reformatted. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Getting started** (verified) — Install StyLua from a release or package, run the formatter with --check on a Lua file and compare the documented diff and nonzero result on unformatted input. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/README.md)
- **Real-world adoption** (verified) — Neovim’s repository configures StyLua to use two-space indentation, Unix line endings and a 100-column width. Reviewed 2026-11-28. [Cited source](https://github.com/neovim/neovim/blob/master/.stylua.toml)
- **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+StyLua+%C2%B7+Agent+guidance&body=Practice%3A+stylua%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+StyLua+%C2%B7+Agent+portability&body=Practice%3A+stylua%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 StyLua in this repository to meet this standard: Use one Lua formatter across editors. Select the syntax dialect and commit the formatting config. Verify Lua and Luau source with a read-only CI pass. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
stylua --check .
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/JohnnyMorganz/StyLua)
- [Agent skill](/skills/stylua/SKILL.md)
