# Prisma Lint

Enforce Prisma schema conventions

Choose rules for model and field naming, relation consistency and schema hygiene. Enable the intended rules explicitly so a clean run checks something meaningful.

Category: Code quality
Languages: Prisma

## Standard evidence

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

- **Definition** (verified) — The require-field rule can require named fields on Prisma models; all rules are disabled until selected. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/loop-payments/prisma-lint/main/README.md)
- **Measurement** (verified) — The documented JSON formatter emits findings for selected Prisma schema rules. Examples show missing fields and incorrect field mappings. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/loop-payments/prisma-lint/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+Prisma+Lint+%C2%B7+Conformance&body=Practice%3A+prisma-lint%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** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can a change trigger a useful check? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+Prisma+Lint+%C2%B7+CI+enforcement&body=Practice%3A+prisma-lint%0ACriterion%3A+ci+%28rubric+v1%29%0ACan+a+change+trigger+a+useful+check%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)
- **Getting started** (verified) — Install the dev dependency, enable rules in a project config and run the CLI against a Prisma schema. The README shows error and clean-file output for sample inputs. Reviewed 2026-11-28. [Cited source](https://raw.githubusercontent.com/loop-payments/prisma-lint/main/README.md)
- **Real-world adoption** (verified) — CodeRabbit runs Prisma Lint on changed .prisma schemas and recognizes repository rules configurations such as .prismalintrc.json. Reviewed 2026-11-28. [Cited source](https://docs.coderabbit.ai/tools/prisma-lint)
- **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+Prisma+Lint+%C2%B7+Agent+guidance&body=Practice%3A+prisma-lint%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+Prisma+Lint+%C2%B7+Agent+portability&body=Practice%3A+prisma-lint%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 Prisma Lint in this repository to meet this standard: Enforce Prisma schema conventions. Choose rules for model and field naming, relation consistency and schema hygiene. Enable the intended rules explicitly so a clean run checks something meaningful. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
npx --no-install prisma-lint
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/loop-payments/prisma-lint)
- [Agent skill](/skills/prisma-lint/SKILL.md)
