ScrumIA

← All modules

🛡️ scrumia-zod

The schema is the source of truth; parsing happens at the seam.

slot · none version · 0.1.0

What it is responsible for

Three refusal rules that mark where validation belongs: the type is derived from the schema, never hand-written beside it; parsing happens at the trust boundary, not on every internal call; and a schema a user reads the failure of carries a field-targeted message. Ships a zod-audit skill that audits an existing codebase against the three, and a boundary detector that classifies each .parse / .safeParse as boundary-crossing or internal — the verdict is heuristic and every finding says so.

What it refuses

A type restated by hand. A parse on a value the compiler already proved. A user-facing boundary that fails with Invalid input: expected string. The detector's verdict on an internal-looking parse is reported as a finding for human verification, not as a fact.

The assumption it makes

Assumes the schema is the source of truth and the library's documentation is the citation for every rule — no blog posts, no tutorials, no community patterns. Costs discipline at every parse site and at every schema, and pays back in errors that mean something to the reader who trips them.

Its skills

Tags

What it plugs into

RegisterDirectionModule
implementcontributesscrumia-github-project
reviewcontributesscrumia-github-project

Install it

/plugin install scrumia-zod@scrumia

Read the source on GitHub