GitHub 8
Skip to content

Installation

Install glosslint, write a starter glossary file, validate it with doctor, and run your first check.
pnpm
pnpm add -D glosslint
npm
npm install -D glosslint
yarn
yarn add -D glosslint
bun
bun add -d glosslint

Requires Node 22.18 or later.

  1. # 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
    .agents/glossary.md

    eBike defaults to Case: exact because of its inner capital. See The glossary file for every field.

  2. npx glosslint doctor        # check format, values, and Good/Bad examples
    npx glosslint doctor --fix  # rewrite layout and field names
  3. 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.