> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Editor validation

> Add Momentic's JSON Schemas to your editor for autocomplete and inline validation while you hand-edit test and module YAML.

Momentic publishes static JSON Schemas for simplified format tests and modules,
as well as the project config file (`momentic.config.yaml`). Add them to your
editor to get autocomplete and inline validation as you write, instead of at run
time. The schemas work for web, mobile, and mixed repos.

<Tip>
  The onboarding wizard (`npx @momentic/wizard@latest`) detects your installed
  editors and writes the matching config automatically: `.vscode/settings.json`
  for VS Code, Cursor, and Windsurf, or `.zed/settings.json` for Zed. Commit the
  file to share validation with your team.
</Tip>

<Tabs>
  <Tab title="VS Code">
    Add this to `.vscode/settings.json`:

    ```json theme={null}
    {
      "yaml.schemas": {
        "https://static.momentic.ai/momentic-test-v2.schema.json": "*.test.yaml",
        "https://static.momentic.ai/momentic-module-v2.schema.json": "*.module.yaml",
        "https://static.momentic.ai/momentic-config.schema.json": "momentic.config.yaml"
      }
    }
    ```

    Requires the
    [YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
  </Tab>

  <Tab title="Cursor">
    Cursor uses VS Code workspace settings. Commit the same
    `.vscode/settings.json` snippet from the VS Code tab so everyone opening the
    repo in Cursor gets the simplified format schemas automatically.
  </Tab>

  <Tab title="Windsurf">
    Windsurf also reads VS Code-style workspace settings. Commit the same
    `.vscode/settings.json` snippet from the VS Code tab for shared team
    validation.
  </Tab>

  <Tab title="Zed">
    Add this to your Zed settings:

    ```json theme={null}
    {
      "lsp": {
        "yaml-language-server": {
          "settings": {
            "yaml": {
              "schemas": {
                "https://static.momentic.ai/momentic-test-v2.schema.json": [
                  "*.test.yaml"
                ],
                "https://static.momentic.ai/momentic-module-v2.schema.json": [
                  "*.module.yaml"
                ],
                "https://static.momentic.ai/momentic-config.schema.json": [
                  "momentic.config.yaml"
                ]
              }
            }
          }
        }
      }
    }
    ```
  </Tab>
</Tabs>

Editor schemas catch shape errors as you type. For a full validation pass
(schema validity, local file references, and entity conflicts), run
[`momentic lint`](/cli-reference/momentic/commands/lint) before committing
agent-authored changes.
