> Markdown rendition of https://typeglish.dev/docs/ ("TypeGlish documentation"). Canonical page: https://typeglish.dev/docs · All pages: https://typeglish.dev/docs/llms.txt

Getting started

# TypeGlish documentation

TypeGlish compiles plain-English prompts into structured, testable programs — a real type system for English, a checker that proves contradictions before you ship, and tests that live beside the rules they guard.

Write and scale prompts like code.

## Start here

###

[$QuickstartRun the CLI with `npx`, review your first prompt, watch the checker prove a contradiction, and pin the fix with a test — in five minutes.](https://typeglish.dev/docs/quickstart)

###

[§The languageStatements, modality, types, control flow — how English becomes checkable clauses.](https://typeglish.dev/docs/statements)

###

[✓DiagnosticsWhat `typeglish check` proves — every code, its severity, and the other end it cites; `--explain <code>` spells any of them out.](https://typeglish.dev/docs/diagnostics)

###

[⌘CLI referenceEvery command and flag — review, check, score, test, build, `--fix`, `--explain` — with the outputs you should expect.](https://typeglish.dev/docs/cli)

## Why a compiler for English

Raw prompts are sand: fast to build with, quick to crumble under weight. TypeGlish gives prompts load-bearing structure — the same prompt, graded and proven:

prompt.md → support.tg ✗ crumbles ✓ holds

```typeglish
// before: vibes
Be helpful and always try to resolve things quickly,
but never promise anything specific.

// after: a policy
# Constraints
- SHOULD resolve a request in one reply.
- NEVER state a delivery date; share a tracking link instead.
```

Same intent, one reading. The checker flags the before lines (an unmeasurable "be helpful", a "try to" hedge) and reads the after lines as two rules it can hold the model to.

✓ Already have a prompt in production? `npx typeglish check prompt.md` reads plain English as-is — start from the notes it gives you.

[Next → Quickstart](https://typeglish.dev/docs/quickstart)
