# Installation

```sh pm
pnpm add -D glosslint
```

Requires Node 22.18 or later.

## First setup

### Write `.agents/glossary.md`

```md [.agents/glossary.md]
# Glossary

Allow: roof rack

## Dock
What: A powered stand where one bike is locked.
Avoid:
- rack: Racks are unpowered.
Good:
- Return the bike to any dock
Bad:
- Return the bike to any rack

## eBike
```

`eBike` defaults to `Case: exact` because of its inner capital. See [The glossary file](https://glosslint.loadsheet.dev/guide/glossary) for every field.

### Validate with `doctor`

```sh
npx glosslint doctor        # check format, values, and Good/Bad examples
npx glosslint doctor --fix  # rewrite layout and field names
```

### Check your docs

```sh
npx glosslint check docs
```

Reads `.md`, `.mdx`, and `.txt` files while skipping `node_modules`, `.git`, `.agents/glossary.md`, frontmatter, and code. Exits `0` when clean, `1` on findings, and `2` on errors.

<!-- vitehub-docs:section-links -->
## In this section

- [Introduction](https://glosslint.loadsheet.dev/raw/guide.md)
- [Installation](https://glosslint.loadsheet.dev/raw/guide/installation.md) (this page)
- [glossary.md](https://glosslint.loadsheet.dev/raw/guide/glossary.md)
- [defineCorpus](https://glosslint.loadsheet.dev/raw/guide/corpus.md)
- [Casing rules](https://glosslint.loadsheet.dev/raw/guide/casing.md)
- [What glosslint doesn't check](https://glosslint.loadsheet.dev/raw/guide/ignored-text.md)
- [Built-in presets](https://glosslint.loadsheet.dev/raw/guide/presets.md)
- [Coming from case-police](https://glosslint.loadsheet.dev/raw/guide/case-police.md)
- [Coding agents](https://glosslint.loadsheet.dev/raw/guide/agents.md)
- [Reference](https://glosslint.loadsheet.dev/raw/guide/findings.md)

Next: [glossary.md](https://glosslint.loadsheet.dev/raw/guide/glossary.md)

All pages: [llms.txt](https://glosslint.loadsheet.dev/llms.txt)
